Skip to content

Add Rockchip RK3399 USB3.0 Host support

Frank Wang linux-rockchip u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest15 of 16 patches 6 repliesIn review
  2. v513 of 16 patches 10 repliesSuperseded
  3. v413 of 16 patches 7 repliesSuperseded

15 of 16 patches are in this archive. The cover letter announces 16.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/16clk: rk3399: Set empty for TCPHY assigned-clocksdrivers/clk/rockchip/clk_rk3399.c+2 -00 replies
3/16clk: rk3399: Enable/Disable TCPHY clocksdrivers/clk/rockchip/clk_rk3399.c+24 -00 replies
4/16arm: mach-rockchip: bind sub-nodes for rk3399_sysconarch/arm/mach-rockchip/rk3399/syscon_rk3399.c+3 -02 replies
5/16phy: rockchip: Add Rockchip USB2PHY driverdrivers/Makefile drivers/phy/Kconfig drivers/phy/rockchip/Kconfig +2 more+334 -00 replies
6/16phy: rockchip: Add Rockchip USB TypeC PHY driverdrivers/phy/rockchip/Kconfig drivers/phy/rockchip/Makefile drivers/phy/rockchip/phy-rockchip-typec.c+804 -00 replies
7/16usb: dwc3: add dis_enblslpm_quirkdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h include/dwc3-uboot.h+9 -00 replies
8/16usb: dwc3: add dis_u2_freeclk_exists_quirkdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h include/dwc3-uboot.h+9 -00 replies
9/16usb: dwc3: Add disable u2mac linestate check quirkdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h include/dwc3-uboot.h+28 -00 replies
10/16usb: dwc3: Enable AutoRetry feature in the controllerdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h+12 -00 replies
11/16usb: dwc3: amend UTMI/UTMIW phy interface setupdrivers/usb/common/common.c drivers/usb/dwc3/core.c drivers/usb/dwc3/core.h +1 more+82 -310 replies
12/16usb: dwc3: add make compatible for rockchip platformdrivers/usb/dwc3/dwc3-generic.c+27 -61 reply
13/16driver: usb: drop legacy rockchip xhci driverdrivers/usb/host/Kconfig drivers/usb/host/Makefile drivers/usb/host/xhci-rockchip.c+0 -2061 reply
14/16ARM: dts: rk3399-evb: usb3.0 host supportarch/arm/dts/rk3399-evb-u-boot.dtsi+13 -00 replies
15/16configs: evb-rk3399: update support usb3.0 hostconfigs/evb-rk3399_defconfig+6 -00 replies
16/16roc-rk3399-pc: Enable USB3.0 Hostconfigs/roc-pc-mezzanine-rk3399_defconfig configs/roc-pc-rk3399_defconfig+11 -00 replies

Reviews trailers per patch

All 15 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKever YangJagan TekiMarcin Juszkiewicz
SeriesR-b T-b
2/16R-b
3/16R-b
4/16R-b R-b T-b
5/16R-b
6/16R-b
7/16R-b R-b T-b
8/16R-b R-b T-b
9/16R-b
10/16R-b
11/16R-b
12/16R-b
13/16R-b R-b
14/16R-b R-b
15/16R-b R-b
16/16R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 00/16] Add Rockchip RK3399 USB3.0 Host support

This series add quirks for DWC3 and add Rockchip RK3399 USB3.0 host support.

The function has been tested pass on rk3399-evb and roc-rk3399-pc board.

For V6 update:
- Use [PATCH v6 04/16] instead of [PATCH v5 05/16] to fix that the current Generic PHY subsystem is unable to find PHY if the PHY node is not part of the root structure.
- Add 'Reviewed-by' tag for all patches except [PATCH v6 04/16].

For V5 update:
- Fix dwc3-generic driver followed Marek's comments for [PATCH v4 12/16].
- Add 'Reviewed-by' and 'Tested-by' tag for [PATCH v4 07/16] and [PATCH v4 08/16].

For V4 update:
- Collect Jagan's all fixed patches [1].
- Amend specific u-boot changes from dts to dtsi for [PATCH v3 6/7].

For V3 update:
- Fix compile error for [PATCH v2 1/9].
- Use Jagan's Type-C driver instead of [PATCH v2 5/9].
- Cleanup dts changes for [PATCH v2 7/9].
- Cleanup config changes for [PATCH v2 8/9] and [PATCH v2 9/9].

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].

[1] https://patchwork.ozlabs.org/project/uboot/cover/20200506075025.1677-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org

BR,
Frank

Frank Wang (8):
arm: mach-rockchip: bind sub-nodes for rk3399_syscon
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
driver: usb: drop legacy rockchip xhci driver
ARM: dts: rk3399-evb: usb3.0 host support
configs: evb-rk3399: update support usb3.0 host

Jagan Teki (8):
clk: rk3399: Enable/Disable the USB2PHY clk
clk: rk3399: Set empty for TCPHY assigned-clocks
clk: rk3399: Enable/Disable TCPHY clocks
phy: rockchip: Add Rockchip USB2PHY driver
phy: rockchip: Add Rockchip USB TypeC PHY driver
usb: dwc3: Add disable u2mac linestate check quirk
usb: dwc3: Enable AutoRetry feature in the controller
roc-rk3399-pc: Enable USB3.0 Host

 arch/arm/dts/rk3399-evb-u-boot.dtsi           |  13 +
 arch/arm/mach-rockchip/rk3399/syscon_rk3399.c |   3 +
 configs/evb-rk3399_defconfig                  |   6 +
 configs/roc-pc-mezzanine-rk3399_defconfig     |   5 +
 configs/roc-pc-rk3399_defconfig               |   6 +
 drivers/Makefile                              |   1 +
 drivers/clk/rockchip/clk_rk3399.c             |  38 +
 drivers/phy/Kconfig                           |   1 +
 drivers/phy/rockchip/Kconfig                  |  21 +
 drivers/phy/rockchip/Makefile                 |   7 +
 drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 312 +++++++
 drivers/phy/rockchip/phy-rockchip-typec.c     | 796 ++++++++++++++++++
 drivers/usb/common/common.c                   |  25 +
 drivers/usb/dwc3/core.c                       | 106 ++-
 drivers/usb/dwc3/core.h                       |  19 +
 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                          |   3 +
 include/linux/usb/phy.h                       |  18 +
 21 files changed, 1376 insertions(+), 243 deletions(-)
 create mode 100644 drivers/phy/rockchip/Kconfig
 create mode 100644 drivers/phy/rockchip/Makefile
 create mode 100644 drivers/phy/rockchip/phy-rockchip-inno-usb2.c
 create mode 100644 drivers/phy/rockchip/phy-rockchip-typec.c
 delete mode 100644 drivers/usb/host/xhci-rockchip.c
Signature · 1 line
2.17.1