usb: dwc3: add Layerscape SoC support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 3 repliesIn review
- v18 patches 1 replySuperseded
Changes in v2 from the cover letter
- added test case for the new ofnode_for_each_compatible_node()
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | dm: core: add ofnode_for_each_compatible_node()include/ | +24 | 0 replies | |
| 2/9 | test: dm: add test for ofnode_for_each_compatible_node()test/ | +18 | 1 reply | |
| 3/9 | armv8: fsl-layerscape: rework the dwc3 snooping enable codearch/ | +13 | 0 replies | |
| 4/9 | usb: common: silence dubious errorsdrivers/ | +2 | 1 reply | |
| 5/9 | usb: dwc3: Add frame length adjustment quirkdrivers/ drivers/ | +32 | 0 replies | |
| 6/9 | usb: dwc3: Enable undefined length INCR burst typedrivers/ drivers/ | +85 | 0 replies | |
| 7/9 | usb: dwc3: add layerscape supportdrivers/ drivers/ drivers/ | +233 | 0 replies | |
| 8/9 | board: sl28: switch to dwc3 driverconfigs/ | +3 | 0 replies | |
| 9/9 | board: sl28: enable USB periheral support and gadgetsconfigs/ | +5 | 0 replies |
Reviews trailers per patch
3 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Simon Glass |
|---|---|
| 1/9 | R-b |
| 2/9 | R-b |
| 3/9 | |
| 4/9 | R-b |
| 5/9 | |
| 6/9 | |
| 7/9 | |
| 8/9 | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/9] usb: dwc3: add Layerscape SoC support
Primarily, this will add support for peripheral mode on Layerscape SoCs. For this to work, we have to backport two fixes from linux and fix the fixup code for the DWC3 controller (which enables snooping because the SoC has wrong startup defaults).
As a first user of the driver, enable it on the Kontron SL28 board, where both host and peripheral mode was tested.
OTG mode is not supported. For this to work, one would need to read the hardware status of the OTG pin in the bind() op. But it isn't allowed to access the hardware in the bind() op (if I understand Simon correctly).
changes since v1:
- added test case for the new ofnode_for_each_compatible_node()
Michael Walle (9):
dm: core: add ofnode_for_each_compatible_node()
test: dm: add test for ofnode_for_each_compatible_node()
armv8: fsl-layerscape: rework the dwc3 snooping enable code
usb: common: silence dubious errors
usb: dwc3: Add frame length adjustment quirk
usb: dwc3: Enable undefined length INCR burst type
usb: dwc3: add layerscape support
board: sl28: switch to dwc3 driver
board: sl28: enable USB periheral support and gadgets
arch/arm/cpu/armv8/fsl-layerscape/soc.c | 28 ++- configs/kontron_sl28_defconfig | 9 +- drivers/usb/common/common.c | 4 +- drivers/usb/dwc3/Kconfig | 10 ++ drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/core.c | 95 ++++++++++ drivers/usb/dwc3/core.h | 22 +++ drivers/usb/dwc3/dwc3-layerscape.c | 222 ++++++++++++++++++++++++ include/dm/ofnode.h | 24 +++ test/dm/ofnode.c | 18 ++ 10 files changed, 415 insertions(+), 18 deletions(-) create mode 100644 drivers/usb/dwc3/dwc3-layerscape.c
Signature · 1 line
2.30.2