Skip to content

Introduce SpacemiT K1 PCIe phy support

Alex Elder linux-devicetree linux-phy linux-riscv lkml spacemit 7 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest5 patches 6 repliesApplied
  2. v67 patches 10 repliesApplied
  3. v57 patches 4 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v47 patches6 repliesSuperseded
v37 patches1 replySuperseded
v27 patches32 repliesSuperseded
v16 patches24 repliesSuperseded

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/5dt-bindings: phy: spacemit: Add SpacemiT PCIe/combo PHYDocumentation/devicetree/bindings/phy/spacemit,k1-combo-phy.yaml+114 -00 replies
2/5dt-bindings: phy: spacemit: Introduce PCIe PHYDocumentation/devicetree/bindings/phy/spacemit,k1-pcie-phy.yaml+71 -00 replies
3/5phy: spacemit: Introduce PCIe/combo PHYdrivers/phy/Kconfig drivers/phy/Makefile drivers/phy/phy-spacemit-k1-pcie.c+682 -00 replies
4/5riscv: dts: spacemit: Add a PCIe regulatorarch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts+8 -01 reply
5/5riscv: dts: spacemit: PCIe and PHY-related updatesarch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi arch/riscv/boot/dts/spacemit/k1.dtsi+245 -01 reply

Reviews trailers per patch

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

PatchRob Herring (Arm)Junzhong PanYixun Lan
SeriesT-b
1/5R-b
2/5R-b
3/5T-b
4/5R-b
5/5R-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/5] Introduce SpacemiT K1 PCIe phy support

This series introduces a PHY driver to support PCIe on the SpacemiT K1 SoC. The PCIe controller implementation is derived from a Synopsys DesignWare PCIe IP. The PHY driver supports one combination PCIe/USB PHY as well as two PCIe-only PHYs. The combo PHY port uses one PCIe lane, and the other two ports each have two lanes. All PCIe ports operate at 5 GT/second.

The PCIe PHYs must be configured using a value that can only be determined using the combo PHY, operating in PCIe mode. To allow that PHY to be used for USB, the needed calibration step is performed by the PHY driver automatically at probe time. Once this step is done, the PHY can be used for either PCIe or USB.

The PCIe controller driver that was included in earlier versions of this series has already been accepted upstream:
a812b09a6b599 ("dt-bindings: pci: spacemit: Introduce PCIe host
controller")
ff64e078e45fa ("PCI: spacemit: Add SpacemiT PCIe host driver")
However this series still includes devicetree patches to enable the PCIe controller (along with the PHYs).

The patches that remain in version 7 of this series are unchanged; they are simply rebased on top of Linux v6.19-rc1. The first two patches are the DT bindings for the PCIe and combo PCIe/USB PHY. The third is the PHY driver, and the last two are devicetree updates to enable the PCIe controller and PHYs.

-Alex

Alex Elder (5):
dt-bindings: phy: spacemit: Add SpacemiT PCIe/combo PHY
dt-bindings: phy: spacemit: Introduce PCIe PHY
phy: spacemit: Introduce PCIe/combo PHY
riscv: dts: spacemit: Add a PCIe regulator
riscv: dts: spacemit: PCIe and PHY-related updates

 .../bindings/phy/spacemit,k1-combo-phy.yaml   | 114 +++
 .../bindings/phy/spacemit,k1-pcie-phy.yaml    |  71 ++
 .../boot/dts/spacemit/k1-bananapi-f3.dts      |  44 ++
 arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi  |  33 +
 arch/riscv/boot/dts/spacemit/k1.dtsi          | 176 +++++
 drivers/phy/Kconfig                           |  11 +
 drivers/phy/Makefile                          |   1 +
 drivers/phy/phy-spacemit-k1-pcie.c            | 670 ++++++++++++++++++
 8 files changed, 1120 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/phy/spacemit,k1-combo-phy.yaml
 create mode 100644 Documentation/devicetree/bindings/phy/spacemit,k1-pcie-phy.yaml
 create mode 100644 drivers/phy/phy-spacemit-k1-pcie.c

base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8

Signature · 1 line
2.48.1