From d58452d02aadf636bf7b36dcfc056673d7ca9e4b Mon Sep 17 00:00:00 2001 From: Tony Xie Date: Wed, 1 Mar 2023 16:26:00 +0800 Subject: [PATCH] arm64: dts: rockchip: rk3562: add cpuidle node Signed-off-by: Tony Xie Change-Id: I14886e67165d87e0871b243aa53aba52b4ce1c48 --- arch/arm64/boot/dts/rockchip/rk3562.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3562.dtsi b/arch/arm64/boot/dts/rockchip/rk3562.dtsi index 024b1dccb798..da97aeea1d03 100644 --- a/arch/arm64/boot/dts/rockchip/rk3562.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3562.dtsi @@ -193,6 +193,7 @@ reg = <0x0 0x0>; enable-method = "psci"; clocks = <&scmi_clk ARMCLK>; + cpu-idle-states = <&CPU_SLEEP>; operating-points-v2 = <&cpu0_opp_table>; #cooling-cells = <2>; dynamic-power-coefficient = <138>; @@ -203,6 +204,7 @@ reg = <0x0 0x1>; enable-method = "psci"; clocks = <&scmi_clk ARMCLK>; + cpu-idle-states = <&CPU_SLEEP>; operating-points-v2 = <&cpu0_opp_table>; #cooling-cells = <2>; dynamic-power-coefficient = <138>; @@ -213,6 +215,7 @@ reg = <0x0 0x2>; enable-method = "psci"; clocks = <&scmi_clk ARMCLK>; + cpu-idle-states = <&CPU_SLEEP>; operating-points-v2 = <&cpu0_opp_table>; #cooling-cells = <2>; dynamic-power-coefficient = <138>; @@ -223,10 +226,23 @@ reg = <0x0 0x3>; enable-method = "psci"; clocks = <&scmi_clk ARMCLK>; + cpu-idle-states = <&CPU_SLEEP>; operating-points-v2 = <&cpu0_opp_table>; #cooling-cells = <2>; dynamic-power-coefficient = <138>; }; + + idle-states { + entry-method = "psci"; + CPU_SLEEP: cpu-sleep { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x0010000>; + entry-latency-us = <120>; + exit-latency-us = <250>; + min-residency-us = <900>; + }; + }; }; cpu0_opp_table: cpu0-opp-table {