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:
parent
0739ce4c12
commit
de6fbef10c
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user