dts: txl: add cpu-idle-states nodes to str fun[1/1]
authorYan Wang <yan.wang@amlogic.com>
Wed, 1 Aug 2018 03:12:22 +0000 (11:12 +0800)
committerYuehu Mi <yuehu.mi@amlogic.com>
Thu, 2 Aug 2018 09:44:00 +0000 (02:44 -0700)
PD#170812: gxbb_pm: get system suspend level fail,
need to add cpu-idle-states nodes

Change-Id: I38128bcc6ef84cb1af0dbba556e65d47928182a1
Signed-off-by: yuehu mi <yuehu.mi@amlogic.com>
arch/arm64/boot/dts/amlogic/mesontxl.dtsi

index 8fa6bc2c4a62db77f619d4afc12f9377d0a9fe14..e040bd6382b3ce2e72a786106ef4b24a1b52a7ff 100644 (file)
@@ -60,6 +60,7 @@
                        enable-method = "psci";
                        clocks = <&scpi_dvfs 0>;
                        clock-names = "cpu-cluster.0";
+                       cpu-idle-states = <&SYSTEM_SLEEP_0>;
                };
 
                CPU1:cpu@1 {
@@ -69,6 +70,7 @@
                        enable-method = "psci";
                        clocks = <&scpi_dvfs 0>;
                        clock-names = "cpu-cluster.0";
+                       cpu-idle-states = <&SYSTEM_SLEEP_0>;
                };
 
                CPU2:cpu@2 {
@@ -78,6 +80,7 @@
                        enable-method = "psci";
                        clocks = <&scpi_dvfs 0>;
                        clock-names = "cpu-cluster.0";
+                       cpu-idle-states = <&SYSTEM_SLEEP_0>;
                };
 
                CPU3:cpu@3 {
                        enable-method = "psci";
                        clocks = <&scpi_dvfs 0>;
                        clock-names = "cpu-cluster.0";
+                       cpu-idle-states = <&SYSTEM_SLEEP_0>;
+               };
+
+               idle-states {
+                       entry-method = "arm,psci";
+/*
+                       CPU_SLEEP_0: cpu-sleep-0 {
+                               compatible = "arm,idle-state";
+                               arm,psci-suspend-param = <0x0010000>;
+                               local-timer-stop;
+                               entry-latency-us = <3000>;
+                               exit-latency-us = <3000>;
+                               min-residency-us = <8000>;
+                       };
+*/
+
+                       SYSTEM_SLEEP_0: system-sleep-0 {
+                               compatible = "arm,idle-state";
+                               arm,psci-suspend-param = <0x0010000>;
+                               local-timer-stop;
+                               entry-latency-us = <0x3fffffff>;
+                               exit-latency-us = <0x40000000>;
+                               min-residency-us = <0xffffffff>;
+                       };
+
                };
        };