Commit de6fbef1 authored by Rob Herring's avatar Rob Herring Committed by Mark Brown

regulator: dt-bindings: 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>
Link: https://lore.kernel.org/r/20220823145649.3118479-7-robh@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0739ce4c
...@@ -83,6 +83,7 @@ properties: ...@@ -83,6 +83,7 @@ properties:
regulators: regulators:
type: object type: object
additionalProperties: false
description: | description: |
List of regulators provided by the device List of regulators provided by the device
......
...@@ -79,6 +79,7 @@ patternProperties: ...@@ -79,6 +79,7 @@ patternProperties:
patternProperties: patternProperties:
regulator-state-(standby|mem|disk): regulator-state-(standby|mem|disk):
type: object type: object
additionalProperties: true
properties: properties:
regulator-mode: false regulator-mode: false
......
...@@ -111,6 +111,7 @@ properties: ...@@ -111,6 +111,7 @@ properties:
regulators: regulators:
type: object type: object
additionalProperties: false
description: description:
List of child nodes that specify the regulators. List of child nodes that specify the regulators.
......
...@@ -29,6 +29,7 @@ properties: ...@@ -29,6 +29,7 @@ properties:
"^vbuck[1-4]$": "^vbuck[1-4]$":
type: object type: object
$ref: "regulator.yaml#" $ref: "regulator.yaml#"
unevaluatedProperties: false
properties: properties:
regulator-compatible: regulator-compatible:
......
...@@ -35,6 +35,7 @@ patternProperties: ...@@ -35,6 +35,7 @@ patternProperties:
description: List of regulators and its properties description: List of regulators and its properties
type: object type: object
$ref: regulator.yaml# $ref: regulator.yaml#
unevaluatedProperties: false
properties: properties:
qcom,ocp-max-retries: qcom,ocp-max-retries:
......
...@@ -20,6 +20,7 @@ properties: ...@@ -20,6 +20,7 @@ properties:
lab: lab:
type: object type: object
additionalProperties: false
properties: properties:
qcom,soft-start-us: qcom,soft-start-us:
...@@ -33,11 +34,19 @@ properties: ...@@ -33,11 +34,19 @@ properties:
description: description:
Short-circuit and over-current interrupts for lab. Short-circuit and over-current interrupts for lab.
interrupt-names:
minItems: 1
items:
- const: sc-err
- const: ocp
required: required:
- interrupts - interrupts
- interrupt-names
ibb: ibb:
type: object type: object
additionalProperties: false
properties: properties:
qcom,discharge-resistor-kohms: qcom,discharge-resistor-kohms:
...@@ -52,8 +61,15 @@ properties: ...@@ -52,8 +61,15 @@ properties:
description: description:
Short-circuit and over-current interrupts for ibb. Short-circuit and over-current interrupts for ibb.
interrupt-names:
minItems: 1
items:
- const: sc-err
- const: ocp
required: required:
- interrupts - interrupts
- interrupt-names
required: required:
- compatible - compatible
......
...@@ -42,6 +42,7 @@ patternProperties: ...@@ -42,6 +42,7 @@ patternProperties:
"^DSV(P|N)$": "^DSV(P|N)$":
type: object type: object
$ref: regulator.yaml# $ref: regulator.yaml#
unevaluatedProperties: false
description: description:
Properties for single display bias regulator. Properties for single display bias regulator.
......
...@@ -27,6 +27,7 @@ properties: ...@@ -27,6 +27,7 @@ properties:
description: description:
properties for wled regulator properties for wled regulator
$ref: regulator.yaml# $ref: regulator.yaml#
unevaluatedProperties: false
properties: properties:
regulator-name: regulator-name:
......
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