]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ad4695: implement triggered buffer
authorDavid Lechner <dlechner@baylibre.com>
Tue, 13 Aug 2024 17:26:40 +0000 (12:26 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Aug 2024 14:37:37 +0000 (15:37 +0100)
commit6cc7e4bf2e0841ead708044235bd982e895e2fb5
treed74771dc4ab9471a63425aaa52605bea03aeceb6
parentd3bde2243d42a3b857fe72282ed1c19c82bd6e36
iio: adc: ad4695: implement triggered buffer

This implements buffered reads for the ad4695 driver using the typical
triggered buffer implementation, including adding a soft timestamp
channel.

The chip has 4 different modes for doing conversions. The driver is
using the advanced sequencer mode since that is the only mode that
allows individual configuration of all aspects each channel (e.g.
bipolar config currently and oversampling to be added in the future).

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20240813-iio-adc-ad4695-buffered-read-v2-1-9bb19fc1924b@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad4695.c