Skip to content

Commit af30084

Browse files
larsclausenjic23
authored andcommitted
iio:adc: Add common code for ADI Sigma Delta devices
Most devices from the Analog Devices Sigma Delta family use a similar scheme for communication with the device. This includes register access, as well as trigger handling. But each device sub-family has different features and different register layouts (some even have no registers at all) and thus it is impractical to try to support all of the devices by the same driver. This patch adds a common base library for Sigma Delta converter devices. It will be used by individual drivers. This code is mostly based on the three existing Sigma Delta drivers the AD7192, AD7780 and AD7793, but has been improved for more robustness and flexibility. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 2d66f38 commit af30084

File tree

4 files changed

+737
-0
lines changed

4 files changed

+737
-0
lines changed

drivers/iio/adc/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
#
44
menu "Analog to digital converters"
55

6+
config AD_SIGMA_DELTA
7+
tristate
8+
select IIO_BUFFER
9+
select IIO_TRIGGERED_BUFFER
10+
611
config AD7266
712
tristate "Analog Devices AD7265/AD7266 ADC driver"
813
depends on SPI_MASTER

drivers/iio/adc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
# Makefile for IIO ADC drivers
33
#
44

5+
obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
56
obj-$(CONFIG_AD7266) += ad7266.o
67
obj-$(CONFIG_AT91_ADC) += at91_adc.o

0 commit comments

Comments
 (0)