Devicetree
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] net: stmmac: dwmac-socfpga: route the auxiliary snapshot trigger from the FPGA
@ 2026-12-05  8:50 James Clark
  2026-12-05  8:50 ` [PATCH net-next v2 1/2] dt-bindings: net: altr,socfpga-stmmac: add altr,f2h-ptp-aux-trig James Clark
  2026-12-05  8:50 ` [PATCH net-next v2 2/2] net: stmmac: dwmac-socfpga: route the auxiliary snapshot trigger from the FPGA James Clark
  0 siblings, 2 replies; 3+ messages in thread
From: James Clark @ 2026-12-05  8:50 UTC (permalink / raw)
  To: Maxime Chevallier, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Maxime Coquelin, Alexandre Torgue, Richard Cochran
  Cc: netdev, devicetree, linux-stm32, linux-arm-kernel

On Agilex 5, an external timestamp trigger driven by the FPGA design
never reaches the EMAC. The EMAC's trigger input takes its signal from
an HPS pin unless a bit in the System Manager selects the FPGA fabric.
Nothing in the kernel sets that bit.

Patch 1 adds a boolean device tree property for an EMAC whose trigger
is driven by the FPGA design. Patch 2 makes dwmac-socfpga set the bit
from it.

Tested on a Terasic DE25-Nano, where the trigger can only come from the
FPGA. External timestamp events on XGMAC cores also need a separate
series, which will follow.

I used an LLM coding assistant to help prepare these patches.

Changes in v2:
- Patch 2: set the bit in a set_phy_mode() for Agilex 5 (Maxime Chevallier)
- Patch 2: note in the message that fpgaintf_en_3 was disabled during
  the test
- Link to v1: https://lore.kernel.org/netdev/cover.1796106489.git.jjc@jclark.com/

James Clark (2):
  dt-bindings: net: altr,socfpga-stmmac: add altr,f2h-ptp-aux-trig
  net: stmmac: dwmac-socfpga: route the auxiliary snapshot trigger from
    the FPGA

 .../bindings/net/altr,socfpga-stmmac.yaml     | 10 +++++++++
 .../ethernet/stmicro/stmmac/dwmac-socfpga.c   | 21 ++++++++++++++++++-
 2 files changed, 30 insertions(+), 1 deletion(-)


base-commit: 62ae6527877e8012d85942763a8f3e9a66839e3e
-- 
2.56.1


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

end of thread, other threads:[~2026-12-05  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05  8:50 [PATCH net-next v2 0/2] net: stmmac: dwmac-socfpga: route the auxiliary snapshot trigger from the FPGA James Clark
2026-12-05  8:50 ` [PATCH net-next v2 1/2] dt-bindings: net: altr,socfpga-stmmac: add altr,f2h-ptp-aux-trig James Clark
2026-12-05  8:50 ` [PATCH net-next v2 2/2] net: stmmac: dwmac-socfpga: route the auxiliary snapshot trigger from the FPGA James Clark

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