Commit dc7fe512 authored by Phil Reid's avatar Phil Reid Committed by Jonathan Cameron

dt-binding: iio: Add optional label property

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: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarPhil Reid <preid@electromag.com.au>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 9318a9e5
...@@ -18,12 +18,17 @@ Required properties: ...@@ -18,12 +18,17 @@ Required properties:
with a single IIO output and 1 for nodes with multiple with a single IIO output and 1 for nodes with multiple
IIO outputs. IIO outputs.
Optional properties:
label: A symbolic name for the device.
Example for a simple configuration with no trigger: Example for a simple configuration with no trigger:
adc: voltage-sensor@35 { adc: voltage-sensor@35 {
compatible = "maxim,max1139"; compatible = "maxim,max1139";
reg = <0x35>; reg = <0x35>;
#io-channel-cells = <1>; #io-channel-cells = <1>;
label = "voltage_feedback_group1";
}; };
Example for a configuration with trigger: Example for a configuration with trigger:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment