[PATCH 5/8] arm64: dts: qcom: add psci reboot-mode edl node for lemans/qcs6490-rb3gen2

Balaji Selvanathan via U-Boot <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <20260811-b4-reset-edl-rebootmode-v1-5-2e15adc156a3@oss.qualcomm.com>
Add a "reboot-mode" subnode under the psci node in the lemans-evk and
qcs6490-rb3gen2 U-Boot device tree overlays, declaring "mode-edl" so that
"reset -edl" enters Qualcomm EDL/download mode via a PSCI SYSTEM_RESET2
vendor reset. The magic value <0x80000000 0x00000001> is reset_type =
0x80000000 (vendor bit set) with a cookie of 1.

Signed-off-by: Balaji Selvanathan <[email protected]>
---
 arch/arm/dts/lemans-evk-u-boot.dtsi      | 7 +++++++
 arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/arch/arm/dts/lemans-evk-u-boot.dtsi b/arch/arm/dts/lemans-evk-u-boot.dtsi
index cdd3d32f61a..e6ff510caa1 100644
--- a/arch/arm/dts/lemans-evk-u-boot.dtsi
+++ b/arch/arm/dts/lemans-evk-u-boot.dtsi
@@ -17,3 +17,10 @@
 		      <0x0 0xd3500000 0x0 0x2cb00000>;
 	};
 };
+
+/* Enter Qualcomm EDL/download mode via "reset -edl". */
+&{/psci} {
+	reboot-mode {
+		mode-edl = <0x80000000 0x00000001>;
+	};
+};
diff --git a/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi b/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi
index c3ec4a317f7..e0e6d32c937 100644
--- a/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi
+++ b/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi
@@ -17,6 +17,13 @@
 	};
 };
 
+/* Enter Qualcomm EDL/download mode via "reset -edl". */
+&{/psci} {
+	reboot-mode {
+		mode-edl = <0x80000000 0x00000001>;
+	};
+};
+
 // RAM Entry 0 : Base 0x0080000000  Size 0x003A800000
 // RAM Entry 1 : Base 0x00C0000000  Size 0x0001800000
 // RAM Entry 2 : Base 0x00C3400000  Size 0x003CC00000

-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.