From: xxx Date: Mon, 25 Apr 2016 11:28:21 +0000 (+0800) Subject: ARM64: dts: rk3399: support arm64 cpuidle-dt X-Git-Tag: firefly_0821_release~2722 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=64f456e3c7b8e07d32b99ee1d8bf105374b54f25;p=firefly-linux-kernel-4.4.55.git ARM64: dts: rk3399: support arm64 cpuidle-dt Change-Id: I5506a6647985f44de352f097cf809b31f1917e6a Signed-off-by: Tony Xie Signed-off-by: Jianqun Xu --- diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 77dd54ca3b03..83fbc863c42d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -113,6 +113,7 @@ enable-method = "psci"; #cooling-cells = <2>; /* min followed by max */ clocks = <&cru ARMCLKL>; + cpu-idle-states = <&cpu_sleep>; operating-points-v2 = <&cluster0_opp>; }; @@ -122,6 +123,7 @@ reg = <0x0 0x1>; enable-method = "psci"; clocks = <&cru ARMCLKL>; + cpu-idle-states = <&cpu_sleep>; operating-points-v2 = <&cluster0_opp>; }; @@ -131,6 +133,7 @@ reg = <0x0 0x2>; enable-method = "psci"; clocks = <&cru ARMCLKL>; + cpu-idle-states = <&cpu_sleep>; operating-points-v2 = <&cluster0_opp>; }; @@ -140,6 +143,7 @@ reg = <0x0 0x3>; enable-method = "psci"; clocks = <&cru ARMCLKL>; + cpu-idle-states = <&cpu_sleep>; operating-points-v2 = <&cluster0_opp>; }; @@ -150,6 +154,7 @@ enable-method = "psci"; #cooling-cells = <2>; /* min followed by max */ clocks = <&cru ARMCLKB>; + cpu-idle-states = <&cpu_sleep>; operating-points-v2 = <&cluster1_opp>; }; @@ -159,8 +164,21 @@ reg = <0x0 0x101>; enable-method = "psci"; clocks = <&cru ARMCLKB>; + cpu-idle-states = <&cpu_sleep>; operating-points-v2 = <&cluster1_opp>; }; + + idle-states { + entry-method = "psci"; + cpu_sleep: cpu-sleep-0 { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x0010000>; + entry-latency-us = <350>; + exit-latency-us = <600>; + min-residency-us = <1150>; + }; + }; }; cluster0_opp: opp_table0 {