[PATCH 0/3] arm64: dts/net: stmmac: Add Agilex5 SoCDK TSN Config2 board support
From: muhammad . nazim . amirul . nazle . asmade
Date: Tue Jun 30 2026 - 09:33:49 EST
From: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@xxxxxxxxxx>
The Intel SoCFPGA Agilex5 SoCDK TSN Config2 board uses a dual-port
Ethernet setup where gmac1 (TSN port) operates with different MAC-side
and PHY-side interface modes: GMII internally in the MAC, and RGMII
towards the PHY.
Russell King's commit de696c63c1dc ("net: stmmac: socfpga: convert to
use phy_interface") replaced mac_interface with phy_interface in
socfpga_get_plat_phymode(), correctly noting that no upstream DTS files
set the "mac-mode" property at the time. However, the Agilex5 SoCDK
TSN Config2 board requires mac-mode and phy-mode to differ, causing
ping failures when the MAC is configured with RGMII instead of GMII.
This series fixes the issue in three steps:
Patch 1 (dt-bindings): Add the compatible string for the new board
variant to Documentation/devicetree/bindings/arm/altera.yaml.
Patch 2 (dts): Add the device tree source for the Agilex5 SoCDK
TSN Config2 board, enabling gmac1 with mac-mode = "gmii" alongside
the standard gmac2 port.
Patch 3 (driver): Restore mac_interface support in dwmac-socfpga by
reading the optional "mac-mode" DT property. When absent, it falls
back to phy_interface, preserving existing behaviour for all other
boards.
Note: Patches 1 and 2 target Dinh Nguyen's SoCFPGA tree
(git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git).
Patch 3 targets net-next.
Nazim Amirul (3):
dt-bindings: arm: altera: Add Agilex5 SoCDK TSN Config2 board
arm64: dts: socfpga: agilex5: Add SoCDK TSN Config2 board
net: stmmac: dwmac-socfpga: Add mac-mode DT property support
Documentation/devicetree/bindings/arm/altera.yaml | 1 +
arch/arm64/boot/dts/intel/Makefile | 9 +-
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_tsn_cfg2.dts | 133 ++++++++++++++++++
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 23 ++-
4 files changed, 162 insertions(+), 4 deletions(-)
create mode 100644 arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_tsn_cfg2.dts
--
2.43.7