dt-bindings: power: Extend nodename pattern for power-domain providers
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 3 Mar 2020 15:07:46 +0000 (16:07 +0100)
committerRob Herring <robh@kernel.org>
Fri, 6 Mar 2020 18:12:20 +0000 (12:12 -0600)
The existing binding requires the nodename to have a '@', which is a bit
limiting for the wider use case. Therefore, let's extend the pattern to
allow either '@' or '-'.

Fixes: a3f048b5424e ("dt: psci: Update DT bindings to support hierarchical PSCI states")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[robh: drop example change]
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/power/power-domain.yaml

index 207e63a..6047aac 100644 (file)
@@ -25,7 +25,7 @@ description: |+
 
 properties:
   $nodename:
-    pattern: "^(power-controller|power-domain)(@.*)?$"
+    pattern: "^(power-controller|power-domain)([@-].*)?$"
 
   domain-idle-states:
     $ref: /schemas/types.yaml#/definitions/phandle-array