Devicetree
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] net: stmmac: dwmac-socfpga: Add Agilex5 TSN GMAC support
@ 2026-12-03  5:08 muhammad.nazim.amirul.nazle.asmade
  2026-12-03  5:08 ` [PATCH net-next v3 1/2] dt-bindings: net: altr,socfpga-stmmac: Add altr,socfpga-stmmac-agilex5-tsn compatible muhammad.nazim.amirul.nazle.asmade
  2026-12-03  5:09 ` [PATCH net-next v3 2/2] net: stmmac: dwmac-socfpga: Add support for Agilex5 TSN GMAC with FPGA converter muhammad.nazim.amirul.nazle.asmade
  0 siblings, 2 replies; 6+ messages in thread
From: muhammad.nazim.amirul.nazle.asmade @ 2026-12-03  5:08 UTC (permalink / raw)
  To: Andrew Lunn, David S . Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni
  Cc: Maxime Chevallier, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Dinh Nguyen, Maxime Coquelin, Alexandre Torgue, netdev,
	devicetree, linux-stm32, linux-arm-kernel, linux-kernel

From: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com>

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@altera.com/
  - 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@kernel.org/
[2] https://lore.kernel.org/all/20260928184340.51da489c@kernel.org/

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-04  5:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  5:08 [PATCH net-next v3 0/2] net: stmmac: dwmac-socfpga: Add Agilex5 TSN GMAC support muhammad.nazim.amirul.nazle.asmade
2026-12-03  5:08 ` [PATCH net-next v3 1/2] dt-bindings: net: altr,socfpga-stmmac: Add altr,socfpga-stmmac-agilex5-tsn compatible muhammad.nazim.amirul.nazle.asmade
2026-12-03  5:09 ` [PATCH net-next v3 2/2] net: stmmac: dwmac-socfpga: Add support for Agilex5 TSN GMAC with FPGA converter muhammad.nazim.amirul.nazle.asmade
2026-12-03 12:54   ` Andrew Lunn
2026-12-03 13:02     ` Andrew Lunn
2026-12-04  5:09   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox