Skip to content

Allwinner H6 USB3 support

Andre Przywara u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 0 repliesSuperseded
  3. v16 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Fix xhci-pci.c compilation (RPi4 and other boards)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4phy: sun50i-usb3: Add a driver for the H6 USB3 PHYdrivers/phy/allwinner/Kconfig drivers/phy/allwinner/Makefile drivers/phy/allwinner/phy-sun50i-usb3.c+180 -00 replies
2/4usb: xhci-pci: Move reset logic out of XHCI coredrivers/usb/host/xhci-mem.c drivers/usb/host/xhci-pci.c drivers/usb/host/xhci.c +1 more+48 -430 replies
3/4usb: xhci-dwc3: Add support for clocks/resetsdrivers/usb/host/xhci-dwc3.c+56 -00 replies
4/4configs: Enable USB3 on Allwinner H6 boardsconfigs/orangepi_3_defconfig configs/pine_h64_defconfig+10 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchAndre PrzywaraBin Meng
1/4R-b
2/4R-b
3/4
4/4

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

Read the v3 thread

Cover letter [PATCH v3 0/4] Allwinner H6 USB3 support

This series adds PHY and XHCI driver support for the USB3 controller found in the Allwinner H6 SoC. It has been tested and working on both boards enabled in patch 4, although some users experience issues[1].

[1]: https://lists.denx.de/pipermail/u-boot/2021-February/440767.html

Changes from v2:
- Fix xhci-pci.c compilation (RPi4 and other boards)

Changes from v1:
- Dropped patches 1-2 (already in u-boot-sunxi/master) and rebased
- Added Andre's Reviewed-by on the PHY driver
- Fixed error handling in xhci_pci_probe

Samuel Holland (4):
phy: sun50i-usb3: Add a driver for the H6 USB3 PHY
usb: xhci-pci: Move reset logic out of XHCI core
usb: xhci-dwc3: Add support for clocks/resets
configs: Enable USB3 on Allwinner H6 boards

 configs/orangepi_3_defconfig            |   5 +
 configs/pine_h64_defconfig              |   5 +
 drivers/phy/allwinner/Kconfig           |   8 ++
 drivers/phy/allwinner/Makefile          |   1 +
 drivers/phy/allwinner/phy-sun50i-usb3.c | 171 ++++++++++++++++++++++++
 drivers/usb/host/xhci-dwc3.c            |  56 ++++++++
 drivers/usb/host/xhci-mem.c             |   2 -
 drivers/usb/host/xhci-pci.c             |  52 ++++++-
 drivers/usb/host/xhci.c                 |  35 -----
 include/usb/xhci.h                      |   2 -
 10 files changed, 294 insertions(+), 43 deletions(-)
 create mode 100644 drivers/phy/allwinner/phy-sun50i-usb3.c
Signature · 1 line
2.17.5