Skip to content

Commit d4b95c4

Browse files
esmilConchuOD
authored andcommitted
riscv: dts: starfive: Add JH7100 cache controller
The StarFive JH7100 SoC also features the SiFive L2 cache controller, so add the device tree nodes for it. Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent ba00749 commit d4b95c4

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

arch/riscv/boot/dts/starfive/jh7100.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
i-tlb-sets = <1>;
3333
i-tlb-size = <32>;
3434
mmu-type = "riscv,sv39";
35+
next-level-cache = <&ccache>;
3536
riscv,isa = "rv64imafdc";
3637
riscv,isa-base = "rv64i";
3738
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
@@ -60,6 +61,7 @@
6061
i-tlb-sets = <1>;
6162
i-tlb-size = <32>;
6263
mmu-type = "riscv,sv39";
64+
next-level-cache = <&ccache>;
6365
riscv,isa = "rv64imafdc";
6466
riscv,isa-base = "rv64i";
6567
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
@@ -154,6 +156,17 @@
154156
<&cpu1_intc 3>, <&cpu1_intc 7>;
155157
};
156158

159+
ccache: cache-controller@2010000 {
160+
compatible = "starfive,jh7100-ccache", "sifive,ccache0", "cache";
161+
reg = <0x0 0x2010000 0x0 0x1000>;
162+
interrupts = <128>, <130>, <131>, <129>;
163+
cache-block-size = <64>;
164+
cache-level = <2>;
165+
cache-sets = <2048>;
166+
cache-size = <2097152>;
167+
cache-unified;
168+
};
169+
157170
plic: interrupt-controller@c000000 {
158171
compatible = "starfive,jh7100-plic", "sifive,plic-1.0.0";
159172
reg = <0x0 0xc000000 0x0 0x4000000>;

0 commit comments

Comments
 (0)