Skip to content

Add Starfive JH7110 Cadence USB driver

Minda Chen u-boot 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest8 patches 2 repliesIn review
  2. v68 patches 7 repliesSuperseded
  3. v58 patches 5 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v49 patches11 repliesSuperseded
v38 patches10 repliesSuperseded
v2 posting 2/28 patches7 repliesSuperseded
v2 posting 1/20 of 7 patches4 repliesSuperseded
v17 patches13 repliesSuperseded

Changes in v7 from the cover letter

- Add reviewed tag and test tag.
- patch5 sort the head file.

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8usb: cdns3: Set USB PHY mode in cdns3_drd_update_mode()drivers/usb/cdns3/drd.c+14 -00 replies
2/8phy: starfive: Add Starfive JH7110 USB 2.0 PHY driverdrivers/phy/Kconfig drivers/phy/Makefile drivers/phy/starfive/Kconfig +3 more+193 -00 replies
3/8phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driverdrivers/phy/starfive/Kconfig drivers/phy/starfive/Makefile drivers/phy/starfive/phy-jh7110-pcie.c+247 -00 replies
4/8usb: cdns: starfive: Get dr mode from wrapper device dts nodedrivers/phy/starfive/phy-jh7110-pcie.c drivers/usb/cdns3/core.c+4 -10 replies
5/8usb: cdns: starfive: Add cdns USB driverdrivers/usb/cdns3/Kconfig drivers/usb/cdns3/Makefile drivers/usb/cdns3/cdns3-starfive.c+190 -00 replies
6/8spl: starfive: visionfive2: Disable USB overcurrent pin by default.arch/riscv/include/asm/arch-jh7110/gpio.h board/starfive/visionfive2/spl.c+8 -00 replies
7/8configs: starfive: Add visionfive2 cadence USB configurationconfigs/starfive_visionfive2_defconfig+10 -00 replies
8/8MAINTAINERS: Update Starfive visionfive2 maintain files.board/starfive/visionfive2/MAINTAINERS+2 -00 replies

Reviews trailers per patch

5 of 8 patches have a Reviewed-by or Acked-by.

PatchMarek VasutRoger QuadrosE Shattow
1/8R-b
2/8R-b T-b
3/8T-b
4/8R-b
5/8R-b T-b
6/8T-b
7/8T-b
8/8R-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 v7 thread

Cover letter [PATCH v7 0/8] Add Starfive JH7110 Cadence USB driver

Add Starfive JH7110 Cadence USB driver and related PHY driver. So the codes can be used in visionfive2 and star64 7110 board.

The driver is almost the same with kernel driver.

Test with Star64 JH7110 board USB 3.0 + USB 2.0 host. The code can work.

The Starfive JH7110 has enable CONFIG_OF_UPSTREAM. The dts is from kernel

- previous version
v1: https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/
v2: https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/
v3: https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/
v4: https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/
v5: https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/
v6: https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/

- patch description.

patch1: Add set phy mode function in cdns3 core driver
which is used by Starfive JH7110.
patch2-3: USB and PCIe 2.0 (usb 3.0) PHY drivier
patch4: Cadence USB wrapper driver.
patch5: Get the dr mode from wrapper device node.
patch6: Add JH7110 USB default overcurrent pin.
patch7: config update.
patch8: MAINTAINERS update

- change:
v7:
- Add reviewed tag and test tag.
- patch5 sort the head file.
v6:
- patch 5 format changed.
- split v5 patch4 to v6 patch 4 and patch 5
- delete v6 dts patch7 because the StarFive JH7110 CONFIG_OF_UPSTREAM is enbled.
v5:
- patch 2-4 format changed.
- For pareparing enable OF_UPSTREAM, patch4 get the dr mode from parent device dts node not the cdns core device dts.
- patch2 add a common usb syscon setting headfile.
- delete v4 patch8 and the star64 dts setting can be setting int star64 board dts configuration if the OF_UPSTREAM is enable.
v4:
- patch 2 Add usb split setting, default set USB 2.0 only.
- patch 5 move to spl stage.
- Add a new patch 8 for star64 board usb host, vbus pin setting and usb 3.0
v3:
- patch 1 Move the added code to cdns3_drd_update_mode().
- patch 1-4 correct the code format.(follow Rogers's comments.)
- patch 3 using regmap_field.

v2:
- patch 1 Move the added code to cdns3_core_init_role(). Must set PHY mode before calling cdns3 role start function.
- patch 1-4 correct the code format.(follow Marek's comments.)
- patch 2 Add set 125M clock in PHY init function.
- Add new patch5.

Minda Chen (8):
usb: cdns3: Set USB PHY mode in cdns3_drd_update_mode()
phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver
phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver
usb: cdns: starfive: Get dr mode from wrapper device dts node
usb: cdns: starfive: Add cdns USB driver
spl: starfive: visionfive2: Disable USB overcurrent pin by default.
configs: starfive: Add visionfive2 cadence USB configuration
MAINTAINERS: Update Starfive visionfive2 maintain files.

 arch/riscv/include/asm/arch-jh7110/gpio.h    |   5 +
 board/starfive/visionfive2/MAINTAINERS       |   2 +
 board/starfive/visionfive2/spl.c             |   3 +
 configs/starfive_visionfive2_defconfig       |  10 +
 drivers/phy/Kconfig                          |   1 +
 drivers/phy/Makefile                         |   1 +
 drivers/phy/starfive/Kconfig                 |  21 ++
 drivers/phy/starfive/Makefile                |   7 +
 drivers/phy/starfive/phy-jh7110-pcie.c       | 239 +++++++++++++++++++
 drivers/phy/starfive/phy-jh7110-usb-syscon.h |   9 +
 drivers/phy/starfive/phy-jh7110-usb2.c       | 162 +++++++++++++
 drivers/usb/cdns3/Kconfig                    |   7 +
 drivers/usb/cdns3/Makefile                   |   1 +
 drivers/usb/cdns3/cdns3-starfive.c           | 182 ++++++++++++++
 drivers/usb/cdns3/core.c                     |   3 +
 drivers/usb/cdns3/drd.c                      |  14 ++
 16 files changed, 667 insertions(+)
 create mode 100644 drivers/phy/starfive/Kconfig
 create mode 100644 drivers/phy/starfive/Makefile
 create mode 100644 drivers/phy/starfive/phy-jh7110-pcie.c
 create mode 100644 drivers/phy/starfive/phy-jh7110-usb-syscon.h
 create mode 100644 drivers/phy/starfive/phy-jh7110-usb2.c
 create mode 100644 drivers/usb/cdns3/cdns3-starfive.c

base-commit: 274dc5291cfbcb54cf54c337d2123adea075e299

Signature · 1 line
2.17.1