Re: [PATCH v4 3/3] iio: adc: ltc2497: add 2x conversion speed mode

From: Jonathan Cameron

Date: Sun Sep 13 2026 - 19:38:36 EST


On Wed, 9 Sep 2026 17:04:57 +0300
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:

> On Wed, Sep 09, 2026 at 11:27:52AM +0300, Andrei Stancovici wrote:
> > The LTC2499 can convert at twice the output rate by disabling the offset
> > auto-calibration. Expose it through sampling_frequency and
> > sampling_frequency_available on the voltage channels. The part ignores
> > the setting while measuring temperature, so the temperature channel does
> > not carry the attribute.
> >
> > The wait before a result is read is keyed on the conversion currently in
> > flight, whose duration is fixed by the mode that was active when it
> > started rather than by the mode just selected. Otherwise the first read
> > after a 1x -> 2x switch can reprogram the part while a 1x conversion is
> > still running, which the part NACKs.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
>
> ...
>
> > +LTC2497_DEFINE_CHANNELS(ltc2497core_channel_samp_freq,
> > + BIT(IIO_CHAN_INFO_SAMP_FREQ));
>
> I believe having this on a single line is fine.
>
Tweaked.

I've taken the somewhat (currently) unusual step of picking up 2 and 3, but
not patch 1. In the past I've always been one to pick up whatever is ready
but since that started confusing sashiko I stopped doing so.
Here it doesn't matter as patch 1 is independent anyway!

So patches 2 and 3 are on the testing branch of iio.git.

Thanks,

Jonathan