Thread (9 messages) flat view 9 messages, 4 authors, 1d ago

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

From: Andy Shevchenko <hidden>
Date: 2026-09-09 14:05:04
Also in: linux-iio, lkml

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 <redacted>

...
+LTC2497_DEFINE_CHANNELS(ltc2497core_channel_samp_freq,
+			BIT(IIO_CHAN_INFO_SAMP_FREQ));
I believe having this on a single line is fine.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help