提交 26d146e2 编写于 作者: J Jonathan Cameron

dt-bindings:iio:adc:adi,ad7124: Use the new adc.yaml channel binding

This both ensures this binding is compliant with the generic properties
and reduces the amount we need to specify in this separate binding.

Whilst here mark the child node as additionalProperties: false
Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: NRob Herring <robh@kernel.org>
Cc: Michael Hennerich <Michael.Hennerich@analog.com>
Link: https://lore.kernel.org/r/20201031182423.742798-3-jic23@kernel.org
上级 b70d154d
...@@ -63,10 +63,10 @@ required: ...@@ -63,10 +63,10 @@ required:
patternProperties: patternProperties:
"^channel@([0-9]|1[0-5])$": "^channel@([0-9]|1[0-5])$":
$ref: "adc.yaml"
type: object type: object
description: | description: |
Represents the external channels which are connected to the ADC. Represents the external channels which are connected to the ADC.
See Documentation/devicetree/bindings/iio/adc/adc.txt.
properties: properties:
reg: reg:
...@@ -88,15 +88,9 @@ patternProperties: ...@@ -88,15 +88,9 @@ patternProperties:
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
enum: [0, 1, 3] enum: [0, 1, 3]
diff-channels: diff-channels: true
description: see Documentation/devicetree/bindings/iio/adc/adc.txt
items:
minimum: 0
maximum: 15
bipolar: bipolar: true
description: see Documentation/devicetree/bindings/iio/adc/adc.txt
type: boolean
adi,buffered-positive: adi,buffered-positive:
description: Enable buffered mode for positive input. description: Enable buffered mode for positive input.
...@@ -110,6 +104,8 @@ patternProperties: ...@@ -110,6 +104,8 @@ patternProperties:
- reg - reg
- diff-channels - diff-channels
additionalProperties: false
additionalProperties: false additionalProperties: false
examples: examples:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册