From: Huang, Tao Date: Tue, 11 Apr 2017 09:42:48 +0000 (+0800) Subject: arm64: dts: rockchip: add L2 cache node for rk3368 X-Git-Tag: firefly_0821_release~40 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=firefly-linux-kernel-4.4.55.git;a=commitdiff_plain;h=e84c207ab2ba43c5095e0c263f6844c8c4303815 arm64: dts: rockchip: add L2 cache node for rk3368 This patch adds the L2 cache topology on RK3368. RK3368 has two clusters, each cluster has its own L2 cache. Change-Id: Ibee5a39889d4924e439c9b0c249df052f63e9242 Signed-off-by: Huang, Tao --- diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi index 4d0da4e312de..57bd06f0c1f6 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi @@ -118,6 +118,7 @@ reg = <0x0 0x0>; enable-method = "psci"; clocks = <&cru ARMCLKL>; + next-level-cache = <&cluster0_l2>; operating-points-v2 = <&cluster0_opp>; sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>; #cooling-cells = <2>; /* min followed by max */ @@ -130,6 +131,7 @@ reg = <0x0 0x1>; enable-method = "psci"; clocks = <&cru ARMCLKL>; + next-level-cache = <&cluster0_l2>; operating-points-v2 = <&cluster0_opp>; sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>; }; @@ -140,6 +142,7 @@ reg = <0x0 0x2>; enable-method = "psci"; clocks = <&cru ARMCLKL>; + next-level-cache = <&cluster0_l2>; operating-points-v2 = <&cluster0_opp>; sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>; }; @@ -150,6 +153,7 @@ reg = <0x0 0x3>; enable-method = "psci"; clocks = <&cru ARMCLKL>; + next-level-cache = <&cluster0_l2>; operating-points-v2 = <&cluster0_opp>; sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>; }; @@ -160,6 +164,7 @@ reg = <0x0 0x100>; enable-method = "psci"; clocks = <&cru ARMCLKB>; + next-level-cache = <&cluster1_l2>; operating-points-v2 = <&cluster1_opp>; sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>; #cooling-cells = <2>; /* min followed by max */ @@ -172,6 +177,7 @@ reg = <0x0 0x101>; enable-method = "psci"; clocks = <&cru ARMCLKB>; + next-level-cache = <&cluster1_l2>; operating-points-v2 = <&cluster1_opp>; sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>; }; @@ -182,6 +188,7 @@ reg = <0x0 0x102>; enable-method = "psci"; clocks = <&cru ARMCLKB>; + next-level-cache = <&cluster1_l2>; operating-points-v2 = <&cluster1_opp>; sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>; }; @@ -192,9 +199,18 @@ reg = <0x0 0x103>; enable-method = "psci"; clocks = <&cru ARMCLKB>; + next-level-cache = <&cluster1_l2>; operating-points-v2 = <&cluster1_opp>; sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>; }; + + cluster0_l2: l2-cache0 { + compatible = "cache"; + }; + + cluster1_l2: l2-cache1 { + compatible = "cache"; + }; }; cluster0_opp: opp_table0 {