linux/drivers/staging/iio
David Lechner e025cb2c68 staging: iio: resolver: ad2s1210: convert DOS mismatch threshold to event attr
The AD2S1210 has a programmable threshold for the degradation of signal
(DOS) mismatch fault. This fault is triggered when the difference in
voltage between the sine and cosine inputs exceeds the threshold. In
other words, when the magnitude of sine and cosine inputs are equal,
the AC component of the monitor signal is zero and when the magnitudes
of the sine and cosine inputs are not equal, the AC component of the
monitor signal is the difference between the sine and cosine inputs.
So the fault occurs when the magnitude of the AC component of the
monitor signal exceeds the DOS mismatch threshold voltage.

This patch converts the custom device DOS mismatch threshold attribute
to an event magnitude attribute on the monitor signal channel.

The attribute now uses millivolts instead of the raw register value in
accordance with the IIO ABI.

Emitting the event will be implemented in a later patch.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20231005-ad2s1210-mainline-v4-10-ec00746840fc@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
History 2023-10-11 15:54:41 +01:00
..
accel staging: iio: accel: adis16240: Call '__adis_initial_startup()' 2022-11-23 20:37:51 +00:00
adc iio:adc:ad7280a: Move out of staging 2022-02-21 19:33:05 +00:00
addac staging: iio: Switch i2c drivers back to use .probe() 2023-05-28 17:40:36 +01:00
Documentation staging:iio:documentation: Drop most generic docs 2020-09-16 19:12:00 +01:00
frequency staging: iio: Use devm_clk_get_enabled() helper function 2023-09-11 20:12:40 +01:00
impedance-analyzer staging: iio: Use devm_clk_get_enabled() helper function 2023-09-11 20:12:40 +01:00
resolver staging: iio: resolver: ad2s1210: convert DOS mismatch threshold to event attr 2023-10-11 15:54:41 +01:00
Kconfig staging: iio: meter: Drop ade7854 driver 2023-03-11 12:18:28 +00:00
Makefile staging: iio: meter: Drop ade7854 driver 2023-03-11 12:18:28 +00:00
TODO staging: iio: remove mention of defunct list 2021-03-25 19:13:49 +00:00