ARM64: dts: rk3399: support arm64 cpuidle-dt
authorxxx <xxx@rock-chips.com>
Mon, 25 Apr 2016 11:28:21 +0000 (19:28 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Tue, 26 Apr 2016 06:05:26 +0000 (14:05 +0800)
Change-Id: I5506a6647985f44de352f097cf809b31f1917e6a
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399.dtsi

index 77dd54ca3b03c8766c8827b384565998c08a8e50..83fbc863c42d46c77d752fab0d4c1d7ce49c6cdf 100644 (file)
                        enable-method = "psci";
                        #cooling-cells = <2>; /* min followed by max */
                        clocks = <&cru ARMCLKL>;
+                       cpu-idle-states = <&cpu_sleep>;
                        operating-points-v2 = <&cluster0_opp>;
                };
 
                        reg = <0x0 0x1>;
                        enable-method = "psci";
                        clocks = <&cru ARMCLKL>;
+                       cpu-idle-states = <&cpu_sleep>;
                        operating-points-v2 = <&cluster0_opp>;
                };
 
                        reg = <0x0 0x2>;
                        enable-method = "psci";
                        clocks = <&cru ARMCLKL>;
+                       cpu-idle-states = <&cpu_sleep>;
                        operating-points-v2 = <&cluster0_opp>;
                };
 
                        reg = <0x0 0x3>;
                        enable-method = "psci";
                        clocks = <&cru ARMCLKL>;
+                       cpu-idle-states = <&cpu_sleep>;
                        operating-points-v2 = <&cluster0_opp>;
                };
 
                        enable-method = "psci";
                        #cooling-cells = <2>; /* min followed by max */
                        clocks = <&cru ARMCLKB>;
+                       cpu-idle-states = <&cpu_sleep>;
                        operating-points-v2 = <&cluster1_opp>;
                };
 
                        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 {