iio: adc: Add AD7768-1 ADC basic support
authorStefan Popa <stefan.popa@analog.com>
Thu, 31 Jan 2019 16:20:51 +0000 (18:20 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 2 Feb 2019 10:28:56 +0000 (10:28 +0000)
commita5f8c7da3dbee20b5acf1a8e24139956255aef57
tree2aa478024fd9e7827243d502ee5aea1626d3b0d2
parent0e4c2da4f058cafd01a06e296fda131e796b8f72
iio: adc: Add AD7768-1 ADC basic support

The ad7768-1 is a single channel, precision 24-bit analog to digital
converter (ADC).

This basic patch configures the device in fast mode, with 32 kSPS and
leaves the default sinc5 filter.

Two data conversion modes are made available. When data is retrieved by
using the read_raw attribute, one shot single conversion mode is set.
The continuous conversion mode is enabled when the triggered buffer
mechanism is used. To assure correct data retrieval, the driver waits
for the interrupt triggered by the low to high transition of the DRDY
pin.

Datasheets:
Link: https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
MAINTAINERS
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/ad7768-1.c [new file with mode: 0644]