[PATCH net-next v3 0/2] net: stmmac: dwmac-socfpga: Add Agilex5 TSN GMAC support
From: muhammad . nazim . amirul . nazle . asmade
Date: Thu Dec 03 2026 - 00:09:28 EST
From: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@xxxxxxxxxx>
This series adds support for the gmac1 TSN port on the Intel SoCFPGA
Agilex5 SoCDK TSN Config2 board.
The TSN port (gmac1) connects to its PHY through a GMII-to-RGMII converter
implemented as FPGA soft IP. The converter presents GMII to the MAC and
adds both RGMII TX/RX delays, so the MAC interface selector must be set to
GMII and "rgmii-id" is the only valid RGMII phy-mode for this port.
Patch 1 documents the altr,socfpga-stmmac-agilex5-tsn compatible. Patch 2
adds dedicated match .data ops for the required interface setup.
The board-level binding and DTS patches will be sent separately to the
SoCFPGA tree.
v3:
- Patch 2: address the netdev AI review forwarded by Jakub Kicinski [1].
Only apply the converter setup for RGMII phy-modes, use
has_internal_tx_delay/has_internal_rx_delay so that RGMII modes
other than "rgmii-id" are rejected at probe time, and rename
socfpga_get_plat_phymode() to socfpga_get_mac_interface().
- Patch 1: add Reviewed-by from Rob Herring.
- Rebase on current net-next.
v2: https://lore.kernel.org/all/20261104040320.18077-1-muhammad.nazim.amirul.nazle.asmade@xxxxxxxxxx/
- Extend the interrupt/interrupt-names/dma-coherent allOf conditional in
the net binding to match altr,socfpga-stmmac-agilex5-tsn, per Jakub
Kicinski / the netdev review bot [2].
These two patches were previously posted as patches 3 and 4 of the
"Add Agilex5 SoCDK TSN Config2 board support" series (up to v6), then
reposted as a standalone net-next series per Jakub Kicinski's request.
History from the board series:
v6:
- Put altr,socfpga-stmmac-agilex5-tsn in the same compatible enum as
altr,socfpga-stmmac-agilex5 in the net binding, per Krzysztof Kozlowski.
v5:
- Replace of_device_is_compatible() probe check with dedicated
socfpga_agilex5_tsn_gmac_ops via match .data, per Krzysztof Kozlowski
and Dinh Nguyen.
- Drop altr,socfpga-stmmac-agilex5 fallback from the TSN compatible list
and rewrite the net binding commit message to explain the hardware
difference, per Krzysztof Kozlowski.
v4:
- Add Reviewed-by from Andrew Lunn on the driver patch.
v2 (board series):
- Replace mac-mode DT property with compatible string-based detection per
Andrew Lunn's feedback.
- Use phy-mode = "rgmii-id" to correctly reflect MAC-side delay handling.
- Rename compatible string to altr,socfpga-stmmac-agilex5-tsn for
consistency with existing altr,socfpga-stmmac-* compatibles.
- Add DT binding documentation for new net compatible string (new patch).
[1] https://lore.kernel.org/all/20261110200844.2190972-1-kuba@xxxxxxxxxx/
[2] https://lore.kernel.org/all/20260928184340.51da489c@xxxxxxxxxx/
Nazim Amirul (2):
dt-bindings: net: altr,socfpga-stmmac: Add
altr,socfpga-stmmac-agilex5-tsn compatible
net: stmmac: dwmac-socfpga: Add support for Agilex5 TSN GMAC with FPGA
converter
.../bindings/net/altr,socfpga-stmmac.yaml | 9 +++-
.../ethernet/stmicro/stmmac/dwmac-socfpga.c | 49 ++++++++++++++-----
2 files changed, 45 insertions(+), 13 deletions(-)
--
2.43.7