[PATCH v2 4/4] arm64: dts: qcom: lemans: Add PSCRR NVMEM recorder node

From: Faruque Ansari

Date: Wed Aug 19 2026 - 13:28:04 EST


Add a one-byte NVMEM cell node in the SDAM to persist the power
state change reason across resets, and wire it to a pscrr-nvmem
recorder consumer node so the reason is recorded before
shutdown/reboot and read back on the next boot.

Signed-off-by: Faruque Ansari <faruque.ansari@xxxxxxxxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/lemans-pmics.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/lemans-pmics.dtsi b/arch/arm64/boot/dts/qcom/lemans-pmics.dtsi
index 500f715931aa..96db3f57969f 100644
--- a/arch/arm64/boot/dts/qcom/lemans-pmics.dtsi
+++ b/arch/arm64/boot/dts/qcom/lemans-pmics.dtsi
@@ -97,6 +97,12 @@ reboot-mode {
mode-recovery = <0x01>;
mode-bootloader = <0x02>;
};
+
+ reboot-reason {
+ compatible = "pscrr-nvmem";
+ nvmem-cells = <&reboot_reason_persist>;
+ nvmem-cell-names = "pscr";
+ };
};

&spmi_bus {
@@ -186,6 +192,16 @@ reboot_reason: reboot-reason@48 {
reg = <0x48 0x1>;
bits = <1 7>;
};
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ reboot_reason_persist: reboot-reason-persist@49 {
+ reg = <0x49 0x1>;
+ };
+ };
};
};


--
2.34.1