dt-bindings: opp: Allow multi-worded OPP entry name
authorDmitry Osipenko <digetx@gmail.com>
Thu, 28 Oct 2021 22:15:47 +0000 (01:15 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Nov 2021 03:55:05 +0000 (09:25 +0530)
Not all OPP entries fit into a single word. In particular NVIDIA Tegra OPP
tables use multi-word names. Allow OPP entry to have multi-worded name
separated by hyphen. This silences DT checker warnings about wrong naming
scheme.

Reviewed-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Documentation/devicetree/bindings/opp/opp-v2-base.yaml

index ae3ae4d..15a76bc 100644 (file)
@@ -33,7 +33,7 @@ properties:
     type: boolean
 
 patternProperties:
-  '^opp-?[0-9]+$':
+  '^opp(-?[0-9]+)*$':
     type: object
     description:
       One or more OPP nodes describing voltage-current-frequency combinations.