public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Kyle Hsieh <kylehsieh1995@gmail.com>
Cc: "Lars-Peter Clausen" <lars@metafoo.de>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Liam Beguin" <liambeguin@gmail.com>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] iio: adc: ltc2309: add support for ltc2305
Date: Sat, 27 Dec 2025 18:18:08 +0000	[thread overview]
Message-ID: <20251227181808.3dbe5b0a@jic23-huawei> (raw)
In-Reply-To: <20251224-add_ltc2305_driver-v2-2-061f78cf45a3@gmail.com>

On Wed, 24 Dec 2025 13:37:15 +0800
Kyle Hsieh <kylehsieh1995@gmail.com> wrote:

> Add support for the 2-channel LTC2305 ADC in the existing LTC2309 driver.
> The LTC2305 and LTC2309 share similar features: both are 12-bit,
> low-noise, low-power SAR ADCs with an I2C interface.
> The main difference is the number of channels: LTC2305 has 2 channels,
> while LTC2309 has 8 channels.
> 
> Signed-off-by: Kyle Hsieh <kylehsieh1995@gmail.com>
Hi Kyle

This is a fairly small patch, so don't bother doing it this time, but
for future reference, if you are doing a refactor to enable something new
split it into a refactor patch (which makes no operational changes) and
a new stuff patch. Here first of those patches would introduce the chip_info
structure but only for existing supported devices.  That can be reviewed
easily to make sure there are not functional changes.  The second patch then
adds the entries for the new device (which can be checked against the datasheet).

When it is very small, in the interests of expediency we sometimes don't
worry too much about the ideal formation of patches.

In line I mention that the ltc2301 would be very easy to add as well if you
want to do so.  Otherwise looks good to me. I'll leave it on list a little
while though before applying.

> ---
>  drivers/iio/adc/ltc2309.c | 51 ++++++++++++++++++++++++++++++++++++++++++-----
>  1 file changed, 46 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/iio/adc/ltc2309.c b/drivers/iio/adc/ltc2309.c
> index 5f0d947d0615..0cf9bcae36c8 100644
> --- a/drivers/iio/adc/ltc2309.c
> +++ b/drivers/iio/adc/ltc2309.c
> @@ -1,8 +1,10 @@
>  // SPDX-License-Identifier: GPL-2.0
>  /*
> + * The LTC2305 is a  2-Channel, 12-Bit SAR ADC with an I2C Interface.
>   * The LTC2309 is an 8-Channel, 12-Bit SAR ADC with an I2C Interface.
>   *
>   * Datasheet:
> + * https://www.analog.com/media/en/technical-documentation/data-sheets/23015fb.pdf

If you wanted to, it should be trivial to also support the 2301 (I looked given the
odd datasheet file name!)  For families of parts it is common to add support based
on only have access to a small subset.


>   * https://www.analog.com/media/en/technical-documentation/data-sheets/2309fd.pdf

  parent reply	other threads:[~2025-12-27 18:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-24  5:37 [PATCH v2 0/2] iio: adc: ltc2309: add support driver for ltc2305 Kyle Hsieh
2025-12-24  5:37 ` [PATCH v2 1/2] dt-bindings: adc: ltc2497: add support " Kyle Hsieh
2025-12-27 12:39   ` Krzysztof Kozlowski
2025-12-30  1:08     ` Kyle Hsieh
2025-12-24  5:37 ` [PATCH v2 2/2] iio: adc: ltc2309: " Kyle Hsieh
2025-12-27 14:55   ` Andy Shevchenko
2025-12-27 18:18   ` Jonathan Cameron [this message]
2025-12-30  1:13     ` Kyle Hsieh
2025-12-27 18:07 ` [PATCH v2 0/2] iio: adc: ltc2309: add support driver " 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=20251227181808.3dbe5b0a@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=kylehsieh1995@gmail.com \
    --cc=lars@metafoo.de \
    --cc=liambeguin@gmail.com \
    --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