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

Casey Connolly casey.connolly at linaro.org
Tue Jun 9 14:22:02 CEST 2026


Hi Balaji,

Sorry I didn't see this one, seems it wasn't sent to the qcom list.

On 19/05/2026 07:17, Balaji Selvanathan wrote:
> 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.

> 
> Signed-off-by: Balaji Selvanathan <balaji.selvanathan at oss.qualcomm.com>
> ---
>  arch/arm/dts/talos-evk-u-boot.dtsi | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/arch/arm/dts/talos-evk-u-boot.dtsi b/arch/arm/dts/talos-evk-u-boot.dtsi
> new file mode 100644
> index 00000000000..74c3d37e2d9
> --- /dev/null
> +++ b/arch/arm/dts/talos-evk-u-boot.dtsi
> @@ -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,

-- 
// Casey (she/her)



More information about the U-Boot mailing list