Add DFU and usb boot for TI am62x SK and beagleplay
Status from this message: I've merged Andrew's patch for allowing defconfigs to use fragments this
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest7 patches 37 repliesApplied
- v34 patches 7 repliesSuperseded
- v28 patches 15 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 8 patches | 10 replies | Superseded |
Changes in v4 from the cover letter
- Add config dependency on SYSCON
- Move defines and constants outside out of function scope
- Don't force usb0 into peripheral mode
- Move R5 dfu config to a config fragment rather then a full defconfig
- Don't enable XHCI for the R5 SPL, unneeded
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | usb: dwc3: Add dwc3 glue driver for am62drivers/ drivers/ drivers/ | +140 | 4 replies | |
| 2/7 | usb: dwc3: Switch to device mode on gadget startdrivers/ drivers/ drivers/ | +12 | 9 replies | |
| 3/7 | board: ti: am62x: am62x: include env for DFUboard/ | +1 | 2 replies | |
| 4/7 | arm: dts: k3-am625-sk: Enable usb port in u-bootarch/ | +8 | 3 replies | |
| 5/7 | configs: am62x_evm_*: Enable USB and DFU supportconfigs/ configs/ | +58 | 11 replies | |
| 6/7 | beagleplay: Add DFU supportarch/ board/ configs/ | +39 | 3 replies | |
| 7/7 | doc: board: Add document for DFU boot on am62x SoCsdoc/ doc/ | +49 | 4 replies |
Reviews trailers per patch
5 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Mattijs Korpershoek | Alexander Sverdlin |
|---|---|---|
| Series | T-b | |
| 1/7 | R-b R-b | T-b |
| 2/7 | R-b | T-b |
| 3/7 | R-b | R-b |
| 4/7 | R-b | |
| 5/7 | ||
| 6/7 | ||
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/7] Add DFU and usb boot for TI am62x SK and beagleplay
This series adds DFU support for TI AM62 SK board and new since this version also for beagleplay.
Since the last revision, apart from beagleplay support the main changes are:
* Documentation was added on how to use this functionality on both boards
* the R5 configuration is now done via a config fragment rather then a full configuraiton
* A new patch was added for dwc3 to work in device mode even if dr_mode is configured as otg. Avoiding the need for an explicit switch to periphal in the u-boot dts
I will also submit the dts changes to linux so that those can be dropped again in the near future (hopefully)
Changes in v4:
- Add config dependency on SYSCON
- Move defines and constants outside out of function scope
- Don't force usb0 into peripheral mode
- Move R5 dfu config to a config fragment rather then a full defconfig
- Don't enable XHCI for the R5 SPL, unneeded
Change in v3:
- Add dfu via environment rather then config headers
- Enable usb nodes in all boot phases
- Run savedefconfig to adjust to more recent u-boot
Changes in v2:
- Switch dwc3 glue to a seperate driver rather then in dwc-generic
- Minimize config changes to just DFU configuration
- Only enable usb port 0 DFU in SPL
- Create a seperate defconfig for R5
Sjoerd Simons (7):
usb: dwc3: Add dwc3 glue driver for am62
usb: dwc3: Switch to device mode on gadget start
board: ti: am62x: am62x: include env for DFU
arm: dts: k3-am625-sk: Enable usb port in u-boot
configs: am62x_evm_*: Enable USB and DFU support
beagleplay: Add DFU support
doc: board: Add document for DFU boot on am62x SoCs
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 8 ++ arch/arm/dts/k3-am625-sk-u-boot.dtsi | 8 ++ board/beagle/beagleplay/beagleplay.env | 1 + board/ti/am62x/am62x.env | 1 + configs/am62x_beagleplay_a53_defconfig | 30 +++++ configs/am62x_evm_a53_defconfig | 30 +++++ configs/am62x_r5_usbdfu.config | 28 +++++ doc/board/beagle/am62x_beagleplay.rst | 12 ++ doc/board/ti/am62x_sk.rst | 37 ++++++ drivers/usb/dwc3/Kconfig | 14 +++ drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/core.c | 10 +- drivers/usb/dwc3/core.h | 1 + drivers/usb/dwc3/dwc3-am62.c | 125 +++++++++++++++++++ drivers/usb/dwc3/gadget.c | 6 + 15 files changed, 307 insertions(+), 5 deletions(-) create mode 100644 configs/am62x_r5_usbdfu.config create mode 100644 drivers/usb/dwc3/dwc3-am62.c
Signature · 1 line
2.43.0