[PATCH v2 0/5] Add ethernet driver for StarFive JH7110 SoC

Yanhong Wang yanhong.wang at starfivetech.com
Wed Mar 29 12:27:15 CEST 2023


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/20230329034224.26545-1-yanhong.wang@starfivetech.com/

v2:
- Reworded the phy driver. Added platform private data struct to save the 
  configuration data read from dts.
- Reworded the MAC driver. Added platform private data struct to save the 
  configuration data read from dts.

Previous versions:
v1 - https://patchwork.ozlabs.org/project/uboot/cover/20230317010536.17860-1-yanhong.wang@starfivetech.com/

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_12a_defconfig    |  12 +-
 configs/starfive_visionfive2_13b_defconfig    |  12 +-
 drivers/net/Kconfig                           |   7 +
 drivers/net/Makefile                          |   1 +
 drivers/net/dwc_eth_qos.c                     |   6 +
 drivers/net/dwc_eth_qos.h                     |   1 +
 drivers/net/dwc_eth_qos_starfive.c            | 249 ++++++++++
 drivers/net/phy/Kconfig                       |   6 +
 drivers/net/phy/Makefile                      |   1 +
 drivers/net/phy/motorcomm.c                   | 450 ++++++++++++++++++
 drivers/net/phy/phy.c                         |   4 +-
 include/phy.h                                 |   1 +
 16 files changed, 890 insertions(+), 3 deletions(-)
 create mode 100644 drivers/net/dwc_eth_qos_starfive.c
 create mode 100644 drivers/net/phy/motorcomm.c


base-commit: d7c2e87a0b8025314ae7dd62a8add292b7524e0b
-- 
2.17.1



More information about the U-Boot mailing list