Skip to content

Add StarFive JHB100 soc UFS platform driver

Minda Chen linux-devicetree linux-scsi lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches4 repliesSuperseded

Changes in v4 from the cover letter

patch1: and operating-table-v2 to required attribue and add it to example dts
Add new patch2 to make PHY register DME attribute tables per-call to fix sashiko ai review bug.
new patch3 change commit message.
new patch4 fix sashiko ai review bug.
1. remove the main clock and make it enable in core clk function.
2. add phy_rst flag and phy reset assert while phy init failed.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4scsi: ufs: dt-bindings: starfive: Add UFS Host Controller for JHB100 SoCDocumentation/devicetree/bindings/ufs/starfive,jhb100-ufs.yaml MAINTAINERS+86 -00 replies
2/4scsi: ufs: amd-versal2: Make PHY register DME attribute tables per-calldrivers/ufs/host/ufs-amd-versal2.c+8 -160 replies
3/4scsi: ufs: dwc: Rename amd-versal2 read/write PHY API and move to dwc common filedrivers/ufs/host/ufs-amd-versal2.c drivers/ufs/host/ufshcd-dwc.c drivers/ufs/host/ufshcd-dwc.h+80 -600 replies
4/4scsi: ufs: starfive: Add UFS support for StarFive JHB100 SoCMAINTAINERS drivers/ufs/host/Kconfig drivers/ufs/host/Makefile +2 more+316 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchConor Dooley
1/4R-b
2/4
3/4
4/4

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

Read the v4 thread

Cover letter [PATCH v4 0/4] Add StarFive JHB100 soc UFS platform driver

JHB100 is a Starfive new RISC-V SoC for datacenter BMC (BaseBoard Managent Controller). Similar with Aspeed 27x0.

JHB100 contain 1 UFS 3.1 interface and using Synopsys designware UFS controller/unipro/M-PHY. The ufs-starfive.c contain JHB100 UFS platform driver, unipro driver and M-PHY driver.

The patch base on kernel v7.4-rc1

previous link:
v1:
https://patchwork.kernel.org/project/linux-scsi/cover/[email protected]/
v2: can't find. (send them 2026.05.09)
v3: https://patchwork.kernel.org/project/linux-scsi/cover/[email protected]/

changes:
v4:
patch1: and operating-table-v2 to required attribue and add it to example dts
Add new patch2 to make PHY register DME attribute tables per-call to fix sashiko ai review bug.
new patch3 change commit message.
new patch4 fix sashiko ai review bug.
1. remove the main clock and make it enable in core clk function.
2. add phy_rst flag and phy reset assert while phy init failed.

v3:
follow sashiko AI review comments to modify the patch
patch1: remove freq hz setting.
syscon change to phandle because this is no argument.
patch3: Call ufshcd_pltfrm_remove(pdev) and add exit function in module remove functions.
v2:
patch1 rename dts binding doc from starfive,ufs to starfive,jhb100-ufs

Minda Chen (4):
scsi: ufs: dt-bindings: starfive: Add UFS Host Controller for JHB100
SoC
scsi: ufs: amd-versal2: Make PHY register DME attribute tables
per-call
scsi: ufs: dwc: Rename amd-versal2 read/write PHY API and move to dwc
common file
scsi: ufs: starfive: Add UFS support for StarFive JHB100 SoC

 .../bindings/ufs/starfive,jhb100-ufs.yaml     |  81 +++++
 MAINTAINERS                                   |   6 +
 drivers/ufs/host/Kconfig                      |  13 +
 drivers/ufs/host/Makefile                     |   1 +
 drivers/ufs/host/ufs-amd-versal2.c            |  85 ++----
 drivers/ufs/host/ufs-starfive.c               | 283 ++++++++++++++++++
 drivers/ufs/host/ufshcd-dwc.c                 |  61 ++++
 drivers/ufs/host/ufshcd-dwc.h                 |  20 ++
 8 files changed, 482 insertions(+), 68 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/ufs/starfive,jhb100-ufs.yaml
 create mode 100644 drivers/ufs/host/ufs-starfive.c

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.17.1