linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nuno Sá" <noname.nuno@gmail.com>
To: David Lechner <dlechner@baylibre.com>,
	Jonathan Cameron <jic23@kernel.org>,
	 Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 linux-iio@vger.kernel.org
Cc: "Michael Hennerich" <Michael.Hennerich@analog.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Jonathan Corbet" <corbet@lwn.net>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-doc@vger.kernel.org
Subject: Re: [PATCH 4/5] iio: adc: ad7380: add ad7389-4
Date: Thu, 03 Apr 2025 19:57:11 +0100	[thread overview]
Message-ID: <0965e96453e96748c96b052d1658d7e1042c3b0b.camel@gmail.com> (raw)
In-Reply-To: <20250401-iio-ad7380-add-ad7389-4-v1-4-23d2568aa24f@baylibre.com>

On Tue, 2025-04-01 at 17:50 -0500, David Lechner wrote:
> Add chip info for AD7389-4 to the ad7380 driver.
> 
> This is essentially the same as ad7380-4 except that it is internal-
> reference-only instead of external-reference-only.
> 
> Signed-off-by: David Lechner <dlechner@baylibre.com>
> ---

Reviewed-by: Nuno Sá <nuno.sa@analog.com>

>  drivers/iio/adc/ad7380.c | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/drivers/iio/adc/ad7380.c b/drivers/iio/adc/ad7380.c
> index
> e5cd11fd7b1083af2082985f2c0226b1a97d600f..190ab411739feea32e189cb3ede925056ba4a87e
> 100644
> --- a/drivers/iio/adc/ad7380.c
> +++ b/drivers/iio/adc/ad7380.c
> @@ -13,6 +13,7 @@
>   * ad7381-4 :
> https://www.analog.com/media/en/technical-documentation/data-sheets/ad7381-4.pdf
>   * ad7383/4-4 :
> https://www.analog.com/media/en/technical-documentation/data-sheets/ad7383-4-ad7384-4.pdf
>   * ad7386/7/8-4 :
> https://www.analog.com/media/en/technical-documentation/data-sheets/ad7386-4-7387-4-7388-4.pdf
> + * ad7389-4 :
> https://www.analog.com/media/en/technical-documentation/data-sheets/ad7389-4.pdf
>   * adaq4370-4 :
> https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4370-4.pdf
>   * adaq4380-4 :
> https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4380-4.pdf
>   * adaq4381-4 :
> https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4381-4.pdf
> @@ -812,6 +813,21 @@ static const struct ad7380_chip_info ad7388_4_chip_info = {
>  	.max_conversion_rate_hz = 4 * MEGA,
>  };
>  
> +static const struct ad7380_chip_info ad7389_4_chip_info = {
> +	.name = "ad7389-4",
> +	.channels = ad7380_4_channels,
> +	.offload_channels = ad7380_4_offload_channels,
> +	.num_channels = ARRAY_SIZE(ad7380_4_channels),
> +	.num_simult_channels = 4,
> +	.supplies = ad7380_supplies,
> +	.num_supplies = ARRAY_SIZE(ad7380_supplies),
> +	.internal_ref_only = true,
> +	.internal_ref_mv = AD7380_INTERNAL_REF_MV,
> +	.available_scan_masks = ad7380_4_channel_scan_masks,
> +	.timing_specs = &ad7380_4_timing,
> +	.max_conversion_rate_hz = 4 * MEGA,
> +};
> +
>  static const struct ad7380_chip_info adaq4370_4_chip_info = {
>  	.name = "adaq4370-4",
>  	.channels = adaq4380_4_channels,
> @@ -2051,6 +2067,7 @@ static const struct of_device_id ad7380_of_match_table[] = {
>  	{ .compatible = "adi,ad7386-4", .data = &ad7386_4_chip_info },
>  	{ .compatible = "adi,ad7387-4", .data = &ad7387_4_chip_info },
>  	{ .compatible = "adi,ad7388-4", .data = &ad7388_4_chip_info },
> +	{ .compatible = "adi,ad7389-4", .data = &ad7389_4_chip_info },
>  	{ .compatible = "adi,adaq4370-4", .data = &adaq4370_4_chip_info },
>  	{ .compatible = "adi,adaq4380-4", .data = &adaq4380_4_chip_info },
>  	{ .compatible = "adi,adaq4381-4", .data = &adaq4381_4_chip_info },
> @@ -2072,6 +2089,7 @@ static const struct spi_device_id ad7380_id_table[] = {
>  	{ "ad7386-4", (kernel_ulong_t)&ad7386_4_chip_info },
>  	{ "ad7387-4", (kernel_ulong_t)&ad7387_4_chip_info },
>  	{ "ad7388-4", (kernel_ulong_t)&ad7388_4_chip_info },
> +	{ "ad7389-4", (kernel_ulong_t)&ad7389_4_chip_info },
>  	{ "adaq4370-4", (kernel_ulong_t)&adaq4370_4_chip_info },
>  	{ "adaq4380-4", (kernel_ulong_t)&adaq4380_4_chip_info },
>  	{ "adaq4381-4", (kernel_ulong_t)&adaq4381_4_chip_info },
> 


  reply	other threads:[~2025-04-03 19:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-01 22:50 [PATCH 0/5] iio: adc: ad7380: add ad7389-4 support David Lechner
2025-04-01 22:50 ` [PATCH 1/5] dt-bindings: iio: adc: ad7380: add AD7389-4 David Lechner
2025-04-02  8:25   ` Krzysztof Kozlowski
2025-04-02 14:39     ` David Lechner
2025-04-07  6:41       ` Krzysztof Kozlowski
2025-04-07  6:42   ` Krzysztof Kozlowski
2025-04-01 22:50 ` [PATCH 2/5] iio: adc: ad7380: rename internal_ref_only David Lechner
2025-04-03 18:53   ` Nuno Sá
2025-04-01 22:50 ` [PATCH 3/5] iio: adc: ad7380: move internal reference voltage to chip_info David Lechner
2025-04-03 18:56   ` Nuno Sá
2025-04-01 22:50 ` [PATCH 4/5] iio: adc: ad7380: add ad7389-4 David Lechner
2025-04-03 18:57   ` Nuno Sá [this message]
2025-04-01 22:50 ` [PATCH 5/5] Documentation: iio: ad7380: add AD7389-4 David Lechner
2025-04-07 18:46 ` [PATCH 0/5] iio: adc: ad7380: add ad7389-4 support Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0965e96453e96748c96b052d1658d7e1042c3b0b.camel@gmail.com \
    --to=noname.nuno@gmail.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).