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