Skip to content

Commit c96b13d

Browse files
knaerzchemmind
authored andcommitted
ARM: dts: rockchip: Switch to operating-points-v2 for RK3128's CPU
This will allow frequency-scaling for the cpu-cores. Operating frequencies and voltages have been taken from Rockchip's downstream kernel. Signed-off-by: Alex Bee <knaerzche@gmail.com> Link: https://lore.kernel.org/r/20230829214004.314932-10-knaerzche@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent da8b973 commit c96b13d

1 file changed

Lines changed: 39 additions & 4 deletions

File tree

arch/arm/boot/dts/rockchip/rk3128.dtsi

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@
3636
clock-latency = <40000>;
3737
clocks = <&cru ARMCLK>;
3838
resets = <&cru SRST_CORE0>;
39-
operating-points = <
40-
/* KHz uV */
41-
816000 1000000
42-
>;
39+
operating-points-v2 = <&cpu_opp_table>;
4340
#cooling-cells = <2>; /* min followed by max */
4441
};
4542

@@ -48,20 +45,58 @@
4845
compatible = "arm,cortex-a7";
4946
reg = <0xf01>;
5047
resets = <&cru SRST_CORE1>;
48+
operating-points-v2 = <&cpu_opp_table>;
5149
};
5250

5351
cpu2: cpu@f02 {
5452
device_type = "cpu";
5553
compatible = "arm,cortex-a7";
5654
reg = <0xf02>;
5755
resets = <&cru SRST_CORE2>;
56+
operating-points-v2 = <&cpu_opp_table>;
5857
};
5958

6059
cpu3: cpu@f03 {
6160
device_type = "cpu";
6261
compatible = "arm,cortex-a7";
6362
reg = <0xf03>;
6463
resets = <&cru SRST_CORE3>;
64+
operating-points-v2 = <&cpu_opp_table>;
65+
};
66+
};
67+
68+
cpu_opp_table: opp-table-0 {
69+
compatible = "operating-points-v2";
70+
opp-shared;
71+
72+
opp-216000000 {
73+
opp-hz = /bits/ 64 <216000000>;
74+
opp-microvolt = <950000 950000 1325000>;
75+
};
76+
opp-408000000 {
77+
opp-hz = /bits/ 64 <408000000>;
78+
opp-microvolt = <950000 950000 1325000>;
79+
};
80+
opp-600000000 {
81+
opp-hz = /bits/ 64 <600000000>;
82+
opp-microvolt = <950000 950000 1325000>;
83+
};
84+
opp-696000000 {
85+
opp-hz = /bits/ 64 <696000000>;
86+
opp-microvolt = <975000 975000 1325000>;
87+
};
88+
opp-816000000 {
89+
opp-hz = /bits/ 64 <816000000>;
90+
opp-microvolt = <1075000 1075000 1325000>;
91+
opp-suspend;
92+
};
93+
opp-1008000000 {
94+
opp-hz = /bits/ 64 <1008000000>;
95+
opp-microvolt = <1200000 1200000 1325000>;
96+
};
97+
opp-1200000000 {
98+
opp-hz = /bits/ 64 <1200000000>;
99+
opp-microvolt = <1325000 1325000 1325000>;
65100
};
66101
};
67102

0 commit comments

Comments
 (0)