From: Ulf Hansson Date: Thu, 26 Mar 2020 10:56:25 +0000 (+0100) Subject: dt-bindings: arm: Add some constraints for PSCI nodes X-Git-Tag: v5.7-rc1~111^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b203bb5f6219e84966889497e63f8a2cf8db7f0c;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Rob Herring --- diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml index 5e66934455bbc..9247b58c26fc9 100644 --- a/Documentation/devicetree/bindings/arm/psci.yaml +++ b/Documentation/devicetree/bindings/arm/psci.yaml @@ -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: - |+