linux/drivers/iio/resolver
David Lechner f9b9ff95be iio: resolver: ad2s1210: add support for adi,fixed-mode
It is possible to use the AD2S1210 with hardwired mode pins (A0 and A1).
According to the devicetree bindings, in this case the adi,fixed-mode
property will specify which of the 3 possible modes the mode pins are
hardwired for and the gpio-modes property is not allowed.

This adds support for the case where the mode pins are hardwired for
config mode. In this configuration, the position and value must be read
from the config register.

The case of hardwired position or velocity mode is not supported as
there would be no way to configure the device.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20231016135423.16808-1-dlechner@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-11-16 19:10:25 +00:00
..
ad2s90.c iio: resolver: ad2s90: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
ad2s1200.c iio: resolver: ad2s1200: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
ad2s1210.c iio: resolver: ad2s1210: add support for adi,fixed-mode 2023-11-16 19:10:25 +00:00
Kconfig iio: resolver: ad2s1210: move out of staging 2023-10-12 09:20:50 +01:00
Makefile iio: resolver: ad2s1210: move out of staging 2023-10-12 09:20:50 +01:00