Skip to content

Commit dafd595

Browse files
imrashaiKomal-Bajaj
authored andcommitted
arm64: dts: qcom: Add GCC and RPMCC node support
Add support for RPMCC and GCC nodes on Shikra platforms. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
1 parent 11083a6 commit dafd595

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/shikra.dtsi

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
44
*/
55

6+
#include <dt-bindings/clock/qcom,rpmcc.h>
7+
#include <dt-bindings/clock/qcom,shikra-gcc.h>
68
#include <dt-bindings/interrupt-controller/arm-gic.h>
79

810
/ {
@@ -11,6 +13,20 @@
1113
#address-cells = <2>;
1214
#size-cells = <2>;
1315

16+
clocks {
17+
xo_board: xo-board {
18+
compatible = "fixed-clock";
19+
clock-frequency = <38400000>;
20+
#clock-cells = <0>;
21+
};
22+
23+
sleep_clk: sleep-clk {
24+
compatible = "fixed-clock";
25+
clock-frequency = <32764>;
26+
#clock-cells = <0>;
27+
};
28+
};
29+
1430
cpus {
1531
#address-cells = <2>;
1632
#size-cells = <0>;
@@ -119,6 +135,13 @@
119135
rpm_requests: rpm-requests {
120136
compatible = "qcom,rpm-shikra", "qcom,glink-smd-rpm";
121137
qcom,glink-channels = "rpm_requests";
138+
139+
rpmcc: clock-controller {
140+
compatible = "qcom,rpmcc-shikra", "qcom,rpmcc";
141+
clocks = <&xo_board>;
142+
clock-names = "xo";
143+
#clock-cells = <1>;
144+
};
122145
};
123146
};
124147

@@ -276,6 +299,22 @@
276299
};
277300
};
278301

302+
gcc: clock-controller@1400000 {
303+
compatible = "qcom,shikra-gcc";
304+
reg = <0x0 0x01400000 0x0 0x1f0000>;
305+
clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>,
306+
<&sleep_clk>,
307+
<0>,
308+
<0>,
309+
<0>,
310+
<0>,
311+
<0>,
312+
<0>;
313+
#clock-cells = <1>;
314+
#reset-cells = <1>;
315+
#power-domain-cells = <1>;
316+
};
317+
279318
qfprom: efuse@1b44000 {
280319
compatible = "qcom,shikra-qfprom", "qcom,qfprom";
281320
reg = <0x0 0x01b44000 0x0 0x3000>;

0 commit comments

Comments
 (0)