Re: [PATCH v20 08/10] arm64: dts: qcom: lemans: Add psci reboot-modes

From: Konrad Dybcio

Date: Thu Mar 05 2026 - 06:34:19 EST


On 3/4/26 7:03 PM, Shivendra Pratap wrote:
> Add PSCI SYSTEM_RESET2 reboot-modes for lemans based boards, for use by
> the psci_reboot_mode driver.
>
> The following modes are defined:
> - bootloader: reboot into fastboot mode for fastboot flashing.
> - edl: reboot into emergency download mode for image loading via
> the Firehose protocol.
>
> Support for these modes is firmware dependent.

The previous patch only enabled it on a subset of kodiak boards,
the remaining ones do it globally, even though you claim it's fw
dependent.. this changed in in v17 apparently

My fear is that those may conflict with other methods providing
identical identification names, i.e.:

psci {
reboot-mode {
mode-bootloader = <0x80010001 0x2>;
mode-edl = <0x80000000 0x1>;
};
};

imem@f000 {
reboot-mode {
compatible = "syscon-reboot-mode";
offset = <0x65c>;

mode-normal = <0x77665501>;
mode-bootloader = <0x77665500>; // conflict
mode-recovery = <0x77665502>;
};
};

will the syscon write apply and the (unsupported) PSCI_RESET2 gracefully
fall through?

Konrad