Commit c682c963 authored by Rob Herring's avatar Rob Herring Committed by Jonathan Cameron

dt-bindings: iio: Add missing (unevaluated|additional)Properties on child nodes

In order to ensure only documented properties are present, node schemas
must have unevaluatedProperties or additionalProperties set to false
(typically).
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220823145649.3118479-2-robh@kernel.orgSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 1b55d33e
...@@ -58,6 +58,7 @@ required: ...@@ -58,6 +58,7 @@ required:
patternProperties: patternProperties:
"^.*@[0-9a-f]+$": "^.*@[0-9a-f]+$":
type: object type: object
additionalProperties: false
description: | description: |
Represents the external channels which are connected to the ADC. Represents the external channels which are connected to the ADC.
For compatible property "qcom,spmi-vadc" following channels, also known as For compatible property "qcom,spmi-vadc" following channels, also known as
......
...@@ -72,6 +72,7 @@ additionalProperties: false ...@@ -72,6 +72,7 @@ additionalProperties: false
patternProperties: patternProperties:
"^filter@[0-9]+$": "^filter@[0-9]+$":
type: object type: object
unevaluatedProperties: false
description: child node description: child node
properties: properties:
...@@ -225,6 +226,7 @@ patternProperties: ...@@ -225,6 +226,7 @@ patternProperties:
patternProperties: patternProperties:
"^dfsdm-dai+$": "^dfsdm-dai+$":
type: object type: object
additionalProperties: false
description: child node description: child node
properties: properties:
......
...@@ -43,6 +43,7 @@ additionalProperties: false ...@@ -43,6 +43,7 @@ additionalProperties: false
patternProperties: patternProperties:
"^channel@[0-7]+$": "^channel@[0-7]+$":
type: object type: object
additionalProperties: false
description: description:
Child nodes needed for each channel that the platform uses. Child nodes needed for each channel that the platform uses.
......
...@@ -134,6 +134,7 @@ properties: ...@@ -134,6 +134,7 @@ properties:
ams-pl@400: ams-pl@400:
type: object type: object
additionalProperties: false
description: description:
PL-SYSMON is capable of monitoring off chip voltage and temperature. PL-SYSMON is capable of monitoring off chip voltage and temperature.
PL-SYSMON block has DRP, JTAG and I2C interface to enable monitoring PL-SYSMON block has DRP, JTAG and I2C interface to enable monitoring
......
...@@ -63,6 +63,7 @@ additionalProperties: false ...@@ -63,6 +63,7 @@ additionalProperties: false
patternProperties: patternProperties:
"^channel@[0-3]$": "^channel@[0-3]$":
type: object type: object
additionalProperties: false
description: Represents the external channels which are connected to the device. description: Represents the external channels which are connected to the device.
properties: properties:
......
...@@ -78,6 +78,7 @@ patternProperties: ...@@ -78,6 +78,7 @@ patternProperties:
custom-output-range-config: custom-output-range-config:
type: object type: object
additionalProperties: false
description: Configuration of custom range when description: Configuration of custom range when
adi,output-range-microvolt is not present. adi,output-range-microvolt is not present.
The formulas for calculation the output voltages are The formulas for calculation the output voltages are
......
...@@ -60,6 +60,7 @@ properties: ...@@ -60,6 +60,7 @@ properties:
connected to the DAC. Channel 0 can act both as a current connected to the DAC. Channel 0 can act both as a current
source and sink. source and sink.
type: object type: object
additionalProperties: false
properties: properties:
reg: reg:
...@@ -83,6 +84,7 @@ properties: ...@@ -83,6 +84,7 @@ properties:
description: Represents an external channel which are description: Represents an external channel which are
connected to the DAC. connected to the DAC.
type: object type: object
additionalProperties: false
properties: properties:
reg: reg:
...@@ -99,6 +101,7 @@ properties: ...@@ -99,6 +101,7 @@ properties:
description: Represents an external channel which are description: Represents an external channel which are
connected to the DAC. connected to the DAC.
type: object type: object
additionalProperties: false
properties: properties:
reg: reg:
...@@ -114,6 +117,7 @@ properties: ...@@ -114,6 +117,7 @@ properties:
patternProperties: patternProperties:
"^channel@([3-5])$": "^channel@([3-5])$":
type: object type: object
additionalProperties: false
description: Represents the external channels which are connected to the DAC. description: Represents the external channels which are connected to the DAC.
properties: properties:
reg: reg:
......
...@@ -48,6 +48,7 @@ properties: ...@@ -48,6 +48,7 @@ properties:
patternProperties: patternProperties:
"^channel@([0-9]|1[0-5])$": "^channel@([0-9]|1[0-5])$":
type: object type: object
additionalProperties: false
properties: properties:
reg: reg:
......
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