forked from analogdevicesinc/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staging: iio: resolver: ad2s1210: rename DOS reset min/max attrs
The AD2S1210 has a programmable threshold for the degradation of signal (DOS) mismatch fault. This fault is triggered when the difference in amplitude between the sine and cosine inputs exceeds the threshold. The DOS reset min/max registers on the chip provide initial values for internal tracking of the min/max of the monitor signal after the fault register is cleared. This patch converts the custom device DOS reset min/max threshold attributes custom event attributes on the monitor signal channel. The attributes now use millivolts instead of the raw register value in accordance with the IIO ABI. Signed-off-by: David Lechner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
- Loading branch information
Showing
2 changed files
with
82 additions
and
44 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
drivers/staging/iio/Documentation/sysfs-bus-iio-resolver-ad2s1210
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
What: /sys/bus/iio/devices/iio:deviceX/events/in_altvoltage0_mag_rising_reset_max | ||
KernelVersion: 6.7 | ||
Contact: [email protected] | ||
Description: | ||
Reading returns the current Degradation of Signal Reset Maximum | ||
Threshold value in millivolts. Writing sets the value. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/events/in_altvoltage0_mag_rising_reset_max_available | ||
KernelVersion: 6.7 | ||
Contact: [email protected] | ||
Description: | ||
Reading returns the allowable voltage range for | ||
in_altvoltage0_mag_rising_reset_max. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/events/in_altvoltage0_mag_rising_reset_min | ||
KernelVersion: 6.7 | ||
Contact: [email protected] | ||
Description: | ||
Reading returns the current Degradation of Signal Reset Minimum | ||
Threshold value in millivolts. Writing sets the value. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/events/in_altvoltage0_mag_rising_reset_min_available | ||
KernelVersion: 6.7 | ||
Contact: [email protected] | ||
Description: | ||
Reading returns the allowable voltage range for | ||
in_altvoltage0_mag_rising_reset_min. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters