Skip to content

arm64: allwinner: a523: add USB3.0 support

iuncuim linux-arm-kernel linux-clk linux-devicetree linux-phy linux-sunxi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7clk: sunxi-ng: a523: add missing usb related clocksdrivers/clk/sunxi-ng/ccu-sun55i-a523.c drivers/clk/sunxi-ng/ccu-sun55i-a523.h include/dt-bindings/clock/sun55i-a523-ccu.h+37 -11 reply
2/7arm64: dts: allwinner: a523: add third usb2 phyarch/arm64/boot/dts/allwinner/sun55i-a523.dtsi+13 -82 replies
3/7phy: sun4i-usb: a523: add support for the USB2 PHYdrivers/phy/allwinner/phy-sun4i-usb.c+10 -01 reply
4/7phy: allwinner: a523: add USB3/PCIe PHY driverdrivers/phy/allwinner/Kconfig drivers/phy/allwinner/Makefile drivers/phy/allwinner/phy-sun55i-usb3-pcie.c+277 -03 replies
5/7arm64: dts: allwinner: a523: add USB3.0 phy nodearch/arm64/boot/dts/allwinner/sun55i-a523.dtsi+10 -03 replies
6/7arm64: dts: allwinner: a523: add DWC3 USB3.0 nodearch/arm64/boot/dts/allwinner/sun55i-a523.dtsi+21 -03 replies
7/7arm64: dts: allwinner: a523: activate USB3 for all boardsarch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts+24 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] arm64: allwinner: a523: add USB3.0 support

From: Mikhail Kalashnikov <[email protected]>

This series is a draft and does not include patches for dt-bindings. The first series is necessary for testing on other devices and initiating discussion.

This series of patches adds USB 3.0 functionality for the A523/A527/H728/T527 processor.Most of the code is derived from the BSP,
as the datasheet does not fully describe this feature.

I have verified functionality on two of my boards, walnutpi 2b (t527) and x96qproplus (h728). When testing usb3.0 on x96qproplus, I get reconnections of my nvme, it looks like the port does not provide enough
current to work. I have encountered similar complaints from users of the
device on Android. In the case of walnutpi, there is no such problem.

Based on 6.17-rc1

Mikhail Kalashnikov (7):
clk: sunxi-ng: a523: add missing usb related clocks
arm64: dts: allwinner: a523: add third usb2 phy
phy: sun4i-usb: a523: add support for the USB2 PHY
phy: allwinner: a523: add USB3/PCIe PHY driver
arm64: dts: allwinner: a523: add USB3.0 phy node
arm64: dts: allwinner: a523: add DWC3 USB3.0 node
arm64: dts: allwinner: a523: activate USB3 for all boards

 .../arm64/boot/dts/allwinner/sun55i-a523.dtsi |  52 +++-
 .../dts/allwinner/sun55i-a527-cubie-a5e.dts   |   8 +
 .../dts/allwinner/sun55i-h728-x96qpro+.dts    |   8 +
 .../dts/allwinner/sun55i-t527-avaota-a1.dts   |   8 +
 drivers/clk/sunxi-ng/ccu-sun55i-a523.c        |  32 +++
 drivers/clk/sunxi-ng/ccu-sun55i-a523.h        |   2 +-
 drivers/phy/allwinner/Kconfig                 |   9 +
 drivers/phy/allwinner/Makefile                |   1 +
 drivers/phy/allwinner/phy-sun4i-usb.c         |  10 +
 drivers/phy/allwinner/phy-sun55i-usb3-pcie.c  | 267 ++++++++++++++++++
 include/dt-bindings/clock/sun55i-a523-ccu.h   |   4 +
 11 files changed, 392 insertions(+), 9 deletions(-)
 create mode 100644 drivers/phy/allwinner/phy-sun55i-usb3-pcie.c
Signature · 1 line
2.50.1