From: Rodrigo Alencar <[email protected]>

Add documentation for a read-only sysfs attribute that allows to expose
parent-child relationships between IIO channels.

Signed-off-by: Rodrigo Alencar <[email protected]>
---
 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 d9c4e3b53f29..e0f11b39511f 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -2154,6 +2154,23 @@ Description:
                specific attributes. This is useful for userspace to be able to
                better identify an individual channel.
 
+What:          /sys/bus/iio/devices/iio:deviceX/in_voltageY_parent
+What:          /sys/bus/iio/devices/iio:deviceX/out_voltageY_parent
+What:          /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_parent
+What:          /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_parent
+What:          /sys/bus/iio/devices/iio:deviceX/in_currentY_parent
+What:          /sys/bus/iio/devices/iio:deviceX/out_currentY_parent
+What:          /sys/bus/iio/devices/iio:deviceX/in_altcurrentY_parent
+What:          /sys/bus/iio/devices/iio:deviceX/out_altcurrentY_parent
+KernelVersion: 7.2
+Contact:       [email protected]
+Description:
+               Read-only attribute containing the sysfs name prefix of the 
parent
+               channel for hierarchical channel relationships (e.g. 
"out_altvoltage0").
+               The prefix uniquely identifies the parent channel and can be 
used by
+               userspace to organize channels in tree-like structures that 
reflects
+               the physical or logical relationships between them.
+
 What:          /sys/bus/iio/devices/iio:deviceX/in_phaseY_raw
 KernelVersion: 4.18
 Contact:       [email protected]

-- 
2.43.0



Reply via email to