From a200dd88d878a74aaf036ebf22986293e7081e91 Mon Sep 17 00:00:00 2001 From: Tomasz Leman Date: Thu, 21 Mar 2024 18:06:49 +0100 Subject: [PATCH] dts: xtensa: intel_adsp: Set soft-off state as disabled Configure the 'soft-off' power state for manual selection only in the DTS for Intel ADSP ACE 1.5 MTPM and ACE 2.0 LNL platforms. Changes include: - Setting 'min-residency-us' to 0 to indicate that the 'soft-off' state is not intended for automatic selection by the power management policy. - Adding a 'status' property set to "disabled" to prevent the power management policy from using this state during its decision process. The 'soft-off' state remains available for manual selection by calling `pm_state_force`. This change ensures that the state can still be used when explicitly requested by the system or application, providing flexibility for power management operations. Signed-off-by: Tomasz Leman --- dts/xtensa/intel/intel_adsp_ace15_mtpm.dtsi | 3 ++- dts/xtensa/intel/intel_adsp_ace20_lnl.dtsi | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dts/xtensa/intel/intel_adsp_ace15_mtpm.dtsi b/dts/xtensa/intel/intel_adsp_ace15_mtpm.dtsi index 9c92387e36a..352e119b3aa 100644 --- a/dts/xtensa/intel/intel_adsp_ace15_mtpm.dtsi +++ b/dts/xtensa/intel/intel_adsp_ace15_mtpm.dtsi @@ -48,8 +48,9 @@ d3: off { compatible = "zephyr,power-state"; power-state-name = "soft-off"; - min-residency-us = <2147483647>; + min-residency-us = <0>; exit-latency-us = <0>; + status = "disabled"; }; }; }; diff --git a/dts/xtensa/intel/intel_adsp_ace20_lnl.dtsi b/dts/xtensa/intel/intel_adsp_ace20_lnl.dtsi index 91535c92dcd..d89dcb9c7f6 100644 --- a/dts/xtensa/intel/intel_adsp_ace20_lnl.dtsi +++ b/dts/xtensa/intel/intel_adsp_ace20_lnl.dtsi @@ -62,8 +62,9 @@ d3: off { compatible = "zephyr,power-state"; power-state-name = "soft-off"; - min-residency-us = <2147483647>; + min-residency-us = <0>; exit-latency-us = <0>; + status = "disabled"; }; }; };