Devicetree
 help / color / mirror / Atom feed
From: James Clark <jjc@jclark.com>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	Richard Cochran <richardcochran@gmail.com>
Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH net-next v2 0/2] net: stmmac: dwmac-socfpga: route the auxiliary snapshot trigger from the FPGA
Date: Sat,  5 Dec 2026 15:50:30 +0700	[thread overview]
Message-ID: <cover.1796460469.git.jjc@jclark.com> (raw)

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


             reply	other threads:[~2026-12-05  8:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  8:50 James Clark [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1796460469.git.jjc@jclark.com \
    --to=jjc@jclark.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox