Message ID | 1568903768-65998-2-git-send-email-preid@electromag.com.au (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | iio: core: Add optional symbolic label to device attributes | expand |
On Thu, Sep 19, 2019 at 10:36:07PM +0800, Phil Reid wrote: > This optional property defines a symbolic name for the device. > This helps to distinguish between more than one iio device > of the same type. > > Suggested-by: Michal Simek <michal.simek@xilinx.com> > Signed-off-by: Phil Reid <preid@electromag.com.au> > --- > Documentation/devicetree/bindings/iio/iio-bindings.txt | 5 +++++ > 1 file changed, 5 insertions(+) Reviewed-by: Rob Herring <robh@kernel.org>
On Fri, 27 Sep 2019 09:44:19 -0500 Rob Herring <robh@kernel.org> wrote: > On Thu, Sep 19, 2019 at 10:36:07PM +0800, Phil Reid wrote: > > This optional property defines a symbolic name for the device. > > This helps to distinguish between more than one iio device > > of the same type. > > > > Suggested-by: Michal Simek <michal.simek@xilinx.com> > > Signed-off-by: Phil Reid <preid@electromag.com.au> > > --- > > Documentation/devicetree/bindings/iio/iio-bindings.txt | 5 +++++ > > 1 file changed, 5 insertions(+) > > Reviewed-by: Rob Herring <robh@kernel.org> Applied to the togreg branch of iio.git and pushed out as testing for nothing much to happen to it. Thanks, Jonathan
diff --git a/Documentation/devicetree/bindings/iio/iio-bindings.txt b/Documentation/devicetree/bindings/iio/iio-bindings.txt index 68d6f8ce063b..af33267727f4 100644 --- a/Documentation/devicetree/bindings/iio/iio-bindings.txt +++ b/Documentation/devicetree/bindings/iio/iio-bindings.txt @@ -18,12 +18,17 @@ Required properties: with a single IIO output and 1 for nodes with multiple IIO outputs. +Optional properties: +label: A symbolic name for the device. + + Example for a simple configuration with no trigger: adc: voltage-sensor@35 { compatible = "maxim,max1139"; reg = <0x35>; #io-channel-cells = <1>; + label = "voltage_feedback_group1"; }; Example for a configuration with trigger:
This optional property defines a symbolic name for the device. This helps to distinguish between more than one iio device of the same type. Suggested-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Phil Reid <preid@electromag.com.au> --- Documentation/devicetree/bindings/iio/iio-bindings.txt | 5 +++++ 1 file changed, 5 insertions(+)