[PATCH v2 09/10] iio: ABI: add integration_time for output channels
From: Rodrigo Alencar via B4 Relay
Date: Thu Oct 22 2026 - 11:32:36 EST
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.
Reviewed-by: Nuno Sá <nuno.sa@xxxxxxxxxx>
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..b09254a57438 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.5
+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.
+
What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time
KernelVersion: 4.0
Contact: linux-iio@xxxxxxxxxxxxxxx
--
2.43.0