Skip to content

Add Ethernet driver for StarFive JH7110 SoC

Yanhong Wang u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: phy: Add driver for Motorcomm yt8531 gigabit ethernet phydrivers/net/phy/Kconfig drivers/net/phy/Makefile drivers/net/phy/motorcomm.c +2 more+420 -13 replies
2/5net: dwc_eth_qos: Add StarFive ethernet driver glue layerdrivers/net/Kconfig drivers/net/Makefile drivers/net/dwc_eth_qos.c +2 more+322 -02 replies
3/5riscv: dts: jh7110: Add ethernet device tree nodesarch/riscv/dts/jh7110.dtsi+69 -00 replies
4/5riscv: dts: starfive: Add phy clock delay configuration for StarFive VisionFive2 boardarch/riscv/dts/jh7110-starfive-visionfive-2-v1.2a.dts arch/riscv/dts/jh7110-starfive-visionfive-2-v1.3b.dts arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi+74 -00 replies
5/5configs: starfive: Enable ethernet configuration for StarFive VisionFive 2configs/starfive_visionfive2_defconfig+13 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/5] Add Ethernet driver for StarFive JH7110 SoC

This series adds ethernet support for the StarFive JH7110 RISC-V SoC. The series includes PHY and MAC drivers. The PHY model is YT8531 (from Motorcomm Inc), and the MAC version is dwmac-5.20 (from Synopsys DesignWare).

The implementation of the phy driver is ported from linux, but it has been adjusted for the u-boot framework.

The PHY and MAC driver has been tested on the StarFive VisionFive 2 1.2A and 1.3B boards and works normally.

For more information and support,you can visit RVspace wiki[1].

This patchset should be applied after the patchset [2].
[1] https://wiki.rvspace.org/
[2] https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/

Yanhong Wang (5):
net: phy: Add driver for Motorcomm yt8531 gigabit ethernet phy
net: dwc_eth_qos: Add StarFive ethernet driver glue layer
riscv: dts: jh7110: Add ethernet device tree nodes
riscv: dts: starfive: Add phy clock delay configuration for StarFive
VisionFive2 board
configs: starfive: Enable ethernet configuration for StarFive
VisionFive 2

 .../jh7110-starfive-visionfive-2-v1.2a.dts    |  13 +
 .../jh7110-starfive-visionfive-2-v1.3b.dts    |  27 ++
 .../dts/jh7110-starfive-visionfive-2.dtsi     |  34 ++
 arch/riscv/dts/jh7110.dtsi                    |  69 +++
 configs/starfive_visionfive2_defconfig        |  13 +
 drivers/net/Kconfig                           |   7 +
 drivers/net/Makefile                          |   1 +
 drivers/net/dwc_eth_qos.c                     |   6 +
 drivers/net/dwc_eth_qos.h                     |   2 +
 drivers/net/dwc_eth_qos_starfive.c            | 306 +++++++++++++
 drivers/net/phy/Kconfig                       |   6 +
 drivers/net/phy/Makefile                      |   1 +
 drivers/net/phy/motorcomm.c                   | 409 ++++++++++++++++++
 drivers/net/phy/phy.c                         |   4 +-
 include/phy.h                                 |   1 +
 15 files changed, 898 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/dwc_eth_qos_starfive.c
 create mode 100644 drivers/net/phy/motorcomm.c

base-commit: 3ad7642443aee9369726844ffcfe5b9ae68c259e

Signature · 1 line
2.17.1