[PATCH v3 00/12] Remove unnecessary USBx dr_mode configuration.

Julien Panis jpanis at baylibre.com
Thu Jul 13 15:45:33 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, and modifies dwc3 and
cdns3 USB drivers so that they override 'otg' to 'peripheral'
mode.

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>
---
Changes in v3:
- Handle 'otg' mode as 'peripheral' in cdns3 usb driver, which is used
  by am64/j7200/j721e platforms.
- Link to v2: https://lore.kernel.org/r/20230706-handle-otg-as-periph-v2-0-e26c028a2b28@baylibre.com

Changes in v2:
- Handle 'unknown' mode as 'otg' in dwc3 usb driver.
- Link to v1: https://lore.kernel.org/r/20230706-handle-otg-as-periph-v1-0-bd85d15ffd50@baylibre.com

---
Julien Panis (12):
      usb: dwc3: Handle unknown mode as otg
      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: keystone-k2e-evm-u-boot: Remove usb1 mode configuration
      arm: dts: k3-am654-r5-base-board-u-boot: Remove usb mode configuration
      usb: cdns3: Handle otg mode as peripheral
      arm: dts: k3-am642-evm-u-boot: Remove usb0 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

 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 -
 drivers/usb/cdns3/core.c                            | 4 ++++
 drivers/usb/dwc3/dwc3-generic.c                     | 4 ++--
 12 files changed, 6 insertions(+), 16 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