[PATCH v5 0/3] iio: adc: ltc2309: add support driver for ltc2305

Kyle Hsieh posted 3 patches 1 week, 1 day ago
.../devicetree/bindings/iio/adc/lltc,ltc2497.yaml  |  7 ++
drivers/iio/adc/ltc2309.c                          | 81 ++++++++++++++++------
2 files changed, 67 insertions(+), 21 deletions(-)
[PATCH v5 0/3] iio: adc: ltc2309: add support driver for ltc2305
Posted by Kyle Hsieh 1 week, 1 day ago
The series add support for ltc2305 controller from 
Linear Technology Corporation(lltc).
This is low noise, low power, 2 channels 12-bit successive
approximation ADCs.

Signed-off-by: Kyle Hsieh <kylehsieh1995@gmail.com>
---
Changes in v5:
- Split the patch series to refactor LTC2309 channel enums first.
- Explicitly assign hex values to channel enums based on datasheet.
- Add support for LTC2305 on top of the refactored driver.
- Link to v4: https://lore.kernel.org/r/20260311-add_ltc2305_driver-v4-0-bc350d347f33@gmail.com

Changes in v4:
- Fix build warning in ltc2309_probe(): initialize 'chip_info'.
- Link to v3: https://lore.kernel.org/r/20260126-add_ltc2305_driver-v3-0-951349a87f97@gmail.com

Changes in v3:
- Modify ltc2305 channel mask to compatible ltc2309.
- Link to v2: https://lore.kernel.org/r/20251224-add_ltc2305_driver-v2-0-061f78cf45a3@gmail.com

Changes in v2:
- Reordered chip descriptions and code from low to high order.
- Renamed chip info structure to use ltc2309 driver prefix.
- Switched to i2c_get_match_data().
- Removed unused variables.
- Added chip info to i2c_device_id table.
- Link to v1: https://lore.kernel.org/r/20251223-add_ltc2305_driver-v1-0-dfa0827fd620@gmail.com

---
Kyle Hsieh (3):
      dt-bindings: adc: ltc2497: add support for ltc2305
      iio: adc: ltc2309: explicitly assign hex values to channel enums
      iio: adc: ltc2309: add support for ltc2305

 .../devicetree/bindings/iio/adc/lltc,ltc2497.yaml  |  7 ++
 drivers/iio/adc/ltc2309.c                          | 81 ++++++++++++++++------
 2 files changed, 67 insertions(+), 21 deletions(-)
---
base-commit: 9448598b22c50c8a5bb77a9103e2d49f134c9578
change-id: 20251223-add_ltc2305_driver-728fa9161bc7

Best regards,
-- 
Kyle Hsieh <kylehsieh1995@gmail.com>
Re: [PATCH v5 0/3] iio: adc: ltc2309: add support driver for ltc2305
Posted by Jonathan Cameron 1 week, 1 day ago
On Wed, 25 Mar 2026 10:24:19 +0800
Kyle Hsieh <kylehsieh1995@gmail.com> wrote:

> The series add support for ltc2305 controller from 
> Linear Technology Corporation(lltc).
> This is low noise, low power, 2 channels 12-bit successive
> approximation ADCs.
> 
> Signed-off-by: Kyle Hsieh <kylehsieh1995@gmail.com>
Applied to the togreg branch of iio.git.

To hussle things along a touch I skipped the normal pushing
it out as testing first (what could possibly go wrong ;)

Jonathan

