iio:adc: Add AD7265/AD7266 support
Subsystems (2)
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.
Signed-off-by Lars-Peter Clausen <[email protected]>
---
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
@@ -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
@@ -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
Jonathan Cameron
maintainerQuoted 4 lines · Lars-Peter Clausen
This patch adds support for the Analog Devices AD7265 and AD7266 Analog-to-Digital converters.
Signed-off-by Lars-Peter Clausen <[email protected]>
Pulled into my tree. I have sent a pull request to Greg for it.