Commit 7b3c2046 authored by Rob Herring's avatar Rob Herring

dt-bindings: power: 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>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20220823145649.3118479-15-robh@kernel.org
parent a536208d
...@@ -20,6 +20,7 @@ properties: ...@@ -20,6 +20,7 @@ properties:
patternProperties: patternProperties:
"^(cpu|cluster|domain)-": "^(cpu|cluster|domain)-":
type: object type: object
additionalProperties: false
description: description:
Each state node represents a domain idle state description. Each state node represents a domain idle state description.
...@@ -44,6 +45,15 @@ patternProperties: ...@@ -44,6 +45,15 @@ patternProperties:
state will yield power benefits, after overcoming the overhead while state will yield power benefits, after overcoming the overhead while
entering the idle state. entering the idle state.
arm,psci-suspend-param:
$ref: /schemas/types.yaml#/definitions/uint32
description: |
power_state parameter to pass to the ARM PSCI suspend call.
Device tree nodes that require usage of PSCI CPU_SUSPEND function
(i.e. idle states node with entry-method property is set to "psci")
must specify this property.
required: required:
- compatible - compatible
- entry-latency-us - entry-latency-us
......
...@@ -43,11 +43,21 @@ properties: ...@@ -43,11 +43,21 @@ properties:
pgc: pgc:
type: object type: object
additionalProperties: false
description: list of power domains provided by this controller. description: list of power domains provided by this controller.
properties:
'#address-cells':
const: 1
'#size-cells':
const: 0
patternProperties: patternProperties:
"power-domain@[0-9]$": "power-domain@[0-9]$":
type: object type: object
additionalProperties: false
properties: properties:
'#power-domain-cells': '#power-domain-cells':
...@@ -78,6 +88,10 @@ properties: ...@@ -78,6 +88,10 @@ properties:
- '#power-domain-cells' - '#power-domain-cells'
- reg - reg
required:
- '#address-cells'
- '#size-cells'
required: required:
- compatible - compatible
- reg - reg
......
...@@ -42,11 +42,21 @@ properties: ...@@ -42,11 +42,21 @@ properties:
pgc: pgc:
type: object type: object
additionalProperties: false
description: list of power domains provided by this controller. description: list of power domains provided by this controller.
properties:
'#address-cells':
const: 1
'#size-cells':
const: 0
patternProperties: patternProperties:
"power-domain@[0-9]$": "power-domain@[0-9]$":
type: object type: object
additionalProperties: false
properties: properties:
'#power-domain-cells': '#power-domain-cells':
...@@ -85,6 +95,10 @@ properties: ...@@ -85,6 +95,10 @@ properties:
- '#power-domain-cells' - '#power-domain-cells'
- reg - reg
required:
- '#address-cells'
- '#size-cells'
required: required:
- compatible - compatible
- reg - reg
......
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