> ---
> Changes in v5:
> - Split the patch series to refactor LTC2309 channel enums first.
> - Explicitly assign hex values to channel enums based on datasheet.
> - Add support for LTC2305 on top of the refactored driver.
> - Link to v4: https://lore.kernel.org/r/20260311-add_ltc2305_driver-v4-0-bc350d347f33@gmail.com
> 
> Changes in v4:
> - Fix build warning in ltc2309_probe(): initialize 'chip_info'.
> - Link to v3: https://lore.kernel.org/r/20260126-add_ltc2305_driver-v3-0-951349a87f97@gmail.com
> 
> Changes in v3:
> - Modify ltc2305 channel mask to compatible ltc2309.
> - Link to v2: https://lore.kernel.org/r/20251224-add_ltc2305_driver-v2-0-061f78cf45a3@gmail.com
> 
> Changes in v2:
> - Reordered chip descriptions and code from low to high order.
> - Renamed chip info structure to use ltc2309 driver prefix.
> - Switched to i2c_get_match_data().
> - Removed unused variables.
> - Added chip info to i2c_device_id table.
> - Link to v1: https://lore.kernel.org/r/20251223-add_ltc2305_driver-v1-0-dfa0827fd620@gmail.com
> 
> ---
> Kyle Hsieh (3):
>       dt-bindings: adc: ltc2497: add support for ltc2305
>       iio: adc: ltc2309: explicitly assign hex values to channel enums
>       iio: adc: ltc2309: add support for ltc2305
> 
>  .../devicetree/bindings/iio/adc/lltc,ltc2497.yaml  |  7 ++
>  drivers/iio/adc/ltc2309.c                          | 81 ++++++++++++++++------
>  2 files changed, 67 insertions(+), 21 deletions(-)
> ---
> base-commit: 9448598b22c50c8a5bb77a9103e2d49f134c9578
> change-id: 20251223-add_ltc2305_driver-728fa9161bc7
> 
> Best regards,
Re: [PATCH v5 0/3] iio: adc: ltc2309: add support driver for ltc2305
Posted by Kyle Hsieh 6 days, 23 hours ago
On Thu, Mar 26, 2026 at 3:50 AM Jonathan Cameron <jic23@kernel.org> wrote:
>
> On Wed, 25 Mar 2026 10:24:19 +0800
> Kyle Hsieh <kylehsieh1995@gmail.com> wrote:
>
> > The series add support for ltc2305 controller from
> > Linear Technology Corporation(lltc).
> > This is low noise, low power, 2 channels 12-bit successive
> > approximation ADCs.
> >
> > Signed-off-by: Kyle Hsieh <kylehsieh1995@gmail.com>
> Applied to the togreg branch of iio.git.
>
> To hussle things along a touch I skipped the normal pushing
> it out as testing first (what could possibly go wrong ;)
>
> Jonathan
Hi Jonathan,

I'm glad to see this series moving forward.
Thanks for your help!

Best regards,
Kyle
>
> > ---
> > Changes in v5:
> > - Split the patch series to refactor LTC2309 channel enums first.
> > - Explicitly assign hex values to channel enums based on datasheet.
> > - Add support for LTC2305 on top of the refactored driver.
> > - Link to v4: https://lore.kernel.org/r/20260311-add_ltc2305_driver-v4-0-bc350d347f33@gmail.com
> >
> > Changes in v4:
> > - Fix build warning in ltc2309_probe(): initialize 'chip_info'.
> > - Link to v3: https://lore.kernel.org/r/20260126-add_ltc2305_driver-v3-0-951349a87f97@gmail.com
> >
> > Changes in v3:
> > - Modify ltc2305 channel mask to compatible ltc2309.
> > - Link to v2: https://lore.kernel.org/r/20251224-add_ltc2305_driver-v2-0-061f78cf45a3@gmail.com
> >
> > Changes in v2:
> > - Reordered chip descriptions and code from low to high order.
> > - Renamed chip info structure to use ltc2309 driver prefix.
> > - Switched to i2c_get_match_data().
> > - Removed unused variables.
> > - Added chip info to i2c_device_id table.
> > - Link to v1: https://lore.kernel.org/r/20251223-add_ltc2305_driver-v1-0-dfa0827fd620@gmail.com
> >
> > ---
> > Kyle Hsieh (3):
> >       dt-bindings: adc: ltc2497: add support for ltc2305
> >       iio: adc: ltc2309: explicitly assign hex values to channel enums
> >       iio: adc: ltc2309: add support for ltc2305
> >
> >  .../devicetree/bindings/iio/adc/lltc,ltc2497.yaml  |  7 ++
> >  drivers/iio/adc/ltc2309.c                          | 81 ++++++++++++++++------
> >  2 files changed, 67 insertions(+), 21 deletions(-)
> > ---
> > base-commit: 9448598b22c50c8a5bb77a9103e2d49f134c9578
> > change-id: 20251223-add_ltc2305_driver-728fa9161bc7
> >
> > Best regards,
>
Re: [PATCH v5 0/3] iio: adc: ltc2309: add support driver for ltc2305
Posted by Andy Shevchenko 1 week ago
On Wed, Mar 25, 2026 at 07:50:35PM +0000, Jonathan Cameron wrote:
> On Wed, 25 Mar 2026 10:24:19 +0800
> Kyle Hsieh <kylehsieh1995@gmail.com> wrote:
> 
> > The series add support for ltc2305 controller from 
> > Linear Technology Corporation(lltc).
> > This is low noise, low power, 2 channels 12-bit successive
> > approximation ADCs.
> > 
> > Signed-off-by: Kyle Hsieh <kylehsieh1995@gmail.com>
> Applied to the togreg branch of iio.git.

With this version I also noticed a clash, but I forgot to reply yesterday...
TBH, I prefer the approach in the other series. But this can also do it
by splitting the chip_info introduction to the separate change.

Anyway, if it's applied, in the case of _this_ work it's not a big deal as
the result looks sane.

> To hussle things along a touch I skipped the normal pushing
> it out as testing first (what could possibly go wrong ;)

-- 
With Best Regards,
Andy Shevchenko