arm64: dts: exynos: Add cpu cache information to Exynos7
authorAlim Akhtar <alim.akhtar@samsung.com>
Tue, 22 Jun 2021 13:05:50 +0000 (18:35 +0530)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 15 Jul 2021 18:45:45 +0000 (20:45 +0200)
Add CPU caches information to its dt nodes so that the same is available
to userspace via sysfs.  This SoC has 48/32 KB I/D cache
for each cores and 2MB of L2 cache.

Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Link: https://lore.kernel.org/r/20210622130551.67446-1-alim.akhtar@samsung.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
arch/arm64/boot/dts/exynos/exynos7.dtsi

index 10244e5..8b06397 100644 (file)
                        compatible = "arm,cortex-a57";
                        reg = <0x0>;
                        enable-method = "psci";
+                       i-cache-size = <0xc000>;
+                       i-cache-line-size = <64>;
+                       i-cache-sets = <256>;
+                       d-cache-size = <0x8000>;
+                       d-cache-line-size = <64>;
+                       d-cache-sets = <256>;
+                       next-level-cache = <&atlas_l2>;
                };
 
                cpu_atlas1: cpu@1 {
                        compatible = "arm,cortex-a57";
                        reg = <0x1>;
                        enable-method = "psci";
+                       i-cache-size = <0xc000>;
+                       i-cache-line-size = <64>;
+                       i-cache-sets = <256>;
+                       d-cache-size = <0x8000>;
+                       d-cache-line-size = <64>;
+                       d-cache-sets = <256>;
+                       next-level-cache = <&atlas_l2>;
                };
 
                cpu_atlas2: cpu@2 {
                        compatible = "arm,cortex-a57";
                        reg = <0x2>;
                        enable-method = "psci";
+                       i-cache-size = <0xc000>;
+                       i-cache-line-size = <64>;
+                       i-cache-sets = <256>;
+                       d-cache-size = <0x8000>;
+                       d-cache-line-size = <64>;
+                       d-cache-sets = <256>;
+                       next-level-cache = <&atlas_l2>;
                };
 
                cpu_atlas3: cpu@3 {
                        compatible = "arm,cortex-a57";
                        reg = <0x3>;
                        enable-method = "psci";
+                       i-cache-size = <0xc000>;
+                       i-cache-line-size = <64>;
+                       i-cache-sets = <256>;
+                       d-cache-size = <0x8000>;
+                       d-cache-line-size = <64>;
+                       d-cache-sets = <256>;
+                       next-level-cache = <&atlas_l2>;
+               };
+
+               atlas_l2: l2-cache0 {
+                       compatible = "cache";
+                       cache-size = <0x200000>;
+                       cache-line-size = <64>;
+                       cache-sets = <2048>;
                };
        };