Re: [PATCH v7 03/17] iio: ABI: add parent entry for iio channels
Jonathan Cameron <[email protected]>
| Newsgroups | org.kernel.vger.linux-hardening,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-doc,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260712015148.098f0bdb@jic23-huawei> |
On Tue, 07 Jul 2026 15:04:24 +0100 Rodrigo Alencar via B4 Relay <[email protected]> wrote: > 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]> > + > + For example, an IIO device may expose a primary output channel as > + "out_voltage0" together with a set of profile-based or mode-based > + subchannels used to configure or compose the output signal. These > + subchannels may carry common attributes such as frequency, phase, etc. > + They do not represent physical outputs, but rather logical/virtual > + channels grouping configurations that affect the primary output. > + Each subchannel exposes a *_parent attribute reading "out_voltage0", > + allowing userspace to group controls under the output channel they > + belong to rather than treating them as unrelated top-level channels. > + Nice. Thanks for adding that. Jonathan > What: /sys/bus/iio/devices/iio:deviceX/in_phaseY_raw > KernelVersion: 4.18 > Contact: [email protected] >