All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3] iio: adc: ad7476: Add LTC2314-14 support
@ 2020-12-16  8:36 Mircea Caprioru
  2020-12-29 17:42 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Mircea Caprioru @ 2020-12-16  8:36 UTC (permalink / raw)
  To: jic23
  Cc: Michael.Hennerich, alexandru.ardelean, lars, gregkh,
	linux-kernel, linux-iio, Dragos Bogdan, Mircea Caprioru

From: Dragos Bogdan <dragos.bogdan@analog.com>

The LTC2314-14 is a 14-bit, 4.5Msps, serial sampling A/D converter that draws only
6.2mA from a wide range analog supply adjustable from 2.7V to 5.25V.

Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
---
 drivers/iio/adc/ad7476.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/iio/adc/ad7476.c b/drivers/iio/adc/ad7476.c
index 66c55ae67791..17402714b387 100644
--- a/drivers/iio/adc/ad7476.c
+++ b/drivers/iio/adc/ad7476.c
@@ -67,6 +67,7 @@ enum ad7476_supported_device_ids {
 	ID_ADS7866,
 	ID_ADS7867,
 	ID_ADS7868,
+	ID_LTC2314_14,
 };
 
 static void ad7091_convst(struct ad7476_state *st)
@@ -250,6 +251,10 @@ static const struct ad7476_chip_info ad7476_chip_info_tbl[] = {
 		.channel[0] = ADS786X_CHAN(8),
 		.channel[1] = IIO_CHAN_SOFT_TIMESTAMP(1),
 	},
+	[ID_LTC2314_14] = {
+		.channel[0] = AD7940_CHAN(14),
+		.channel[1] = IIO_CHAN_SOFT_TIMESTAMP(1),
+	},
 };
 
 static const struct iio_info ad7476_info = {
@@ -365,6 +370,7 @@ static const struct spi_device_id ad7476_id[] = {
 	{"ads7866", ID_ADS7866},
 	{"ads7867", ID_ADS7867},
 	{"ads7868", ID_ADS7868},
+	{"ltc2314-14", ID_LTC2314_14},
 	{}
 };
 MODULE_DEVICE_TABLE(spi, ad7476_id);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH V3] iio: adc: ad7476: Add LTC2314-14 support
  2020-12-16  8:36 [PATCH V3] iio: adc: ad7476: Add LTC2314-14 support Mircea Caprioru
@ 2020-12-29 17:42 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2020-12-29 17:42 UTC (permalink / raw)
  To: Mircea Caprioru
  Cc: Michael.Hennerich, alexandru.ardelean, lars, gregkh,
	linux-kernel, linux-iio, Dragos Bogdan

On Wed, 16 Dec 2020 10:36:39 +0200
Mircea Caprioru <mircea.caprioru@analog.com> wrote:

> From: Dragos Bogdan <dragos.bogdan@analog.com>
> 
> The LTC2314-14 is a 14-bit, 4.5Msps, serial sampling A/D converter that draws only
> 6.2mA from a wide range analog supply adjustable from 2.7V to 5.25V.
> 
> Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
> Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
Applied to the togreg branch of iio.git.

thanks,

Jonathan

> ---
>  drivers/iio/adc/ad7476.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/iio/adc/ad7476.c b/drivers/iio/adc/ad7476.c
> index 66c55ae67791..17402714b387 100644
> --- a/drivers/iio/adc/ad7476.c
> +++ b/drivers/iio/adc/ad7476.c
> @@ -67,6 +67,7 @@ enum ad7476_supported_device_ids {
>  	ID_ADS7866,
>  	ID_ADS7867,
>  	ID_ADS7868,
> +	ID_LTC2314_14,
>  };
>  
>  static void ad7091_convst(struct ad7476_state *st)
> @@ -250,6 +251,10 @@ static const struct ad7476_chip_info ad7476_chip_info_tbl[] = {
>  		.channel[0] = ADS786X_CHAN(8),
>  		.channel[1] = IIO_CHAN_SOFT_TIMESTAMP(1),
>  	},
> +	[ID_LTC2314_14] = {
> +		.channel[0] = AD7940_CHAN(14),
> +		.channel[1] = IIO_CHAN_SOFT_TIMESTAMP(1),
> +	},
>  };
>  
>  static const struct iio_info ad7476_info = {
> @@ -365,6 +370,7 @@ static const struct spi_device_id ad7476_id[] = {
>  	{"ads7866", ID_ADS7866},
>  	{"ads7867", ID_ADS7867},
>  	{"ads7868", ID_ADS7868},
> +	{"ltc2314-14", ID_LTC2314_14},
>  	{}
>  };
>  MODULE_DEVICE_TABLE(spi, ad7476_id);


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-29 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16  8:36 [PATCH V3] iio: adc: ad7476: Add LTC2314-14 support Mircea Caprioru
2020-12-29 17:42 ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.