Skip to content

Commit 26e27f4

Browse files
Ansuelvireshk
authored andcommitted
dt-bindings: cpufreq: qcom-cpufreq-nvmem: specify supported opp tables
Add additional info on what opp tables the defined devices in this schema supports (operating-points-v2-kryo-cpu and operating-points-v2-qcom-level) and reference them. Signed-off-by: Christian Marangi <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent 8e6cb91 commit 26e27f4

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,32 @@ properties:
5555

5656
patternProperties:
5757
'^opp-table(-[a-z0-9]+)?$':
58-
if:
59-
properties:
60-
compatible:
61-
const: operating-points-v2-kryo-cpu
62-
then:
63-
patternProperties:
64-
'^opp-?[0-9]+$':
65-
required:
66-
- required-opps
58+
allOf:
59+
- if:
60+
properties:
61+
compatible:
62+
const: operating-points-v2-kryo-cpu
63+
then:
64+
$ref: /schemas/opp/opp-v2-kryo-cpu.yaml#
65+
66+
- if:
67+
properties:
68+
compatible:
69+
const: operating-points-v2-kryo-cpu
70+
then:
71+
patternProperties:
72+
'^opp-?[0-9]+$':
73+
required:
74+
- required-opps
75+
76+
- if:
77+
properties:
78+
compatible:
79+
const: operating-points-v2-qcom-level
80+
then:
81+
$ref: /schemas/opp/opp-v2-qcom-level.yaml#
82+
83+
unevaluatedProperties: false
6784

6885
additionalProperties: true
6986

0 commit comments

Comments
 (0)