From: Jonathan Cameron <jic23@kernel.org>
To: "David Lechner (TI)" <dlechner@baylibre.com>
Cc: "Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>, "Chris Hall" <c-hall@ti.com>,
"Patrick Edwards" <pedwards@ti.com>,
"Kurt Borja" <kuurtb@gmail.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 10/10] iio: ABI: add settlingtime attributes
Date: Sun, 6 Sep 2026 02:41:22 +0100 [thread overview]
Message-ID: <20260906024122.5c434b32@jic23-huawei> (raw)
In-Reply-To: <20260904-iio-adc-ti-ads112c14-filter-support-v2-10-f86592360658@baylibre.com>
On Fri, 04 Sep 2026 17:09:55 -0500
"David Lechner (TI)" <dlechner@baylibre.com> wrote:
> Add new generic attributes for input settling time introduced in the
> ti-ads122c14 driver.
>
> Usually, in IIO the output data rate is 1 / sampling_frequency. There
> are known devices (generally ones with filtering and oversampling) where
> the first conversion takes longer than 1 / sampling_frequency to allow
> the input to settle in order to have a valid conversion result. Then,
> any subsequent conversions in a continuous sampling mode would be done
> at the regular interval defined by 1 / sampling_frequency.
>
> This attribute is intended to allow controlling that settling time
> duration.
>
> A device that has input chopping enabled would see this settling time on
> every conversion since the device setting (i.e. the input mux) changes
> on every conversion.
>
> Signed-off-by: David Lechner (TI) <dlechner@baylibre.com>
One query inline. I'd like a bit in the commit description on that
mostly because I'm failing to remember the answer and there isn't
an obvious right answer.
Jonathan
> ---
> Documentation/ABI/testing/sysfs-bus-iio | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
> index a8e1cb8e7490..045589058655 100644
> --- a/Documentation/ABI/testing/sysfs-bus-iio
> +++ b/Documentation/ABI/testing/sysfs-bus-iio
> @@ -2402,6 +2402,32 @@ Description:
> Specifies which filter type apply to the channel. The possible
> values are given by the filter_type_available attribute.
>
> +What: /sys/bus/iio/devices/iio:deviceX/in_resistanceY_settlingtime
> +What: /sys/bus/iio/devices/iio:deviceX/in_tempY_settlingtime
> +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_settlingtime
> +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY-voltageZ_settlingtime
> +KernelVersion: 7.4
> +Contact: linux-iio@vger.kernel.org
> +Description:
> + Set/read total settling time in seconds for a device to settle
> + after starting the first conversion after any settings have
> + changed. The data for the conversion is outputted at the end of
> + this time.
This probably came up in earlier discussions and I've forgotten it but why
is this not the difference between the time needed for first sample and
that needed for subsequent. That's the only bit that is settling related rather
than acquisition time.
> +
> + Depending on the device and how it is used, this settling time
> + may apply to more than just the first conversion, e.g. to every
> + conversion in a single-shot conversion mode or when a device
> + setting changes after each conversion (input chopping).
> +
> +What: /sys/bus/iio/devices/iio:deviceX/in_resistanceY_settlingtime_available
> +What: /sys/bus/iio/devices/iio:deviceX/in_tempY_settlingtime_available
> +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_settlingtime_available
> +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY-voltageZ_settlingtime_available
> +KernelVersion: 7.4
> +Contact: linux-iio@vger.kernel.org
> +Description:
> + Available settlingtime values in IIO range or list format.
> +
> What: /sys/.../events/in_proximity_thresh_either_runningperiod
> KernelVersion: 6.6
> Contact: linux-iio@vger.kernel.org
>
next prev parent reply other threads:[~2026-09-06 1:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 22:09 [PATCH v2 00/10] iio: adc: ti-ads112c14: add filter support David Lechner (TI)
2026-09-04 22:09 ` [PATCH v2 01/10] iio: adc: ti-ads112c14: add DRDY interrupt support David Lechner (TI)
2026-09-04 22:09 ` [PATCH v2 02/10] iio: adc: ti-ads112c14: create data read helper functions David Lechner (TI)
2026-09-04 22:09 ` [PATCH v2 03/10] iio: adc: ti-ads112c14: add continuous mode support David Lechner (TI)
2026-09-04 22:09 ` [PATCH v2 04/10] iio: adc: ti-ads112c14: add burnout current support David Lechner (TI)
2026-09-04 22:09 ` [PATCH v2 05/10] iio: ABI: add sysfs attribute for _burnoutraw David Lechner (TI)
2026-09-04 22:09 ` [PATCH v2 06/10] iio: adc: ti-ads112c14: support external clock David Lechner (TI)
2026-09-06 1:41 ` Jonathan Cameron
2026-09-04 22:09 ` [PATCH v2 07/10] iio: adc: ti-ads112c14: add filter support David Lechner (TI)
2026-09-06 1:41 ` Jonathan Cameron
2026-09-04 22:09 ` [PATCH v2 08/10] iio: ABI: add sinc4+sinc1+pf1 filter_type David Lechner (TI)
2026-09-04 22:09 ` [PATCH v2 09/10] iio: adc: ti-ads112c14: add settlingtime attribute David Lechner (TI)
2026-09-06 1:41 ` Jonathan Cameron
2026-09-04 22:09 ` [PATCH v2 10/10] iio: ABI: add settlingtime attributes David Lechner (TI)
2026-09-06 1:41 ` Jonathan Cameron [this message]
2026-09-06 0:36 ` [PATCH v2 00/10] iio: adc: ti-ads112c14: add filter 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=20260906024122.5c434b32@jic23-huawei \
--to=jic23@kernel.org \
--cc=andy@kernel.org \
--cc=c-hall@ti.com \
--cc=dlechner@baylibre.com \
--cc=kuurtb@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=pedwards@ti.com \
/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
all inboxes | Powered by JetHome®