mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
regulator: dt-bindings: add missing unevaluatedProperties for each regulator
Each regulator node, which references common regulator.yaml schema,
should disallow additional or unevaluated properties. Otherwise
mistakes in properties will go unnoticed.
Reported-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Closes: 1c8aeef8a6
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230726074940.121040-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
75d9bf03e2
commit
d2d5481977
10 changed files with 17 additions and 1 deletions
|
@ -29,10 +29,12 @@ properties:
|
||||||
patternProperties:
|
patternProperties:
|
||||||
"^buck[1-4]$":
|
"^buck[1-4]$":
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
type: object
|
type: object
|
||||||
|
|
||||||
"^ldo[1-4]$":
|
"^ldo[1-4]$":
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
type: object
|
type: object
|
||||||
|
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
|
@ -38,11 +38,13 @@ properties:
|
||||||
ldortc:
|
ldortc:
|
||||||
type: object
|
type: object
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
patternProperties:
|
patternProperties:
|
||||||
"^ldo[1-4]$":
|
"^ldo[1-4]$":
|
||||||
type: object
|
type: object
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
"^buck[1-4]$":
|
"^buck[1-4]$":
|
||||||
type: object
|
type: object
|
||||||
|
|
|
@ -68,18 +68,22 @@ properties:
|
||||||
"^sw([1-4]|[1-4][a-c]|[1-4][a-c][a-c])$":
|
"^sw([1-4]|[1-4][a-c]|[1-4][a-c][a-c])$":
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
type: object
|
type: object
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
"^vgen[1-6]$":
|
"^vgen[1-6]$":
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
type: object
|
type: object
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
"^vldo[1-4]$":
|
"^vldo[1-4]$":
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
type: object
|
type: object
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
"^(vsnvs|vref|vrefddr|swbst|coin|v33|vccsd)$":
|
"^(vsnvs|vref|vrefddr|swbst|coin|v33|vccsd)$":
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
type: object
|
type: object
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
||||||
|
|
|
@ -111,6 +111,7 @@ properties:
|
||||||
bob:
|
bob:
|
||||||
type: object
|
type: object
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
description: BOB regulator node.
|
description: BOB regulator node.
|
||||||
dependencies:
|
dependencies:
|
||||||
regulator-allow-set-load: [ regulator-allowed-modes ]
|
regulator-allow-set-load: [ regulator-allowed-modes ]
|
||||||
|
@ -119,6 +120,7 @@ patternProperties:
|
||||||
"^(smps|ldo|lvs|bob)[0-9]+$":
|
"^(smps|ldo|lvs|bob)[0-9]+$":
|
||||||
type: object
|
type: object
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
description: smps/ldo regulator nodes(s).
|
description: smps/ldo regulator nodes(s).
|
||||||
dependencies:
|
dependencies:
|
||||||
regulator-allow-set-load: [ regulator-allowed-modes ]
|
regulator-allow-set-load: [ regulator-allowed-modes ]
|
||||||
|
|
|
@ -110,6 +110,7 @@ patternProperties:
|
||||||
"^((s|l|lvs|5vs)[0-9]*)|(boost-bypass)|(bob)$":
|
"^((s|l|lvs|5vs)[0-9]*)|(boost-bypass)|(bob)$":
|
||||||
description: List of regulators and its properties
|
description: List of regulators and its properties
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ patternProperties:
|
||||||
"^DSV(LCM|P|N)$":
|
"^DSV(LCM|P|N)$":
|
||||||
type: object
|
type: object
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
description:
|
description:
|
||||||
Properties for single Display Bias Voltage regulator.
|
Properties for single Display Bias Voltage regulator.
|
||||||
|
|
||||||
|
|
|
@ -121,6 +121,7 @@ properties:
|
||||||
description: load switch current regulator description.
|
description: load switch current regulator description.
|
||||||
type: object
|
type: object
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
|
|
|
@ -35,6 +35,7 @@ properties:
|
||||||
"^(p|n)avdd$":
|
"^(p|n)avdd$":
|
||||||
type: object
|
type: object
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
description: |
|
description: |
|
||||||
regulator description for pavdd and navdd.
|
regulator description for pavdd and navdd.
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@ properties:
|
||||||
patternProperties:
|
patternProperties:
|
||||||
"^(reg11|reg18|usb33)$":
|
"^(reg11|reg18|usb33)$":
|
||||||
type: object
|
type: object
|
||||||
|
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
|
|
|
@ -29,11 +29,13 @@ properties:
|
||||||
Initial data for the LDO1 regulator.
|
Initial data for the LDO1 regulator.
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
type: object
|
type: object
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
micvdd:
|
micvdd:
|
||||||
description:
|
description:
|
||||||
Initial data for the MICVDD regulator.
|
Initial data for the MICVDD regulator.
|
||||||
$ref: regulator.yaml#
|
$ref: regulator.yaml#
|
||||||
type: object
|
type: object
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
|
|
Loading…
Reference in a new issue