[PATCH 00/10] Remove unnecessary USBx dr_mode configuration.

Julien Panis jpanis at baylibre.com
Thu Jul 6 18:07:22 CEST 2023


For all TI platforms handled in this series, USBx dr_mode
was configured as peripheral in '<board>-u-boot.dtsi'.
This series removes these fragments, since USBx dual-role
feature is already handled as peripheral only in
'dwc3_glue_bind_common()' function of 'dwc3-generic.c' driver:

static int dwc3_glue_bind_common(struct udevice *parent, ofnode node)
{
	[...]

	switch (dr_mode) {
	case USB_DR_MODE_PERIPHERAL:
	case USB_DR_MODE_OTG:

		debug("%s: dr_mode: OTG or Peripheral\n", __func__);
		driver = "dwc3-generic-peripheral";

		break;

	[...]
}

This follows a discussion about a similar topic for am3 boards:
https://lore.kernel.org/u-boot/20230621-fix_usb_ether_init-v4-0-5f4977bb7678@baylibre.com/

Signed-off-by: Julien Panis <jpanis at baylibre.com>
---
Julien Panis (10):
      arm: dts: dra7-evm-u-boot: Remove usb1 mode configuration
      arm: dts: dra71-evm-u-boot: Remove usb1 mode configuration
      arm: dts: dra72-evm-revc-u-boot: Remove usb1 mode configuration
      arm: dts: dra72-evm-u-boot: Remove usb1 mode configuration
      arm: dts: dra76-evm-u-boot: Remove usb1 mode configuration
      arm: dts: k3-am642-evm-u-boot: Remove usb0 mode configuration
      arm: dts: k3-am654-r5-base-board-u-boot: Remove usb mode configuration
      arm: dts: k3-j7200-common-proc-board-u-boot: Remove usb0 mode configuration
      arm: dts: k3-j721e-common-proc-board-u-boot: Remove usb0 mode configuration
      arm: dts: keystone-k2e-evm-u-boot: Remove usb1 mode configuration

 arch/arm/dts/dra7-evm-u-boot.dtsi                   | 1 -
 arch/arm/dts/dra71-evm-u-boot.dtsi                  | 1 -
 arch/arm/dts/dra72-evm-revc-u-boot.dtsi             | 1 -
 arch/arm/dts/dra72-evm-u-boot.dtsi                  | 1 -
 arch/arm/dts/dra76-evm-u-boot.dtsi                  | 1 -
 arch/arm/dts/k3-am642-evm-u-boot.dtsi               | 1 -
 arch/arm/dts/k3-am654-r5-base-board-u-boot.dtsi     | 5 -----
 arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 1 -
 arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi | 1 -
 arch/arm/dts/keystone-k2e-evm-u-boot.dtsi           | 1 -
 10 files changed, 14 deletions(-)
---
base-commit: 19b77d3d23966a0d6dbb3c86187765f11100fb6f
change-id: 20230706-handle-otg-as-periph-4546e874cd15

Best regards,
-- 
Julien Panis <jpanis at baylibre.com>



More information about the U-Boot mailing list