diff options
author | Aida Mynzhasova <aida.mynzhasova@skitlab.ru> | 2013-09-23 10:19:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-09-23 15:20:47 -0400 |
commit | 4fa2a9e4682d2b559cc2fe9e9aaf026efa8be42e (patch) | |
tree | 0c68e9c9d7b7b7dd6d81473d4f9b91fe80134599 | |
parent | 71e1980c8d465fd304d867d36f2246b72513efed (diff) |
iio: dac: ad5446: Add support for AD5641
This patch adds support for the AD5641 single channel,
14-bit, buffered voltage output DAC.
Signed-off-by: Aida Mynzhasova <aida.mynzhasova@skitlab.ru>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/dac/Kconfig | 2 | ||||
-rw-r--r-- | drivers/iio/dac/ad5446.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/iio/dac/Kconfig b/drivers/iio/dac/Kconfig index 3c6a78a75b78..f378ca8033db 100644 --- a/drivers/iio/dac/Kconfig +++ b/drivers/iio/dac/Kconfig | |||
@@ -57,7 +57,7 @@ config AD5446 | |||
57 | Say yes here to build support for Analog Devices AD5300, AD5301, AD5310, | 57 | Say yes here to build support for Analog Devices AD5300, AD5301, AD5310, |
58 | AD5311, AD5320, AD5321, AD5444, AD5446, AD5450, AD5451, AD5452, AD5453, | 58 | AD5311, AD5320, AD5321, AD5444, AD5446, AD5450, AD5451, AD5452, AD5453, |
59 | AD5512A, AD5541A, AD5542A, AD5543, AD5553, AD5601, AD5602, AD5611, AD5612, | 59 | AD5512A, AD5541A, AD5542A, AD5543, AD5553, AD5601, AD5602, AD5611, AD5612, |
60 | AD5620, AD5621, AD5622, AD5640, AD5660, AD5662 DACs. | 60 | AD5620, AD5621, AD5622, AD5640, AD5641, AD5660, AD5662 DACs. |
61 | 61 | ||
62 | To compile this driver as a module, choose M here: the | 62 | To compile this driver as a module, choose M here: the |
63 | module will be called ad5446. | 63 | module will be called ad5446. |
diff --git a/drivers/iio/dac/ad5446.c b/drivers/iio/dac/ad5446.c index 6dcb6d93f0e4..8e28d3633e22 100644 --- a/drivers/iio/dac/ad5446.c +++ b/drivers/iio/dac/ad5446.c | |||
@@ -330,6 +330,7 @@ enum ad5446_supported_spi_device_ids { | |||
330 | ID_AD5601, | 330 | ID_AD5601, |
331 | ID_AD5611, | 331 | ID_AD5611, |
332 | ID_AD5621, | 332 | ID_AD5621, |
333 | ID_AD5641, | ||
333 | ID_AD5620_2500, | 334 | ID_AD5620_2500, |
334 | ID_AD5620_1250, | 335 | ID_AD5620_1250, |
335 | ID_AD5640_2500, | 336 | ID_AD5640_2500, |
@@ -392,6 +393,10 @@ static const struct ad5446_chip_info ad5446_spi_chip_info[] = { | |||
392 | .channel = AD5446_CHANNEL_POWERDOWN(12, 16, 2), | 393 | .channel = AD5446_CHANNEL_POWERDOWN(12, 16, 2), |
393 | .write = ad5446_write, | 394 | .write = ad5446_write, |
394 | }, | 395 | }, |
396 | [ID_AD5641] = { | ||
397 | .channel = AD5446_CHANNEL_POWERDOWN(14, 16, 0), | ||
398 | .write = ad5446_write, | ||
399 | }, | ||
395 | [ID_AD5620_2500] = { | 400 | [ID_AD5620_2500] = { |
396 | .channel = AD5446_CHANNEL_POWERDOWN(12, 16, 2), | 401 | .channel = AD5446_CHANNEL_POWERDOWN(12, 16, 2), |
397 | .int_vref_mv = 2500, | 402 | .int_vref_mv = 2500, |
@@ -446,6 +451,7 @@ static const struct spi_device_id ad5446_spi_ids[] = { | |||
446 | {"ad5601", ID_AD5601}, | 451 | {"ad5601", ID_AD5601}, |
447 | {"ad5611", ID_AD5611}, | 452 | {"ad5611", ID_AD5611}, |
448 | {"ad5621", ID_AD5621}, | 453 | {"ad5621", ID_AD5621}, |
454 | {"ad5641", ID_AD5641}, | ||
449 | {"ad5620-2500", ID_AD5620_2500}, /* AD5620/40/60: */ | 455 | {"ad5620-2500", ID_AD5620_2500}, /* AD5620/40/60: */ |
450 | {"ad5620-1250", ID_AD5620_1250}, /* part numbers may look differently */ | 456 | {"ad5620-1250", ID_AD5620_1250}, /* part numbers may look differently */ |
451 | {"ad5640-2500", ID_AD5640_2500}, | 457 | {"ad5640-2500", ID_AD5640_2500}, |