Skip to content

driver model bring-up of dwc3 usb peripheral

Vignesh R u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 0 repliesNew
  2. v111 patches 0 repliesSuperseded

Change log from the cover letter

* Reorder patches adding dwc3 driver model patches
* Split patch 8 into 3 patches.
* rebase to latest master and pick up Reviewed-bys

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13drivers: usb: dwc3: remove devm_zalloc from linux_compactdrivers/usb/dwc3/core.c drivers/usb/dwc3/dwc3-omap.c drivers/usb/dwc3/linux-compat.h +1 more+8 -81 reply
1/13drivers: usb: dwc3: remove devm_zalloc from linux_compact+0 -01 reply
2/13drivers: usb: dwc3-omap: move usb_gadget_handle_interrupts from board files to driversboard/ti/am43xx/board.c board/ti/am57xx/board.c board/ti/dra7xx/evm.c +2 more+12 -440 replies
3/13am437x: board: do not register usb devices when CONFIG_DM_USB is definedboard/ti/am43xx/board.c configs/am43xx_evm_usbhost_boot_defconfig+3 -80 replies
4/13omap5/am57xx/dra7xx: board: do not register usb devices when CONFIG_DM_USB is definedboard/ti/am57xx/board.c board/ti/dra7xx/evm.c board/ti/omap5_uevm/evm.c+3 -30 replies
5/13drivers: usb: common: add support to get maximum speed from dtdrivers/usb/common/common.c include/linux/usb/otg.h scripts/Makefile.spl+39 -01 reply
5/13drivers: usb: common: add support to get maximum speed from dt+0 -01 reply
6/13drivers: usb: dwc3: add ti dwc3 peripheral driver with driver model supportdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h drivers/usb/dwc3/dwc3-omap.c+230 -01 reply
6/13drivers: usb: dwc3: add ti dwc3 peripheral driver with driver model support+0 -01 reply
6/13drivers: usb: dwc3: add ti dwc3 peripheral driver with driver model support+0 -02 replies
6/13drivers: usb: dwc3: add ti dwc3 peripheral driver with driver model support+0 -01 reply
6/13drivers: usb: dwc3: add ti dwc3 peripheral driver with driver model support+0 -01 reply
6/13drivers: usb: dwc3: add ti dwc3 peripheral driver with driver model support+0 -01 reply
6/13drivers: usb: dwc3: add ti dwc3 peripheral driver with driver model support+0 -00 replies
7/13drivers: usb: dwc3: add ti dwc3 misc driver for wrapperdrivers/usb/dwc3/dwc3-omap.c drivers/usb/dwc3/gadget.c+50 -11 reply
7/13drivers: usb: dwc3: add ti dwc3 misc driver for wrapper+0 -00 replies
8/13usb: gadget: ether: Provide a way to read MAC addressdrivers/usb/gadget/ether.c+6 -01 reply
8/13usb: gadget: ether: Provide a way to read MAC address+0 -01 reply
8/13usb: gadget: ether: Provide a way to read MAC address+0 -02 replies
9/13usb: gadget: ether: Populate DM_FLAG_PRE_RELOC flagdrivers/usb/gadget/ether.c+1 -11 reply
10/13usb: gadget: add DWC3 USB gadget supportdrivers/usb/gadget/gadget_chips.h+2 -01 reply
11/13am43xx: Add USB device boot supportarch/arm/mach-omap2/boot-common.c board/ti/am43xx/board.c+22 -11 reply
12/13configs: am43xx: Enable configs to support USB device bootconfigs/am43xx_evm_defconfig include/configs/am43xx_evm.h+20 -201 reply
13/13ARM: am437x-gp-evm-u-boot.dtsi: Enable nodes for USB device bootarch/arm/dts/am437x-gp-evm-u-boot.dtsi+20 -01 reply
13/13ARM: am437x-gp-evm-u-boot.dtsi: Enable nodes for USB device boot+0 -00 replies

Reviews trailers per patch

11 of 25 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/13R-b
1/13R-b
2/13R-b
3/13R-b
4/13R-b
5/13R-b
5/13R-b
6/13
6/13
6/13
6/13
6/13
6/13
6/13
7/13
7/13
8/13
8/13
8/13
9/13R-b
10/13R-b
11/13R-b
12/13R-b
13/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 00/13] driver model bring-up of dwc3 usb peripheral

This patch series enables ti dwc3 usb peripherial driver to adopt driver model and DT. And also adds support for to USB device boot using RNDIS for AM437x.

Tested on AM437x GP EVM in USB RNDIS boot mode. ROM downloads SPL, SPL loads U-Boot via usb ether and then U-Boot loads kernel image using the same interface.

Based on previous work submitted by Mugunthan here:
https://lists.denx.de/pipermail/u-boot/2016-March/250115.html

Change log:
* Reorder patches adding dwc3 driver model patches
* Split patch 8 into 3 patches.
* rebase to latest master and pick up Reviewed-bys

Mugunthan V N (7):
drivers: usb: dwc3: remove devm_zalloc from linux_compact
drivers: usb: dwc3-omap: move usb_gadget_handle_interrupts from board
files to drivers
am437x: board: do not register usb devices when CONFIG_DM_USB is
defined
omap5/am57xx/dra7xx: board: do not register usb devices when
CONFIG_DM_USB is defined
drivers: usb: common: add support to get maximum speed from dt
drivers: usb: dwc3: add ti dwc3 peripheral driver with driver model
support
drivers: usb: dwc3: add ti dwc3 misc driver for wrapper

Vignesh R (6):
usb: gadget: ether: Provide a way to read MAC address
usb: gadget: ether: Populate DM_FLAG_PRE_RELOC flag
usb: gadget: add DWC3 USB gadget support
am43xx: Add USB device boot support
configs: am43xx: Enable configs to support USB device boot
ARM: am437x-gp-evm-u-boot.dtsi: Enable nodes for USB device boot

 arch/arm/dts/am437x-gp-evm-u-boot.dtsi    |  20 +++
 arch/arm/mach-omap2/boot-common.c         |   3 +-
 board/ti/am43xx/board.c                   |  41 +++---
 board/ti/am57xx/board.c                   |  13 +-
 board/ti/dra7xx/evm.c                     |  13 +-
 board/ti/omap5_uevm/evm.c                 |  13 +-
 configs/am43xx_evm_defconfig              |  13 +-
 configs/am43xx_evm_usbhost_boot_defconfig |   1 +
 drivers/usb/common/common.c               |  29 ++++
 drivers/usb/dwc3/core.c                   |  64 ++++++++-
 drivers/usb/dwc3/core.h                   |   6 +
 drivers/usb/dwc3/dwc3-omap.c              | 231 +++++++++++++++++++++++++++++-
 drivers/usb/dwc3/gadget.c                 |   2 +-
 drivers/usb/dwc3/linux-compat.h           |   5 -
 drivers/usb/dwc3/ti_usb_phy.c             |   1 +
 drivers/usb/gadget/ether.c                |   8 +-
 drivers/usb/gadget/gadget_chips.h         |   2 +
 include/configs/am43xx_evm.h              |  27 ++--
 include/linux/usb/otg.h                   |   9 ++
 scripts/Makefile.spl                      |   1 +
 20 files changed, 416 insertions(+), 86 deletions(-)
Signature · 1 line
2.13.0