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: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220823145649.3118479-7-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Rob Herring 2022-08-23 09:56:38 -05:00 committed by Mark Brown
parent 0739ce4c12
commit de6fbef10c
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
8 changed files with 23 additions and 0 deletions

View File

@ -83,6 +83,7 @@ properties:
regulators:
type: object
additionalProperties: false
description: |
List of regulators provided by the device

View File

@ -79,6 +79,7 @@ patternProperties:
patternProperties:
regulator-state-(standby|mem|disk):
type: object
additionalProperties: true
properties:
regulator-mode: false

View File

@ -111,6 +111,7 @@ properties:
regulators:
type: object
additionalProperties: false
description:
List of child nodes that specify the regulators.

View File

@ -29,6 +29,7 @@ properties:
"^vbuck[1-4]$":
type: object
$ref: "regulator.yaml#"
unevaluatedProperties: false
properties:
regulator-compatible:

View File

@ -35,6 +35,7 @@ patternProperties:
description: List of regulators and its properties
type: object
$ref: regulator.yaml#
unevaluatedProperties: false
properties:
qcom,ocp-max-retries:

View File

@ -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

View File

@ -42,6 +42,7 @@ patternProperties:
"^DSV(P|N)$":
type: object
$ref: regulator.yaml#
unevaluatedProperties: false
description:
Properties for single display bias regulator.

View File

@ -27,6 +27,7 @@ properties:
description:
properties for wled regulator
$ref: regulator.yaml#
unevaluatedProperties: false
properties:
regulator-name: