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

Jean-Jacques Hiblot jjhiblot at ti.com
Tue Dec 4 10:30:46 UTC 2018


This series applies on top of u-boot-usb/master.
It is available on github:
https://github.com/jjhiblot/u-boot/tree/dm_usb_am335x_am437x_v2_rebased
Travis report is available here:
https://travis-ci.org/jjhiblot/u-boot/builds

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 2 parts:
- 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)


Changes in v2:
- use CONFIG_IS_ENABLED(DM_USB_GADGET) instead of CONFIG_DM_USB_GADGET
- use CONFIG_SPL_DM_USB and CONFIG_SPL_DM_USB_GADGET
- don't fail to bind "ti-musb-wrapper" if it is not possible to bind
  either the host or the gadget driver.
- simplify #ifdef trickery thanks to the new SPL_DM_USB option

Jean-Jacques Hiblot (14):
  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
  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/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/ti/am43xx/board.c                  |  22 ++++
 common/Makefile                          |   3 +
 common/spl/spl_net.c                     |   4 +-
 configs/am335x_boneblack_vboot_defconfig |  10 ++
 configs/am43xx_evm_defconfig             |  19 ++++
 drivers/Makefile                         |   1 +
 drivers/phy/omap-usb2-phy.c              |  45 ++++++--
 drivers/usb/dwc3/dwc3-generic.c          |   1 +
 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/ti-musb.c           | 181 +++++++++++++++++++++++--------
 include/configs/am335x_evm.h             |   1 -
 21 files changed, 355 insertions(+), 77 deletions(-)
 create mode 100644 arch/arm/dts/am4372-u-boot.dtsi

-- 
2.7.4



More information about the U-Boot mailing list