diff mbox series

[1/2] dt-bindings: arm: Add some constraints for PSCI nodes

Message ID 20200326105626.6369-2-ulf.hansson@linaro.org
State Accepted, archived
Headers show
Series dt-bindings: A few updates to PSCI and power-domain bindings | expand

Checks

Context Check Description
robh/dt-meta-schema success
robh/checkpatch success

Commit Message

Ulf Hansson March 26, 2020, 10:56 a.m. UTC
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>
---
 Documentation/devicetree/bindings/arm/psci.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Rob Herring March 31, 2020, 10:05 p.m. UTC | #1
On Thu, 26 Mar 2020 11:56:25 +0100, Ulf Hansson wrote:
> 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>
> ---
>  Documentation/devicetree/bindings/arm/psci.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
> 

Applied, thanks.

Rob
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml
index 5e66934455bb..9247b58c26fc 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:
   - |+