dts: axg: dtsi update for idle.
authorYan Wang <yan.wang@amlogic.com>
Wed, 28 Jun 2017 07:06:47 +0000 (15:06 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 28 Jun 2017 09:05:41 +0000 (02:05 -0700)
 PD#146619: AXG fail or hard lock up when idle enable.

Change-Id: I688e134f22a1fed67aae98a7a99242c54db5aab7
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
arch/arm64/boot/dts/amlogic/mesonaxg.dtsi

index 5a1cbf2..7548cae 100644 (file)
@@ -54,8 +54,7 @@
                        enable-method = "psci";
                        clocks = <&scpi_dvfs 0>;
                        clock-names = "cpu-cluster.0";
-                       //cpu-idle-states = <&SYSTEM_SLEEP_0>;
-                       /*cpu-idle-states = <&CPU_SLEEP_0 &SYSTEM_SLEEP_0>;*/
+                       cpu-idle-states = <&CPU_SLEEP_0>;
                };
 
                CPU1:cpu@1 {
@@ -65,8 +64,7 @@
                        enable-method = "psci";
                        clocks = <&scpi_dvfs 0>;
                        clock-names = "cpu-cluster.0";
-                       //cpu-idle-states = <&SYSTEM_SLEEP_0>;
-                       /*cpu-idle-states = <&CPU_SLEEP_0 &SYSTEM_SLEEP_0>;*/
+                       cpu-idle-states = <&CPU_SLEEP_0>;
                };
                CPU2:cpu@2 {
                        device_type = "cpu";
@@ -75,8 +73,7 @@
                        enable-method = "psci";
                        clocks = <&scpi_dvfs 0>;
                        clock-names = "cpu-cluster.0";
-                       //cpu-idle-states = <&SYSTEM_SLEEP_0>;
-                       /*cpu-idle-states = <&CPU_SLEEP_0 &SYSTEM_SLEEP_0>;*/
+                       cpu-idle-states = <&CPU_SLEEP_0>;
                };
 
                CPU3:cpu@3 {
                        enable-method = "psci";
                        clocks = <&scpi_dvfs 0>;
                        clock-names = "cpu-cluster.0";
-                       //cpu-idle-states = <&SYSTEM_SLEEP_0>;
-                       /*cpu-idle-states = <&CPU_SLEEP_0 &SYSTEM_SLEEP_0>;*/
+                       cpu-idle-states = <&CPU_SLEEP_0>;
+               };
+
+               idle-states {
+                       entry-method = "arm,psci-0.2";
+                       CPU_SLEEP_0: cpu-sleep-0 {
+                                       compatible = "arm,idle-state";
+                                       arm,psci-suspend-param = <0x0010000>;
+                                       local-timer-stop;
+                                       entry-latency-us = <5000>;
+                                       exit-latency-us = <5000>;
+                                       min-residency-us = <15000>;
+                       };
                };
-
        };
 
        timer {