Skip to content

Commit e84c207

Browse files
committed
arm64: dts: rockchip: add L2 cache node for rk3368
This patch adds the L2 cache topology on RK3368. RK3368 has two clusters, each cluster has its own L2 cache. Change-Id: Ibee5a39889d4924e439c9b0c249df052f63e9242 Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
1 parent 7a970d7 commit e84c207

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3368.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
reg = <0x0 0x0>;
119119
enable-method = "psci";
120120
clocks = <&cru ARMCLKL>;
121+
next-level-cache = <&cluster0_l2>;
121122
operating-points-v2 = <&cluster0_opp>;
122123
sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>;
123124
#cooling-cells = <2>; /* min followed by max */
@@ -130,6 +131,7 @@
130131
reg = <0x0 0x1>;
131132
enable-method = "psci";
132133
clocks = <&cru ARMCLKL>;
134+
next-level-cache = <&cluster0_l2>;
133135
operating-points-v2 = <&cluster0_opp>;
134136
sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>;
135137
};
@@ -140,6 +142,7 @@
140142
reg = <0x0 0x2>;
141143
enable-method = "psci";
142144
clocks = <&cru ARMCLKL>;
145+
next-level-cache = <&cluster0_l2>;
143146
operating-points-v2 = <&cluster0_opp>;
144147
sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>;
145148
};
@@ -150,6 +153,7 @@
150153
reg = <0x0 0x3>;
151154
enable-method = "psci";
152155
clocks = <&cru ARMCLKL>;
156+
next-level-cache = <&cluster0_l2>;
153157
operating-points-v2 = <&cluster0_opp>;
154158
sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>;
155159
};
@@ -160,6 +164,7 @@
160164
reg = <0x0 0x100>;
161165
enable-method = "psci";
162166
clocks = <&cru ARMCLKB>;
167+
next-level-cache = <&cluster1_l2>;
163168
operating-points-v2 = <&cluster1_opp>;
164169
sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>;
165170
#cooling-cells = <2>; /* min followed by max */
@@ -172,6 +177,7 @@
172177
reg = <0x0 0x101>;
173178
enable-method = "psci";
174179
clocks = <&cru ARMCLKB>;
180+
next-level-cache = <&cluster1_l2>;
175181
operating-points-v2 = <&cluster1_opp>;
176182
sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>;
177183
};
@@ -182,6 +188,7 @@
182188
reg = <0x0 0x102>;
183189
enable-method = "psci";
184190
clocks = <&cru ARMCLKB>;
191+
next-level-cache = <&cluster1_l2>;
185192
operating-points-v2 = <&cluster1_opp>;
186193
sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>;
187194
};
@@ -192,9 +199,18 @@
192199
reg = <0x0 0x103>;
193200
enable-method = "psci";
194201
clocks = <&cru ARMCLKB>;
202+
next-level-cache = <&cluster1_l2>;
195203
operating-points-v2 = <&cluster1_opp>;
196204
sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>;
197205
};
206+
207+
cluster0_l2: l2-cache0 {
208+
compatible = "cache";
209+
};
210+
211+
cluster1_l2: l2-cache1 {
212+
compatible = "cache";
213+
};
198214
};
199215

200216
cluster0_opp: opp_table0 {

0 commit comments

Comments
 (0)