dt-bindings: arm: Add some constraints for PSCI nodes
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 26 Mar 2020 10:56:25 +0000 (11:56 +0100)
committerRob Herring <robh@kernel.org>
Tue, 31 Mar 2020 22:05:18 +0000 (16:05 -0600)
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 <ulf.hansson@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/arm/psci.yaml

index 5e66934455bbc986afb759e32be3ed2e4e80b8a5..9247b58c26fc99bb26563fa27a0aada876eb45dd 100644 (file)
@@ -32,6 +32,9 @@ description: |+
     http://infocenter.arm.com/help/topic/com.arm.doc.den0022c/DEN0022C_Power_State_Coordination_Interface.pdf
 
 properties:
+  $nodename:
+    const: psci
+
   compatible:
     oneOf:
       - description:
@@ -141,6 +144,8 @@ allOf:
         - cpu_off
         - cpu_on
 
+additionalProperties: false
+
 examples:
   - |+