arm64: dts: imx8qxp: add cache info
authorPeng Fan <peng.fan@nxp.com>
Fri, 12 Nov 2021 06:26:04 +0000 (14:26 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 23 Nov 2021 09:26:09 +0000 (17:26 +0800)
i.MX8QXP A35 Cluster has 32KB Icache, 32KB Dcache and 512KB L2 Cache
 - Icache is 2-way set associative
 - Dcache is 4-way set associative
 - L2cache is 8-way set associative
 - Line size are 64bytes

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8qxp.dtsi

index 617618e..dbec7c1 100644 (file)
                        compatible = "arm,cortex-a35";
                        reg = <0x0 0x0>;
                        enable-method = "psci";
+                       i-cache-size = <0x8000>;
+                       i-cache-line-size = <64>;
+                       i-cache-sets = <256>;
+                       d-cache-size = <0x8000>;
+                       d-cache-line-size = <64>;
+                       d-cache-sets = <128>;
                        next-level-cache = <&A35_L2>;
                        clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>;
                        operating-points-v2 = <&a35_opp_table>;
                        compatible = "arm,cortex-a35";
                        reg = <0x0 0x1>;
                        enable-method = "psci";
+                       i-cache-size = <0x8000>;
+                       i-cache-line-size = <64>;
+                       i-cache-sets = <256>;
+                       d-cache-size = <0x8000>;
+                       d-cache-line-size = <64>;
+                       d-cache-sets = <128>;
                        next-level-cache = <&A35_L2>;
                        clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>;
                        operating-points-v2 = <&a35_opp_table>;
                        compatible = "arm,cortex-a35";
                        reg = <0x0 0x2>;
                        enable-method = "psci";
+                       i-cache-size = <0x8000>;
+                       i-cache-line-size = <64>;
+                       i-cache-sets = <256>;
+                       d-cache-size = <0x8000>;
+                       d-cache-line-size = <64>;
+                       d-cache-sets = <128>;
                        next-level-cache = <&A35_L2>;
                        clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>;
                        operating-points-v2 = <&a35_opp_table>;
                        compatible = "arm,cortex-a35";
                        reg = <0x0 0x3>;
                        enable-method = "psci";
+                       i-cache-size = <0x8000>;
+                       i-cache-line-size = <64>;
+                       i-cache-sets = <256>;
+                       d-cache-size = <0x8000>;
+                       d-cache-line-size = <64>;
+                       d-cache-sets = <128>;
                        next-level-cache = <&A35_L2>;
                        clocks = <&clk IMX_SC_R_A35 IMX_SC_PM_CLK_CPU>;
                        operating-points-v2 = <&a35_opp_table>;
 
                A35_L2: l2-cache0 {
                        compatible = "cache";
+                       cache-level = <2>;
+                       cache-size = <0x80000>;
+                       cache-line-size = <64>;
+                       cache-sets = <1024>;
                };
        };