This patch series consist of * PCS and MDIO support for Airoha AN7581 SoC created by Christian Marangi * Fixes and improvements of the Christian Marangi patches.
PCS and MDIO support patches were taken from 'package/boot/uboot-airoha/patches' directory of the OpenWRT-24.10 clone repository https://github.com/Ansuel/openwrt/commits/openwrt-24.10-airoha-an7581-stable/. Original patches were created for U-Boot-2025.01, so the following changes were implemented: * patches were adapted for upstream U-Boot * Airoha AN7583 SoC support was dropped (not supported by upstream U-Boot) * minimal support of Airoha EN7523 SoC was implemented @Christian Please let me know if you have any objections against these patches getting upstreamed. Christian Marangi (8): net: airoha: add initial support for multiple GDM port net: airoha: add support for Airoha PCS driver airoha: add PCS node for AN7581 configs: enable PCS for Airoha AN7581 net: airoha: fill in support for PCS/PHY in Airoha Ethernet driver net: airoha: bind MDIO controller on Ethernet load airoha: add mdio child node to switch node airoha: enable DM_MDIO and MDIO CMD by default Mikhail Kshevetskiy (11): net: mdio-mt7531-mmio: fix switch regs initialization net: airoha: allocate string for GDM port name net: airoha: declare airoha_eth_port as U_BOOT_DRIVER() net: airoha: do not call airoha_fe_init() from GDM port independent code net: airoha: init switch before GDM port initialization net: airoha: pcs: improve/fix building rules net: pcs-airoha: unify code using SCU regmap helper net: airoha-pcs: an7581: sync with linux code a bit airoha: add GDM1 sub-node into EN7523 ethernet controller node net: airoha: makes PCS support optional net: airoha: use mt7531 mdio for GDM1 arch/arm/dts/an7581-u-boot.dtsi | 76 ++ arch/arm/dts/en7523-evb-u-boot.dtsi | 4 + arch/arm/dts/en7523-u-boot.dtsi | 18 + arch/arm/dts/en7581-evb-u-boot.dtsi | 18 + configs/an7581_evb_defconfig | 5 + configs/en7523_evb_defconfig | 3 + drivers/net/Kconfig | 5 + drivers/net/Makefile | 1 + drivers/net/airoha/Kconfig | 12 + drivers/net/airoha/Makefile | 4 + drivers/net/airoha/pcs-airoha-common.c | 827 ++++++++++++++ drivers/net/airoha/pcs-airoha.h | 1220 +++++++++++++++++++++ drivers/net/airoha/pcs-an7581.c | 1375 ++++++++++++++++++++++++ drivers/net/airoha_eth.c | 368 ++++++- drivers/net/mdio-mt7531-mmio.c | 7 +- 15 files changed, 3908 insertions(+), 35 deletions(-) create mode 100644 drivers/net/airoha/Kconfig create mode 100644 drivers/net/airoha/Makefile create mode 100644 drivers/net/airoha/pcs-airoha-common.c create mode 100644 drivers/net/airoha/pcs-airoha.h create mode 100644 drivers/net/airoha/pcs-an7581.c -- 2.51.0

