Skip to contentSkip to conversation

arm: dts: talos-evk: Set USB controllers to peripheral mode

PATCH In review Balaji Selvanathan 2 participants 2 messages May 19 – Jun 9 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

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
new file mode 100644
index 00000000000..74c3d37e2d9
@@ -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]>
#1 lore raw

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_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.

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
---
 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
new file mode 100644
index 00000000000..74c3d37e2d9
@@ -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
// Casey (she/her)