diff mbox series

[3/3] ARM: dts: imx6: phyFLEX: disable da9063 watchdog during suspend

Message ID 20220422072713.3172345-3-primoz.fiser@norik.com
State New
Headers show
Series None | expand

Commit Message

Primoz Fiser April 22, 2022, 7:27 a.m. UTC
If DA9063 PMIC is left enabled during suspend, PMIC's watchdog needs to
be disabled before entering suspended state to allow board to sleep for
longer period than the watchdog timeout period. Otherwise board will be
reset by the watchdog. Thus disable watchdog on suspend and re-enable it
upon resume.

Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
---
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 1 +
 1 file changed, 1 insertion(+)

Comments

Guenter Roeck May 14, 2022, 1:57 p.m. UTC | #1
On Fri, Apr 22, 2022 at 09:27:13AM +0200, Primoz Fiser wrote:
> If DA9063 PMIC is left enabled during suspend, PMIC's watchdog needs to
> be disabled before entering suspended state to allow board to sleep for
> longer period than the watchdog timeout period. Otherwise board will be
> reset by the watchdog. Thus disable watchdog on suspend and re-enable it
> upon resume.
> 
> Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

> ---
>  arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi b/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
> index 1f2ba6f6254e..56b29c3294c6 100644
> --- a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
> @@ -212,6 +212,7 @@ da9063_rtc: rtc {
>  
>  		da9063_wdog: watchdog {
>  			compatible = "dlg,da9063-watchdog";
> +			dlg,use-sw-pm;
>  		};
>  
>  		onkey {
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi b/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
index 1f2ba6f6254e..56b29c3294c6 100644
--- a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi
@@ -212,6 +212,7 @@  da9063_rtc: rtc {
 
 		da9063_wdog: watchdog {
 			compatible = "dlg,da9063-watchdog";
+			dlg,use-sw-pm;
 		};
 
 		onkey {