Skip to contentSkip to conversation

iio:adc: Add AD7265/AD7266 support

PATCH In review Lars-Peter Clausen 2 participants 2 messages Jun 25, 2012 – Jun 30, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 iio:adc: Add AD7265/AD7266 support

This patch adds support for the Analog Devices AD7265 and AD7266 Analog-to-Digital converters.

---
Changes since v1:
* Setup channel info with a lookup table instead of if ... else
* Set channel endianness to big-endian

---
 drivers/iio/adc/Kconfig              |   10 +
 drivers/iio/adc/Makefile             |    1 +
 drivers/iio/adc/ad7266.c             |  536 ++++++++++++++++++++++++++++++++++
 include/linux/platform_data/ad7266.h |   54 ++++
 4 files changed, 601 insertions(+)
 create mode 100644 drivers/iio/adc/ad7266.c
 create mode 100644 include/linux/platform_data/ad7266.h
drivers/iio/adc/Kconfig +10 -0
index 4f7f584..8a78b4f 100644
@@ -3,6 +3,16 @@
 #
 menu "Analog to digital converters"
 
+config AD7266
+	tristate "Analog Devices AD7265/AD7266 ADC driver"
+	depends on SPI_MASTER
+	select IIO_BUFFER
+	select IIO_TRIGGER
+	select IIO_TRIGGERED_BUFFER
+	help
+	  Say yes here to build support for Analog Devices AD7265 and AD7266
+	  ADCs.
+
 config AT91_ADC
 	tristate "Atmel AT91 ADC"
 	depends on ARCH_AT91
drivers/iio/adc/Makefile +1 -0
index 175c8d4..52eec25 100644
@@ -2,4 +2,5 @@
 # Makefile for IIO ADC drivers
 #
 
+obj-$(CONFIG_AD7266) += ad7266.o
 obj-$(CONFIG_AT91_ADC) += at91_adc.o
drivers/iio/adc/ad7266.c new file +536 -0

536 lines not on this page · raw message

include/linux/platform_data/ad7266.h new file +54 -0

54 lines not on this page · raw message

Signature · 1 line
1.7.10