arm64: dts: uniphier: Add L2 cache node
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Tue, 13 Sep 2022 04:23:21 +0000 (13:23 +0900)
committerArnd Bergmann <arnd@arndb.de>
Wed, 28 Sep 2022 20:41:48 +0000 (22:41 +0200)
Add a L2 cache node referenced from CPU nodes as the missing cache hierarchy
information because the following warning was issued.

  cacheinfo: Unable to detect cache hierarchy for CPU 0
  Early cacheinfo failed, ret = -2

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/20220913042321.4817-11-hayashi.kunihiko@socionext.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi
arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi

index 525bff7..1c76b43 100644 (file)
@@ -36,6 +36,7 @@
                        reg = <0 0x000>;
                        clocks = <&sys_clk 33>;
                        enable-method = "psci";
+                       next-level-cache = <&l2>;
                        operating-points-v2 = <&cluster0_opp>;
                };
 
                        reg = <0 0x001>;
                        clocks = <&sys_clk 33>;
                        enable-method = "psci";
+                       next-level-cache = <&l2>;
                        operating-points-v2 = <&cluster0_opp>;
                };
+
+               l2: l2-cache {
+                       compatible = "cache";
+               };
        };
 
        cluster0_opp: opp-table {
index 938753d..9308458 100644 (file)
@@ -46,6 +46,7 @@
                        reg = <0 0x000>;
                        clocks = <&sys_clk 32>;
                        enable-method = "psci";
+                       next-level-cache = <&a72_l2>;
                        operating-points-v2 = <&cluster0_opp>;
                        #cooling-cells = <2>;
                };
@@ -56,6 +57,7 @@
                        reg = <0 0x001>;
                        clocks = <&sys_clk 32>;
                        enable-method = "psci";
+                       next-level-cache = <&a72_l2>;
                        operating-points-v2 = <&cluster0_opp>;
                        #cooling-cells = <2>;
                };
@@ -66,6 +68,7 @@
                        reg = <0 0x100>;
                        clocks = <&sys_clk 33>;
                        enable-method = "psci";
+                       next-level-cache = <&a53_l2>;
                        operating-points-v2 = <&cluster1_opp>;
                        #cooling-cells = <2>;
                };
                        reg = <0 0x101>;
                        clocks = <&sys_clk 33>;
                        enable-method = "psci";
+                       next-level-cache = <&a53_l2>;
                        operating-points-v2 = <&cluster1_opp>;
                        #cooling-cells = <2>;
                };
+
+               a72_l2: l2-cache0 {
+                       compatible = "cache";
+               };
+
+               a53_l2: l2-cache1 {
+                       compatible = "cache";
+               };
        };
 
        cluster0_opp: opp-table-0 {
index f106856..b0c2951 100644 (file)
@@ -43,6 +43,7 @@
                        reg = <0 0x000>;
                        clocks = <&sys_clk 33>;
                        enable-method = "psci";
+                       next-level-cache = <&l2>;
                        operating-points-v2 = <&cluster0_opp>;
                        #cooling-cells = <2>;
                };
@@ -53,6 +54,7 @@
                        reg = <0 0x001>;
                        clocks = <&sys_clk 33>;
                        enable-method = "psci";
+                       next-level-cache = <&l2>;
                        operating-points-v2 = <&cluster0_opp>;
                        #cooling-cells = <2>;
                };
@@ -63,6 +65,7 @@
                        reg = <0 0x002>;
                        clocks = <&sys_clk 33>;
                        enable-method = "psci";
+                       next-level-cache = <&l2>;
                        operating-points-v2 = <&cluster0_opp>;
                        #cooling-cells = <2>;
                };
                        reg = <0 0x003>;
                        clocks = <&sys_clk 33>;
                        enable-method = "psci";
+                       next-level-cache = <&l2>;
                        operating-points-v2 = <&cluster0_opp>;
                        #cooling-cells = <2>;
                };
+
+               l2: l2-cache {
+                       compatible = "cache";
+               };
        };
 
        cluster0_opp: opp-table {