From 0d9081da074a420e22efc39c334763b874e2dcd9 Mon Sep 17 00:00:00 2001 From: Shengfei Xu Date: Fri, 14 Mar 2025 12:07:56 +0800 Subject: [PATCH] arm64: dts: rockchip: rk35xx-eink: Add system shutdown/suspend requece Added power sequence control for shutdown, suspend and wakeup. These configurations are hardware-dependent, any modifications should be consulted with hardware engineers for recommendations. Change-Id: Id3f72f27e952b4cc2573a45f1a3363b6923daf87 Signed-off-by: Shengfei Xu --- arch/arm64/boot/dts/rockchip/rk3576-eink.dtsi | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3576-eink.dtsi b/arch/arm64/boot/dts/rockchip/rk3576-eink.dtsi index c615ded870f8..c8c75f842ae1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3576-eink.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3576-eink.dtsi @@ -78,6 +78,30 @@ shutdown_temperture_threshold = <160>; hotdie_temperture_threshold = <115>; + /* The entered value specifies the delay time (in milliseconds) + * that the PMIC waits after receiving the shutdown signal + * before executing the power-off action. + */ + shutdown-sequence = <2 2 2 0 2 0 2 1 1 2 + 2 2 2 2 2 + 1 0 0 0 0 2>; + + /* low power forced shutdown sequence */ + vb-shutdown-sequence = <2 2 2 0 2 0 2 0 0 2 + 2 2 2 2 2 + 0 0 0 0 0 2>; + /* DVS control: + * This configuration is tightly bound to the hardware + * and requires ATF (Arm Trusted Firmware) support + * 0: no effect + * 1: controlled by PWRCTRL1 + * 2: controlled by PWRCTRL2 + * 3: controlled by PWRCTRL3 + */ + dvs-suspend-control-by = <0 0 0 0 0 2 0 0 0 2 + 0 0 2 0 0 + 2 2 0 0 0 0>; + /* 0: restart PMU; * 1: reset all the power off reset registers, * forcing the state to switch to ACTIVE mode;