From f1387aade59fd7aa9897eff8215ee3b3189fc37c Mon Sep 17 00:00:00 2001 From: David Collins Date: Tue, 12 Dec 2023 17:27:56 -0800 Subject: [PATCH] ARM: dts: qcom: add gh-watchdog dependency to pmic-pon-log device for Sun Add a dependency between the gh-watchdog and pmic-pon-log devices for Sun boards. This ensures that during system boot-up, the driver responsible for the gh-watchdog device initializes before the one responsible for the pmic-pon-log device. This behavior is critical to ensuring that a PMIC warm-reset correctly occurs in the situation that the qcom,pmic-fault-panic property is specified for the pmic-pon-log device and the previous system power-off was caused by a PMIC fault. Change-Id: I8c40b19ce150ca5bb3cb9514c7d293481a5009af Signed-off-by: David Collins --- qcom/sun-pmic-overlay.dtsi | 1 + qcom/sun.dtsi | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/qcom/sun-pmic-overlay.dtsi b/qcom/sun-pmic-overlay.dtsi index e27955b6..0220c646 100644 --- a/qcom/sun-pmic-overlay.dtsi +++ b/qcom/sun-pmic-overlay.dtsi @@ -98,6 +98,7 @@ compatible = "qcom,pmic-pon-log"; nvmem = <&pmk8550_sdam_5>, <&pmk8550_sdam_6>; nvmem-names = "pon_log0", "pon_log1"; + depends-on-supply = <&gh_watchdog>; }; regulator_ocp_notifier: regulator-ocp-notifier { diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 7e91f45b..f2d64864 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -296,6 +296,10 @@ }; soc: soc { }; + + hypervisor: hypervisor { + gh_watchdog: qcom,gh-watchdog { }; + }; }; &firmware {