Re: [PATCH 09/10] iio: ABI: add integration_time for output channels

From: Jonathan Cameron

Date: Sat Oct 17 2026 - 16:43:47 EST


On Thu, 15 Oct 2026 13:49:49 -0300
Rodrigo Alencar via B4 Relay <devnull+rodrigo.alencar.analog.com@xxxxxxxxxx> wrote:

> From: Rodrigo Alencar <rodrigo.alencar@xxxxxxxxxx>
>
> Document the integration_time attribute for output channels, which is
> the time interval during which the output is generated by integrating
> a quantity, such as its rate of change. It is the output counterpart of
> the integration_time already defined for input channels.
> Add entries for the altcurrent, frequency and phase channel types, which
> are going to be used by the AD9910 DDS driver.
>
> Signed-off-by: Rodrigo Alencar <rodrigo.alencar@xxxxxxxxxx>
> ---
> Documentation/ABI/testing/sysfs-bus-iio | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
> index 2b6f57041763..a41a96935cfb 100644
> --- a/Documentation/ABI/testing/sysfs-bus-iio
> +++ b/Documentation/ABI/testing/sysfs-bus-iio
> @@ -1744,6 +1744,23 @@ Description:
> seconds. If shared across all channels of a given type,
> <type>_integration_time is used.
>
> +What: /sys/bus/iio/devices/iio:deviceX/out_altcurrentY_integration_time
> +What: /sys/bus/iio/devices/iio:deviceX/out_frequencyY_integration_time
> +What: /sys/bus/iio/devices/iio:deviceX/out_phaseY_integration_time
> +KernelVersion: 7.4
> +Contact: linux-iio@xxxxxxxxxxxxxxx
> +Description:
> + This attribute is used to get/set the integration time in
> + seconds of an output channel, i.e., the time interval during
> + which the output is generated by integrating (accumulating) a
> + quantity over time, such as the rate of change (roc) of the
> + channel. The output variation over this interval corresponds to
> + the integral of that quantity, which may be bounded by limits
> + configured through other channel attributes. The written value
> + may be adjusted to the nearest interval supported by the
> + hardware. If shared across all channels of a given type,
> + <type>_integration_time is used.
Interesting adaption. I wonder how often we will see this in drivers.
Works for me as I can't think what else integration time would mean
for outputs.

Jonathan

> +
> What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time
> KernelVersion: 4.0
> Contact: linux-iio@xxxxxxxxxxxxxxx
>