Skip to content

Commit b4e450c

Browse files
finley1226wzyy2
authored andcommitted
ARM: dts: rk3288: use operating-points-v2
Change-Id: I3cb938fbfaf0ae5957d4832f4ad5671ab9631409 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
1 parent ad3ce38 commit b4e450c

1 file changed

Lines changed: 66 additions & 16 deletions

File tree

arch/arm/boot/dts/rk3288.dtsi

Lines changed: 66 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,42 +93,92 @@
9393
compatible = "arm,cortex-a12";
9494
reg = <0x500>;
9595
resets = <&cru SRST_CORE0>;
96-
operating-points = <
97-
/* KHz uV */
98-
1608000 1350000
99-
1512000 1300000
100-
1416000 1200000
101-
1200000 1100000
102-
1008000 1050000
103-
816000 1000000
104-
696000 950000
105-
600000 900000
106-
408000 900000
107-
312000 900000
108-
216000 900000
109-
126000 900000
110-
>;
96+
operating-points-v2 = <&cpu0_opp_table>;
11197
#cooling-cells = <2>; /* min followed by max */
112-
clock-latency = <40000>;
11398
clocks = <&cru ARMCLK>;
11499
};
115100
cpu1: cpu@501 {
116101
device_type = "cpu";
117102
compatible = "arm,cortex-a12";
118103
reg = <0x501>;
119104
resets = <&cru SRST_CORE1>;
105+
operating-points-v2 = <&cpu0_opp_table>;
120106
};
121107
cpu2: cpu@502 {
122108
device_type = "cpu";
123109
compatible = "arm,cortex-a12";
124110
reg = <0x502>;
125111
resets = <&cru SRST_CORE2>;
112+
operating-points-v2 = <&cpu0_opp_table>;
126113
};
127114
cpu3: cpu@503 {
128115
device_type = "cpu";
129116
compatible = "arm,cortex-a12";
130117
reg = <0x503>;
131118
resets = <&cru SRST_CORE3>;
119+
operating-points-v2 = <&cpu0_opp_table>;
120+
};
121+
};
122+
123+
cpu0_opp_table: opp_table0 {
124+
compatible = "operating-points-v2";
125+
opp-shared;
126+
127+
opp@126000000 {
128+
opp-hz = /bits/ 64 <126000000>;
129+
opp-microvolt = <900000>;
130+
clock-latency-ns = <40000>;
131+
};
132+
opp@216000000 {
133+
opp-hz = /bits/ 64 <216000000>;
134+
opp-microvolt = <900000>;
135+
clock-latency-ns = <40000>;
136+
};
137+
opp@408000000 {
138+
opp-hz = /bits/ 64 <408000000>;
139+
opp-microvolt = <900000>;
140+
clock-latency-ns = <40000>;
141+
};
142+
opp@600000000 {
143+
opp-hz = /bits/ 64 <600000000>;
144+
opp-microvolt = <900000>;
145+
clock-latency-ns = <40000>;
146+
};
147+
opp@696000000 {
148+
opp-hz = /bits/ 64 <696000000>;
149+
opp-microvolt = <950000>;
150+
clock-latency-ns = <40000>;
151+
};
152+
opp@816000000 {
153+
opp-hz = /bits/ 64 <816000000>;
154+
opp-microvolt = <1000000>;
155+
clock-latency-ns = <40000>;
156+
opp-suspend;
157+
};
158+
opp@1008000000 {
159+
opp-hz = /bits/ 64 <1008000000>;
160+
opp-microvolt = <1050000>;
161+
clock-latency-ns = <40000>;
162+
};
163+
opp@1200000000 {
164+
opp-hz = /bits/ 64 <1200000000>;
165+
opp-microvolt = <1100000>;
166+
clock-latency-ns = <40000>;
167+
};
168+
opp@1416000000 {
169+
opp-hz = /bits/ 64 <1296000000>;
170+
opp-microvolt = <1200000>;
171+
clock-latency-ns = <40000>;
172+
};
173+
opp@1512000000 {
174+
opp-hz = /bits/ 64 <1512000000>;
175+
opp-microvolt = <1300000>;
176+
clock-latency-ns = <40000>;
177+
};
178+
opp@1608000000 {
179+
opp-hz = /bits/ 64 <1608000000>;
180+
opp-microvolt = <1350000>;
181+
clock-latency-ns = <40000>;
132182
};
133183
};
134184

0 commit comments

Comments
 (0)