Skip to content

Commit b203bb5

Browse files
storulfrobherring
authored andcommitted
dt-bindings: arm: Add some constraints for PSCI nodes
There's no point allowing anything else but "psci" for the corresponding nodename of the PSCI node, so let's make this an explicit requirement. Moreover, let's also prevent additional properties, which also allows a better verification of the "patternProperties" bindings for subnodes. Signed-off-by: Ulf Hansson <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent 1adc867 commit b203bb5

File tree

1 file changed

+5
-0
lines changed
  • Documentation/devicetree/bindings/arm

1 file changed

+5
-0
lines changed

Documentation/devicetree/bindings/arm/psci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ description: |+
3232
http://infocenter.arm.com/help/topic/com.arm.doc.den0022c/DEN0022C_Power_State_Coordination_Interface.pdf
3333
3434
properties:
35+
$nodename:
36+
const: psci
37+
3538
compatible:
3639
oneOf:
3740
- description:
@@ -141,6 +144,8 @@ allOf:
141144
- cpu_off
142145
- cpu_on
143146

147+
additionalProperties: false
148+
144149
examples:
145150
- |+
146151

0 commit comments

Comments
 (0)