Skip to content

Commit 314862e

Browse files
Mihai Sainclaudiubeznea
authored andcommitted
ARM: dts: microchip: sama7g5: Add cache configuration for cpu node
Describe the cache memories according with datasheet chapter 15.2: - L1 cache configuration with 32KB for both data and instruction cache. - L2 cache configuration with 256KB unified cache. Before this patch the kernel reported the warning: [ 0.171425] cacheinfo: Unable to detect cache hierarchy for CPU 0 Signed-off-by: Mihai Sain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent 4101c82 commit 314862e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arch/arm/boot/dts/microchip/sama7g5.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@
3838
clock-names = "cpu";
3939
operating-points-v2 = <&cpu_opp_table>;
4040
#cooling-cells = <2>; /* min followed by max */
41+
d-cache-size = <0x8000>; // L1, 32 KB
42+
i-cache-size = <0x8000>; // L1, 32 KB
43+
next-level-cache = <&L2>;
44+
45+
L2: l2-cache {
46+
compatible = "cache";
47+
cache-level = <2>;
48+
cache-size = <0x40000>; // L2, 256 KB
49+
cache-unified;
50+
};
4151
};
4252
};
4353

0 commit comments

Comments
 (0)