Skip to content

Commit 3b9d862

Browse files
imrashaiKomal-Bajaj
authored andcommitted
arm64: dts: qcom: shikra: Add cpufreq scaling node
Add cpufreq-hw node to support cpufreq scaling on Qualcomm Shikra SoCs. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
1 parent e77416b commit 3b9d862

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
next-level-cache = <&l3>;
4444
capacity-dmips-mhz = <1024>;
4545
dynamic-power-coefficient = <100>;
46+
qcom,freq-domain = <&cpufreq_hw 0>;
4647
};
4748

4849
cpu1: cpu@100 {
@@ -53,6 +54,7 @@
5354
next-level-cache = <&l3>;
5455
capacity-dmips-mhz = <1024>;
5556
dynamic-power-coefficient = <100>;
57+
qcom,freq-domain = <&cpufreq_hw 0>;
5658
};
5759

5860
cpu2: cpu@200 {
@@ -63,6 +65,7 @@
6365
next-level-cache = <&l3>;
6466
capacity-dmips-mhz = <1024>;
6567
dynamic-power-coefficient = <100>;
68+
qcom,freq-domain = <&cpufreq_hw 0>;
6669
};
6770

6871
cpu3: cpu@300 {
@@ -73,6 +76,7 @@
7376
next-level-cache = <&l2_3>;
7477
capacity-dmips-mhz = <1946>;
7578
dynamic-power-coefficient = <486>;
79+
qcom,freq-domain = <&cpufreq_hw 1>;
7680

7781
l2_3: l2-cache {
7882
compatible = "cache";
@@ -1062,6 +1066,24 @@
10621066
status = "disabled";
10631067
};
10641068
};
1069+
1070+
cpufreq_hw: cpufreq@fd91000 {
1071+
compatible = "qcom,shikra-cpufreq-rimps", "qcom,cpufreq-rimps";
1072+
reg = <0x0 0x0fd91000 0x0 0x1000>,
1073+
<0x0 0x0fd92000 0x0 0x1000>;
1074+
reg-names = "freq-domain0",
1075+
"freq-domain1";
1076+
1077+
clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&gcc GPLL0>;
1078+
clock-names = "xo", "alternate";
1079+
1080+
interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
1081+
<GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
1082+
interrupt-names = "dcvsh-irq-0",
1083+
"dcvsh-irq-1";
1084+
1085+
#freq-domain-cells = <1>;
1086+
};
10651087
};
10661088

10671089
timer {

0 commit comments

Comments
 (0)