From 8342aed2ee201cc865c9a5b713b9dbbbdfb88660 Mon Sep 17 00:00:00 2001 From: Yan Wang Date: Wed, 1 Aug 2018 11:12:22 +0800 Subject: [PATCH] dts: txl: add cpu-idle-states nodes to str fun[1/1] PD#170812: gxbb_pm: get system suspend level fail, need to add cpu-idle-states nodes Change-Id: I38128bcc6ef84cb1af0dbba556e65d47928182a1 Signed-off-by: yuehu mi --- arch/arm64/boot/dts/amlogic/mesontxl.dtsi | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/mesontxl.dtsi b/arch/arm64/boot/dts/amlogic/mesontxl.dtsi index 8fa6bc2c4a62..e040bd6382b3 100644 --- a/arch/arm64/boot/dts/amlogic/mesontxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesontxl.dtsi @@ -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 { @@ -87,6 +90,31 @@ 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>; + }; + }; };