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: implement fault events
When reading the position and velocity on the AD2S1210, there is also a 3rd byte following the two data bytes that contains the fault flag bits. This patch adds support for reading this byte and generating events when faults occur. The faults are mapped to various channels and event type in order to have a unique event for each fault. 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
212 additions
and
14 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2207,3 +2207,18 @@ Contact: [email protected] | |
Description: | ||
An example format is 16-bytes, 2-digits-per-byte, HEX-string | ||
representing the sensor unique ID number. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/events/in_altvoltageY_mag_either_label | ||
What: /sys/bus/iio/devices/iio:deviceX/events/in_altvoltageY_mag_rising_label | ||
What: /sys/bus/iio/devices/iio:deviceX/events/in_altvoltageY_thresh_falling_label | ||
What: /sys/bus/iio/devices/iio:deviceX/events/in_altvoltageY_thresh_rising_label | ||
What: /sys/bus/iio/devices/iio:deviceX/events/in_anglvelY_mag_rising_label | ||
What: /sys/bus/iio/devices/iio:deviceX/events/in_anglY_thresh_rising_label | ||
What: /sys/bus/iio/devices/iio:deviceX/events/in_phaseY_mag_rising_label | ||
KernelVersion: 6.7 | ||
Contact: [email protected] | ||
Description: | ||
Optional symbolic label to a device channel event. | ||
If a label is defined for this event add that to the event | ||
specific attributes. This is useful for userspace to be able to | ||
better identify an individual event. |
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