Skip to content

Add StarFive jhb100 soc SGMII GMAC support

Minda Chen linux-devicetree lkml netdev 5 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 0 repliesApplied 4/4
  2. v45 patches 5 repliesSuperseded
  3. v35 patches 11 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v25 patches10 repliesSuperseded
v15 patches7 repliesSuperseded

Changes in v5 from the cover letter

patch2 add review tag and squash with v4 patch3
patch3 stmmac_starfive_sgmii_set_clk_rate() not support rate return -EINVAL and claim not support 1000basex

Patches in v5 All 4 applied

#Subject and filesSizeRepliesApplied
1/4dt-bindings: net: starfive,jh7110-dwmac: Remove jh8100Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml+5 -230 repliesApplied
2/4dt-bindings: net: starfive,jh7110-dwmac: Add jhb100 supportDocumentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml+41 -140 repliesApplied
3/4net: stmmac: starfive: Add jhb100 SGMII interfacedrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c+45 -140 repliesApplied
4/4net: stmmac: starfive: Add STMMAC_FLAG_SPH_DISABLE flagdrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c+1 -10 repliesApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchConor DooleyAndrew LunnSai Krishna
1/4A-b R-b
2/4A-b
3/4R-b
4/4R-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 v5 thread

Cover letter [net-next v5 0/4] Add StarFive jhb100 soc SGMII GMAC support

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

The jhb100 minimal system upstream is in progress:
https://patchwork.kernel.org/project/linux-riscv/cover/[email protected]/

jhb100 GMAC still using designware GMAC core like JH7100 and JH7110, and contains 2 SGMII interfaces, 1 RGMII/RMII interface, 1 RMII interface. In JH7100/JH7110 dwmac-starfive.c have supported RGMII/RMII interface. So require to add SGMII support to dwmac-starfive.c for JHB100.

SGMII serdes PHY has been integrated in JHB100 and do not have driver setting.

In JHB100 EVB board, SGMII connect with motorcomm YT8531s external PHY and support RJ45 ethernet port.

The patch base net-next (base commit list below)

previous patch link:
v2: https://patchwork.kernel.org/project/netdevbpf/cover/[email protected]/
v3: https://patchwork.kernel.org/project/netdevbpf/cover/[email protected]/
v4: https://patchwork.kernel.org/project/netdevbpf/cover/[email protected]/

changes
v5:
patch2 add review tag and squash with v4 patch3
patch3 stmmac_starfive_sgmii_set_clk_rate() not support rate return -EINVAL and claim not support 1000basex

v4: patch1 and patch5 add review tag
patch 3 add sgmii clock dts setting more elegant and simple patch 4 remove redundant compatible and (void *)

v3:
patch2: Add jhb100 attach to jh7110 compatibible, remove redundant commit message. just descript the jhb100 hardware.
patch3: Add oneOf 5 clocks / 6 clocks to claim the clocks and make it pass yaml test.
patch4: Add review tag and unused tag to phy interface.

v2:
1. patch1 Add the remove reason
2. patch2 rename rx clock to sgmii_rx
3. patch4 confirm sgmii rx clock exist, or will probe error sgmii will not call starfive_dwmac_set_mode()

Minda Chen (4):
dt-bindings: net: starfive,jh7110-dwmac: Remove jh8100
dt-bindings: net: starfive,jh7110-dwmac: Add jhb100 support
net: stmmac: starfive: Add jhb100 SGMII interface
net: stmmac: starfive: Add STMMAC_FLAG_SPH_DISABLE flag

 .../bindings/net/starfive,jh7110-dwmac.yaml   | 31 ++++++----
 .../ethernet/stmicro/stmmac/dwmac-starfive.c  | 59 ++++++++++++++-----
 2 files changed, 65 insertions(+), 25 deletions(-)

base-commit: aa064a614efcfa4c300609d1f01134e99a12ad10

Signature · 1 line
2.17.1