iio: resolver: ad2s1210: add reset gpio support
authorDavid Lechner <dlechner@baylibre.com>
Mon, 16 Oct 2023 15:43:09 +0000 (10:43 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 16 Nov 2023 19:10:25 +0000 (19:10 +0000)
commit0300fa851f38864495e6cb107d9a24d30dcb5e19
treeb68070e3ff836efa0a957ad4c0d4a4db8e94820e
parentf9b9ff95be8ce0e8becfd17b416b68d13915733d
iio: resolver: ad2s1210: add reset gpio support

This adds support for the optional reset gpio to the ad2s1210 resolver
driver. If the gpio is present in the device tree, it is toggled during
driver probe before the reset of the device initialization. As per the
devicetree bindings, it is expected for the gpio to configured as active
low.

Suggested-by: Michael Hennerich <Michael.Hennerich@analog.com>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Link: https://lore.kernel.org/r/20231016154311.38547-1-dlechner@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/resolver/ad2s1210.c