Skip to content

Commit 03749eb

Browse files
Icenowymripard
authored andcommitted
ARM: dts: sun8i: add opp-v2 table for A33
An operating point table is needed for the cpu frequency adjusting to work. The operating point table is converted from the common value in extracted script.fex from many A33 board/tablets. Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 90f6e8f commit 03749eb

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

arch/arm/boot/dts/sun8i-a33.dtsi

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,42 @@
4545
#include "sun8i-a23-a33.dtsi"
4646

4747
/ {
48+
cpu0_opp_table: opp_table0 {
49+
compatible = "operating-points-v2";
50+
opp-shared;
51+
52+
opp@648000000 {
53+
opp-hz = /bits/ 64 <648000000>;
54+
opp-microvolt = <1040000>;
55+
clock-latency-ns = <244144>; /* 8 32k periods */
56+
};
57+
58+
opp@816000000 {
59+
opp-hz = /bits/ 64 <816000000>;
60+
opp-microvolt = <1100000>;
61+
clock-latency-ns = <244144>; /* 8 32k periods */
62+
};
63+
64+
opp@1008000000 {
65+
opp-hz = /bits/ 64 <1008000000>;
66+
opp-microvolt = <1200000>;
67+
clock-latency-ns = <244144>; /* 8 32k periods */
68+
};
69+
70+
opp@1200000000 {
71+
opp-hz = /bits/ 64 <1200000000>;
72+
opp-microvolt = <1320000>;
73+
clock-latency-ns = <244144>; /* 8 32k periods */
74+
};
75+
};
76+
4877
cpus {
78+
cpu@0 {
79+
clocks = <&ccu CLK_CPUX>;
80+
clock-names = "cpu";
81+
operating-points-v2 = <&cpu0_opp_table>;
82+
};
83+
4984
cpu@2 {
5085
compatible = "arm,cortex-a7";
5186
device_type = "cpu";

0 commit comments

Comments
 (0)