[U-Boot] [PATCH v1 00/16] Add support for DM_USB and DM_USB_DEV to TI's am335x and am43xx_evm platforms

Jean-Jacques Hiblot jjhiblot at ti.com
Wed Nov 21 10:51:02 UTC 2018


This series applies on top of the series "Add support for DM_USB and
DM_USB_DEV to TI's K2G platforms" and "Add support for DM_USB and
DM_USB_DEV for TI's DRA7 EVMs and AM57 EVMs platforms."

The am433x platforms can use the generic DWC3 driver instead of relying on
the dwc3-xhci driver.
The am335x platforms use the musb controller. With a bit of work it can be
made to support DM as well. This series only enables DM_USB and DM_USB_GADGET
on am335x_boneblack_vboot. The changes for the other am335x based platforms
will come in a subsequent series that reworks the configs of several TI
boards.

This is part of a work to move all TI's platforms to support DM_USB and
DM_USB_DEV.
As a side effect it makes it easy to support the full USB RDNIS bootflow
(bootrom loads SPL over RNDIS, SPL loads u-boot over RNDIS, u-boot loads
the images over RNDIS)

This series is made of 3 parts:
- some generic changes: rename DM_USB_DEV in DM_USB_GADGET and create
UCLASS_USB_GADGET for the USB peripheral drivers.
- am437x support for DM_USB and DM_USB_GADGET
- am335x support for DM_USB and DM_USB_GADGET


Tested on:
- am4372 evm
- beaglebone black
- am335x evm (to verify that it doesn't break anything)



Jean-Jacques Hiblot (16):
  usb: rename CONFIG_DM_USB_DEV as CONFIG_DM_USB_GADGET
  dm: usb: create a new UCLASS ID for USB gadget devices
  spl: drivers: Link usb common library to SPL if USB gadget is enabled
  spl: net: dm: usb: bind the gadget before attempting to load the image
  phy: omap_usb2: Add support for am437x
  dwc3-generic: Add support for the am437x
  board: ti: am43xx: turn on USB clocks
  dts: Add a u-boot specific dtsi file for the am4372
  dts: am4372: Enable USB1 in SPL
  configs: am43xx_evm: Enable DM_USB and DM_USB_GADGET
  configs: am43xx: Enable RNDIS support in SPL
  usb: musb-new: Allow the diver not to use the set_phy_power() callback
  usb: musb-new: Add support for DM_USB_GADGET
  arm: am33xx: Register USB controllers if DM_USB is used but not
    OF_CONTROL
  configs: am335x_evm: Do not disable DM_USB in SPL
  configs: am335x_boneblack_vboot: enable DM_USB and RNDIS boot in SPl

 arch/arm/Kconfig                         |   4 +-
 arch/arm/dts/am4372-generic-u-boot.dtsi  |   2 +
 arch/arm/dts/am4372-u-boot.dtsi          |  40 +++++++
 arch/arm/dts/am437x-gp-evm-u-boot.dtsi   |   2 +
 arch/arm/dts/am437x-idk-evm-u-boot.dtsi  |   2 +
 arch/arm/dts/am437x-sk-evm-u-boot.dtsi   |   2 +
 arch/arm/include/asm/omap_musb.h         |   8 ++
 arch/arm/mach-omap2/am33xx/board.c       |  58 ++++++++--
 board/sunxi/board.c                      |   2 +-
 board/ti/am43xx/board.c                  |  22 ++++
 common/Makefile                          |   3 +
 common/spl/spl_net.c                     |   4 +-
 configs/am335x_boneblack_vboot_defconfig |   8 ++
 configs/am43xx_evm_defconfig             |  17 +++
 configs/am57xx_evm_defconfig             |   2 +-
 configs/am57xx_hs_evm_defconfig          |   2 +-
 configs/dra7xx_evm_defconfig             |   2 +-
 configs/dra7xx_hs_evm_defconfig          |   2 +-
 configs/k2g_evm_defconfig                |   2 +-
 configs/k2g_hs_evm_defconfig             |   2 +-
 drivers/Makefile                         |   1 +
 drivers/phy/omap-usb2-phy.c              |  45 ++++++--
 drivers/usb/Kconfig                      |   2 +-
 drivers/usb/dwc3/core.c                  |   2 +-
 drivers/usb/dwc3/dwc3-generic.c          |   7 +-
 drivers/usb/gadget/ether.c               |   2 +-
 drivers/usb/gadget/udc/Makefile          |   4 +
 drivers/usb/gadget/udc/udc-core.c        |  41 -------
 drivers/usb/musb-new/am35x.c             |   8 +-
 drivers/usb/musb-new/musb_dsps.c         |   8 +-
 drivers/usb/musb-new/musb_gadget.c       |  11 ++
 drivers/usb/musb-new/musb_uboot.c        |   4 +-
 drivers/usb/musb-new/omap2430.c          |   2 +-
 drivers/usb/musb-new/sunxi.c             |   2 +-
 drivers/usb/musb-new/ti-musb.c           | 179 +++++++++++++++++++++++--------
 include/configs/am335x_evm.h             |   1 -
 include/dm/uclass-id.h                   |   1 +
 include/linux/usb/gadget.h               |   2 +-
 38 files changed, 375 insertions(+), 133 deletions(-)
 create mode 100644 arch/arm/dts/am4372-u-boot.dtsi

-- 
2.7.4



More information about the U-Boot mailing list