arm64: dts: rockchip: Add cpu-idle-states for RK356x
Subsystems (2)
PATCH 1/1 arm64: dts: rockchip: Add cpu-idle-states for RK356x
From: Chris Morgan <[email protected]>
Add cpu-idle-states for the rk356x-base to affect all rk3566 and rk3568 devices. With the fix implemented by upstream Arm Trusted Firmware [1] this now works on both mainline A-TF and the vendor provided binary A-TF.
Tests on my devices show this parameter provides idle power saving of around 5-10%.
[1] https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/55024
Signed-off-by Chris Morgan <[email protected]>
--- arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +16 -0
@@ -56,6 +56,7 @@ cpu0: cpu@0 { reg = <0x0 0x0>; clocks = <&scmi_clk SCMI_CLK_CPU>; #cooling-cells = <2>; + cpu-idle-states = <&CPU_SLEEP>; enable-method = "psci"; i-cache-size = <0x8000>; i-cache-line-size = <64>;
@@ -72,6 +73,7 @@ cpu1: cpu@100 { reg = <0x0 0x100>; clocks = <&scmi_clk SCMI_CLK_CPU>; #cooling-cells = <2>; + cpu-idle-states = <&CPU_SLEEP>; enable-method = "psci"; i-cache-size = <0x8000>; i-cache-line-size = <64>;
@@ -88,6 +90,7 @@ cpu2: cpu@200 { reg = <0x0 0x200>; clocks = <&scmi_clk SCMI_CLK_CPU>; #cooling-cells = <2>; + cpu-idle-states = <&CPU_SLEEP>; enable-method = "psci"; i-cache-size = <0x8000>; i-cache-line-size = <64>;
@@ -104,6 +107,7 @@ cpu3: cpu@300 { reg = <0x0 0x300>; clocks = <&scmi_clk SCMI_CLK_CPU>; #cooling-cells = <2>; + cpu-idle-states = <&CPU_SLEEP>; enable-method = "psci"; i-cache-size = <0x8000>; i-cache-line-size = <64>;
@@ -113,6 +117,18 @@ cpu3: cpu@300 { d-cache-sets = <128>; next-level-cache = <&l3_cache>; }; + + idle-states { + entry-method = "psci"; + CPU_SLEEP: cpu-sleep { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x0010000>; + entry-latency-us = <100>; + exit-latency-us = <120>; + local-timer-stop; + min-residency-us = <1000>; + }; + }; }; /*
Signature · 1 line
2.53.0