staging:iio:dac: Add AD5380 driver
Subsystems (4)
PATCH 1/1 staging:iio:dac: Add AD5380 driver
This patch adds support for the Analog Devices D5380, AD5381, AD5382, AD5383, AD5384, AD5390, AD5391, AD5392 multi-channel Digital to Analog Converters.
--- drivers/staging/iio/dac/Kconfig | 13 + drivers/staging/iio/dac/Makefile | 1 + drivers/staging/iio/dac/ad5380.c | 677 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 691 insertions(+), 0 deletions(-) create mode 100644 drivers/staging/iio/dac/ad5380.c
drivers/staging/iio/dac/Kconfig +13 -0
@@ -24,6 +24,19 @@ config AD5360 To compile this driver as module choose M here: the module will be called ad5360. +config AD5380 + tristate "Analog Devices AD5380/81/82/83/84/90/91/92 DAC driver" + depends on (SPI_MASTER || I2C) + select REGMAP_I2C if I2C + select REGMAP_SPI if SPI_MASTER + help + Say yes here to build support for Analog Devices AD5380, AD5381, + AD5382, AD5383, AD5384, AD5390, AD5391, AD5392 multi-channel + Digital to Analog Converters (DAC). + + To compile this driver as module choose M here: the module will be called + ad5380. + config AD5421 tristate "Analog Devices AD5421 DAC driver" depends on SPI
drivers/staging/iio/dac/Makefile +1 -0
@@ -3,6 +3,7 @@ # obj-$(CONFIG_AD5360) += ad5360.o +obj-$(CONFIG_AD5380) += ad5380.o obj-$(CONFIG_AD5421) += ad5421.o obj-$(CONFIG_AD5624R_SPI) += ad5624r_spi.o obj-$(CONFIG_AD5064) += ad5064.o
drivers/staging/iio/dac/ad5380.c new file +677 -0
677 lines not on this page · raw message
Signature · 1 line
1.7.7.1
Hi Lars,
My email client is eating all the line feeds, so this will have to be out of line with the now unreadable code...
Having reorangised code, is the info_to_reg still worth having?
Otherwise, all looks good (and feel free to just delete the unused? entry in that switch).
Quoted 11 lines · J.I. Cameron
Hi Lars,
My email client is eating all the line feeds, so this will have to be out of line with the now unreadable code...
Having reorangised code, is the
info_to_regstill worth having?Otherwise, all looks good (and feel free to just delete the unused? entry in that switch).
Acked-by Jonathan Cameron <[email protected]>
gah, finger memory, make that [email protected]
At some point I'll loose control of that email address so am intending to move to the kernel.org one for all iio stuff.
Quoted 7 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html