Skip to content

Commit

Permalink
dt-bindings:iio:adc:adi,ad7768-1: Add documentation for channel label
Browse files Browse the repository at this point in the history
Optional attribute for better identification of the channels.

Signed-off-by: Cristian Pop <cristian.pop@analog.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200928090959.88842-4-cristian.pop@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
  • Loading branch information
Cristian Pop authored and Jonathan Cameron committed Nov 8, 2020
1 parent 75ed0be commit 7d4156d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ properties:
interrupts:
maxItems: 1

'#address-cells':
const: 1

'#size-cells':
const: 0

vref-supply:
description:
ADC reference voltage supply
Expand Down Expand Up @@ -61,6 +67,24 @@ required:
- spi-cpha
- 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

examples:
Expand All @@ -84,6 +108,14 @@ examples:
reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
clocks = <&ad7768_mclk>;
clock-names = "mclk";
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
label = "channel_0";
};
};
};
...

0 comments on commit 7d4156d

Please sign in to comment.