]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit299be92fc81579b7f0f54a82e8595f361b174638
tree2aa478024fd9e7827243d502ee5aea1626d3b0d2
parentd714ef20c27ced499e747dfdf5bd9df10bed8b31
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]