From d3a2cdd93064d86a8cbca16cd3cefda7258496f0 Mon Sep 17 00:00:00 2001 From: Melody Olvera Date: Thu, 5 May 2022 14:42:07 -0700 Subject: [PATCH] ARM: dts: msm: Add nodes for reboot reason driver for cinder Add nodes for reboot reason driver for cinder. Change-Id: I2fb339bdf3e1ee05d8a3764e5c163cbe578209b7 --- qcom/cinder-pmic-overlay.dtsi | 8 ++++++++ qcom/pm8150.dtsi | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/qcom/cinder-pmic-overlay.dtsi b/qcom/cinder-pmic-overlay.dtsi index 78850813..19d15c78 100644 --- a/qcom/cinder-pmic-overlay.dtsi +++ b/qcom/cinder-pmic-overlay.dtsi @@ -73,3 +73,11 @@ }; }; }; + +&soc { + reboot_reason { + compatible = "qcom,reboot-reason"; + nvmem-cells = <&restart_reason>; + nvmem-cell-names = "restart_reason"; + }; +}; diff --git a/qcom/pm8150.dtsi b/qcom/pm8150.dtsi index fdece653..2fecb032 100644 --- a/qcom/pm8150.dtsi +++ b/qcom/pm8150.dtsi @@ -84,6 +84,13 @@ pm8150_sdam_2: sdam@b100 { compatible = "qcom,spmi-sdam"; reg = <0xb100>; + #address-cells = <1>; + #size-cells = <1>; + + restart_reason: restart@48 { + reg = <0x48 0x1>; + bits = <1 7>; + }; }; pm8150_vadc: vadc@3100 {