Skip to content

Commit 4970f31

Browse files
Ansuelandersson
authored andcommitted
dt-bindings: clock: fix wrong clock documentation for qcom,rpmcc
qcom,rpmcc describe 2 different kind of device. Currently we have definition for rpm-smd based device but we lack Documentation for simple rpm based device. Add the missing clk for ipq806x, apq8060, msm8660 and apq8064 and provide additional example to describe these new simple rpm based devices. Signed-off-by: Christian Marangi <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 873b985 commit 4970f31

File tree

1 file changed

+83
-2
lines changed

1 file changed

+83
-2
lines changed

Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml

Lines changed: 83 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,86 @@ properties:
4949
const: 1
5050

5151
clocks:
52-
maxItems: 1
52+
minItems: 1
53+
maxItems: 2
5354

5455
clock-names:
55-
const: xo
56+
minItems: 1
57+
maxItems: 2
5658

5759
required:
5860
- compatible
5961
- '#clock-cells'
6062

63+
allOf:
64+
- if:
65+
properties:
66+
compatible:
67+
contains:
68+
enum:
69+
- qcom,rpmcc-apq8060
70+
- qcom,rpmcc-ipq806x
71+
- qcom,rpmcc-msm8660
72+
73+
then:
74+
properties:
75+
clocks:
76+
items:
77+
- description: pxo clock
78+
79+
clock-names:
80+
items:
81+
- const: pxo
82+
83+
- if:
84+
properties:
85+
compatible:
86+
contains:
87+
const: qcom,rpmcc-apq8064
88+
then:
89+
properties:
90+
clocks:
91+
items:
92+
- description: pxo clock
93+
- description: cxo clock
94+
95+
clock-names:
96+
items:
97+
- const: pxo
98+
- const: cxo
99+
100+
- if:
101+
properties:
102+
compatible:
103+
contains:
104+
enum:
105+
- qcom,rpmcc-mdm9607
106+
- qcom,rpmcc-msm8226
107+
- qcom,rpmcc-msm8916
108+
- qcom,rpmcc-msm8936
109+
- qcom,rpmcc-msm8953
110+
- qcom,rpmcc-msm8974
111+
- qcom,rpmcc-msm8976
112+
- qcom,rpmcc-msm8992
113+
- qcom,rpmcc-msm8994
114+
- qcom,rpmcc-msm8996
115+
- qcom,rpmcc-msm8998
116+
- qcom,rpmcc-qcm2290
117+
- qcom,rpmcc-qcs404
118+
- qcom,rpmcc-sdm660
119+
- qcom,rpmcc-sm6115
120+
- qcom,rpmcc-sm6125
121+
122+
then:
123+
properties:
124+
clocks:
125+
items:
126+
- description: xo clock
127+
128+
clock-names:
129+
items:
130+
- const: xo
131+
61132
additionalProperties: false
62133

63134
examples:
@@ -73,3 +144,13 @@ examples:
73144
};
74145
};
75146
};
147+
148+
- |
149+
rpm {
150+
clock-controller {
151+
compatible = "qcom,rpmcc-ipq806x", "qcom,rpmcc";
152+
#clock-cells = <1>;
153+
clocks = <&pxo_board>;
154+
clock-names = "pxo";
155+
};
156+
};

0 commit comments

Comments
 (0)