Commit 7d4156dd authored by Cristian Pop's avatar Cristian Pop Committed by Jonathan Cameron

dt-bindings:iio:adc:adi,ad7768-1: Add documentation for channel label

Optional attribute for better identification of the channels.
Signed-off-by: default avatarCristian Pop <cristian.pop@analog.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200928090959.88842-4-cristian.pop@analog.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 75ed0be7
...@@ -29,6 +29,12 @@ properties: ...@@ -29,6 +29,12 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
'#address-cells':
const: 1
'#size-cells':
const: 0
vref-supply: vref-supply:
description: description:
ADC reference voltage supply ADC reference voltage supply
...@@ -61,6 +67,24 @@ required: ...@@ -61,6 +67,24 @@ required:
- spi-cpha - spi-cpha
- adi,sync-in-gpios - adi,sync-in-gpios
patternProperties:
"^channel@([0-9]|1[0-5])$":
type: object
description: |
Represents the external channels which are connected to the device.
properties:
reg:
description: |
The channel number.
label:
description: |
Unique name to identify which channel this is.
required:
- reg
additionalProperties: false
additionalProperties: false additionalProperties: false
examples: examples:
...@@ -84,6 +108,14 @@ examples: ...@@ -84,6 +108,14 @@ examples:
reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>; reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
clocks = <&ad7768_mclk>; clocks = <&ad7768_mclk>;
clock-names = "mclk"; clock-names = "mclk";
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
label = "channel_0";
};
}; };
}; };
... ...
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