mbox series

[v2,0/9] Add Rockchip RK3399 USB3.0 Host support

Message ID 20200430021620.25772-1-frank.wang@rock-chips.com
Headers show
Series Add Rockchip RK3399 USB3.0 Host support | expand

Message

Frank Wang April 30, 2020, 2:16 a.m. UTC
This series add quirks for DWC3 and add Rockchip RK3399 USB3.0 host
support.

For V2 update:
 - Amend type-c driver followed Jagan's comments for [PATCH 5/8].
 - Fix dts commit for [PATCH 7/8].
 - Split RK3399 default config for [PATCH 8/8].
 - Add 'Reviewed-by' tag for [PATCH 1/8], [PATCH 2/8] and [PATCH 3/8].

Frank Wang (9):
  usb: dwc3: add dis_enblslpm_quirk
  usb: dwc3: add dis_u2_freeclk_exists_quirk
  usb: dwc3: amend UTMI/UTMIW phy interface setup
  usb: dwc3: add make compatible for rockchip platform
  phy: rockchip: add a new driver for type-c phy
  driver: usb: drop legacy rockchip xhci driver
  ARM: dts: rk3399: amend dwc3 related nodes
  configs: evb-rk3399: slect type-c phy support
  configs: evb-rk3399: update support usb3.0 host

 arch/arm/dts/rk3399-evb.dts            |  16 +
 arch/arm/dts/rk3399.dtsi               |  54 ++-
 configs/evb-rk3399_defconfig           |   5 +
 drivers/phy/Kconfig                    |   7 +
 drivers/phy/Makefile                   |   1 +
 drivers/phy/phy-rockchip-typec.c       | 523 +++++++++++++++++++++++++
 drivers/usb/common/common.c            |  25 ++
 drivers/usb/dwc3/core.c                |  77 ++--
 drivers/usb/dwc3/core.h                |   8 +
 drivers/usb/dwc3/dwc3-generic.c        |  33 +-
 drivers/usb/host/Kconfig               |   9 -
 drivers/usb/host/Makefile              |   1 -
 drivers/usb/host/xhci-rockchip.c       | 196 ---------
 include/dwc3-uboot.h                   |   2 +
 include/linux/usb/phy.h                |  18 +
 include/linux/usb/rockchip_phy_typec.h |  52 +++
 16 files changed, 763 insertions(+), 264 deletions(-)
 create mode 100644 drivers/phy/phy-rockchip-typec.c
 delete mode 100644 drivers/usb/host/xhci-rockchip.c
 create mode 100644 include/linux/usb/rockchip_phy_typec.h

Comments

Jagan Teki May 1, 2020, 7:30 a.m. UTC | #1
On Thu, Apr 30, 2020 at 7:46 AM Frank Wang <frank.wang@rock-chips.com> wrote:
>
> This series add quirks for DWC3 and add Rockchip RK3399 USB3.0 host
> support.

Just had a quick test with associated config enabled, but usb3.0 seems
to be failing.

rock960 => usb start
starting USB...
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3c0000: USB EHCI 1.00
Bus dwc3@fe900000: usb maximum-speed not found
"Synchronous Abort" handler, esr 0x96000010
elr: 000000000022f7c8 lr : 0000000000242c74 (reloc)
elr: 000000007c55b7c8 lr : 000000007c56ec74
x0 : 000000007a53ced0 x1 : 0000000000000000
x2 : ffffffffffffff00 x3 : 000000000000e3d0
x4 : 0000000000000008 x5 : 00000000ff770000
x6 : 00000000ff770000 x7 : 0000000000000000
x8 : 000000007c5cc5f0 x9 : 0000000000000008
x10: 000000007a5117d0 x11: 0000000000006eac
x12: 000000007a510fcc x13: 0000000000006e40
x14: 0000000000000000 x15: 000000007a5117d0
x16: 0000000000001050 x17: 000000000000001c
x18: 000000007a523d90 x19: 000000007a53cec0
x20: 0000000000000002 x21: 0000000000000001
x22: 0000000000000000 x23: 0000000000000001
x24: 000000007a53cec0 x25: 0000000000000020
x26: 000000007a5253b0 x27: 000000007a53cc88
x28: 000000007a53cc80 x29: 000000007a5113c0

Code: a8c17bfd d65f03c0 b40000e0 f9400001 (f9400021)
Resetting CPU ...

Looks like PHY init from dwc3 seems to be failing to initialize typec
PHY device.

Jagan.