arm: dts: talos-evk: Set USB controllers to peripheral mode
PATCH 1/1 arm: dts: talos-evk: Set USB controllers to peripheral mode
Override USB dr_mode to "peripheral" for both usb_1 and usb_2 nodes to enable fastboot and USB download functionality in U-Boot. The upstream device tree configures these as "host" mode for Linux runtime, but U-Boot requires peripheral mode for flashing operations.
--- arch/arm/dts/talos-evk-u-boot.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/dts/talos-evk-u-boot.dtsi new file +12 -0
@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ + +&usb_1 { + dr_mode = "peripheral"; +}; + +&usb_2 { + dr_mode = "peripheral"; +};
---
base-commit: 38dbe637c9dfcadbd1bc201bfbb27f96b2ad525a
change-id: 20260519-talos_fastboot-d9fe9351692a
Best regards,
Signature · 1 line
Balaji Selvanathan <[email protected]>
Hi Balaji,
Sorry I didn't see this one, seems it wasn't sent to the qcom list.
Quoted 4 lines · Balaji Selvanathan
Override USB
dr_modeto "peripheral" for bothusb_1andusb_2nodes to enable fastboot and USB download functionality in U-Boot. The upstream device tree configures these as "host" mode for Linux runtime, but U-Boot requires peripheral mode for flashing operations.
There are cases where Linux might boot using U-Boots DTS, we don't really have a policy on stuff like this but I'd probably suggest using OTG here instead (and specifying the default role of host), that will allow fastboot and once Linux boots it should switch. Obviously you'd generally load another DTB for the OS but we shouldn't make that assumption to justify changing stuff like this for U-Boot.
Quoted 30 lines
Signed-off-by Balaji Selvanathan <[email protected]>--- arch/arm/dts/talos-evk-u-boot.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/dts/talos-evk-u-boot.dtsi new file +12
-1@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ + +&usb_1 { + dr_mode = "peripheral"; +}; + +&usb_2 { + dr_mode = "peripheral"; +}; ---base-commit:
38dbe637c9dfcadbd1bc201bfbb27f96b2ad525a
change-id: 20260519-talos_fastboot-d9fe9351692aBest regards,
Signature · 1 line
// Casey (she/her)