Skip to contentSkip to conversation

arm64: dts: qcom: hamoa: Add PSCI SYSTEM_RESET2 types

PATCH Superseded Xin Liu 2 participants 3 messages Feb 26 – Sep 1

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Xin Liu

author
#0 lore raw

PATCH v2 1/1 arm64: dts: qcom: hamoa: Add PSCI SYSTEM_RESET2 types

Add support for SYSTEM_RESET2 vendor-specific resets as reboot-modes in the psci node. Describe the resets: "bootloader" will cause device to reboot and stop in the bootloader's fastboot mode. "edl" will cause device to reboot into "emergency download mode", which permits loading images via the Firehose protocol.

---
Changes in v2:
- Fix mode-bootloader and mode-edl reset_type
- Link to v1 : https://lore.kernel.org/all/[email protected]/

 arch/arm64/boot/dts/qcom/hamoa.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/qcom/hamoa.dtsi +5 -0
index db65c392e618..a1bd8c3e4061 100644
@@ -450,6 +450,11 @@ system_pd: power-domain-system {
 			#power-domain-cells = <0>;
 			/* TODO: system-wide idle states */
 		};
+
+		reboot-mode {
+			mode-bootloader = <0x80010001 0x2>;
+			mode-edl = <0x80000000 0x1>;
+		};
 	};
 
 	reserved-memory {
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 7 lines · Xin Liu

Add support for SYSTEM_RESET2 vendor-specific resets as reboot-modes in the psci node. Describe the resets: "bootloader" will cause device to reboot and stop in the bootloader's fastboot mode. "edl" will cause device to reboot into "emergency download mode", which permits loading images via the Firehose protocol.

How did you test this? I tried to apply this, but I'm getting 52 counts of:

xyz.dtb: psci (arm,psci-1.0) 'reboot-mode' does not match any of the regexes: '^pinctrl-[0-9]+$', '^power-domain-'

Am I doing something wrong?

Regards,
Bjorn

Quoted 27 lines

---
Changes in v2:
- Fix mode-bootloader and mode-edl reset_type
- Link to v1 : https://lore.kernel.org/all/[email protected]/

 arch/arm64/boot/dts/qcom/hamoa.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/qcom/hamoa.dtsi +5 -0
index db65c392e618..a1bd8c3e4061 100644
@@ -450,6 +450,11 @@ system_pd: power-domain-system {
 			#power-domain-cells = <0>;
 			/* TODO: system-wide idle states */
 		};
+
+		reboot-mode {
+			mode-bootloader = <0x80010001 0x2>;
+			mode-edl = <0x80000000 0x1>;
+		};
 	};
 
 	reserved-memory {
Signature · 1 line
2.43.0
author
#2 lore raw
Quoted 11 lines · Bjorn Andersson
Quoted 7 lines · Xin Liu

Add support for SYSTEM_RESET2 vendor-specific resets as reboot-modes in the psci node. Describe the resets: "bootloader" will cause device to reboot and stop in the bootloader's fastboot mode. "edl" will cause device to reboot into "emergency download mode", which permits loading images via the Firehose protocol.

How did you test this? I tried to apply this, but I'm getting 52 counts of:

Quoted 6 lines

xyz.dtb: psci (arm,psci-1.0) 'reboot-mode' does not match any of the regexes: '^pinctrl-[0-9]+$', '^power-domain-'

Am I doing something wrong?

Regards,
Bjorn

Hi Bjorn,

Thanks for testing!

The warning is expected without the companion binding patch. This DTS change depends on:
change-id: 20250709-arm-psci-system_reset2-vendor-reboots-46c80044afcf from Shivendra Pratap's series, which adds reboot-mode as a valid
child node in Documentation/devicetree/bindings/arm/psci.yaml.

Without that patch applied, the schema enforces additionalProperties:
false with no reboot-mode pattern, causing the check failures you see.

Regards,
Xin

Quoted 27 lines
Quoted 27 lines

---
Changes in v2:
- Fix mode-bootloader and mode-edl reset_type
- Link to v1 : https://lore.kernel.org/all/[email protected]/

  arch/arm64/boot/dts/qcom/hamoa.dtsi | 5 +++++
  1 file changed, 5 insertions(+)
arch/arm64/boot/dts/qcom/hamoa.dtsi +5 -0
index db65c392e618..a1bd8c3e4061 100644
@@ -450,6 +450,11 @@ system_pd: power-domain-system {
  			#power-domain-cells = <0>;
  			/* TODO: system-wide idle states */
  		};
+
+		reboot-mode {
+			mode-bootloader = <0x80010001 0x2>;
+			mode-edl = <0x80000000 0x1>;
+		};
  	};
 
  	reserved-memory {
Signature · 1 line
2.43.0