Skip to content

Commit cfda861

Browse files
yashshah7paul-walmsley-sifive
authored andcommitted
riscv: dts: Add DT support for SiFive L2 cache controller
Add the L2 cache controller DT node in SiFive FU540 soc-specific DT file Signed-off-by: Yash Shah <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Signed-off-by: Paul Walmsley <[email protected]>
1 parent 0da310e commit cfda861

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

arch/riscv/boot/dts/sifive/fu540-c000.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
reg = <1>;
5555
riscv,isa = "rv64imafdc";
5656
tlb-split;
57+
next-level-cache = <&l2cache>;
5758
cpu1_intc: interrupt-controller {
5859
#interrupt-cells = <1>;
5960
compatible = "riscv,cpu-intc";
@@ -77,6 +78,7 @@
7778
reg = <2>;
7879
riscv,isa = "rv64imafdc";
7980
tlb-split;
81+
next-level-cache = <&l2cache>;
8082
cpu2_intc: interrupt-controller {
8183
#interrupt-cells = <1>;
8284
compatible = "riscv,cpu-intc";
@@ -100,6 +102,7 @@
100102
reg = <3>;
101103
riscv,isa = "rv64imafdc";
102104
tlb-split;
105+
next-level-cache = <&l2cache>;
103106
cpu3_intc: interrupt-controller {
104107
#interrupt-cells = <1>;
105108
compatible = "riscv,cpu-intc";
@@ -123,6 +126,7 @@
123126
reg = <4>;
124127
riscv,isa = "rv64imafdc";
125128
tlb-split;
129+
next-level-cache = <&l2cache>;
126130
cpu4_intc: interrupt-controller {
127131
#interrupt-cells = <1>;
128132
compatible = "riscv,cpu-intc";
@@ -253,6 +257,17 @@
253257
#pwm-cells = <3>;
254258
status = "disabled";
255259
};
260+
l2cache: cache-controller@2010000 {
261+
compatible = "sifive,fu540-c000-ccache", "cache";
262+
cache-block-size = <64>;
263+
cache-level = <2>;
264+
cache-sets = <1024>;
265+
cache-size = <2097152>;
266+
cache-unified;
267+
interrupt-parent = <&plic0>;
268+
interrupts = <1 2 3>;
269+
reg = <0x0 0x2010000 0x0 0x1000>;
270+
};
256271

257272
};
258273
};

0 commit comments

Comments
 (0)