🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25077

[PATCH net-next 1/2] dt-bindings: net: altr,socfpga-stmmac: add altr,f2h-ptp-aux-trig

#25077
From: James Clark
Date: Tue, 01 Dec 2026 08:29
48 lines
12629 bytes
On Agilex 5, the trigger input that an EMAC uses for external
timestamps, auxiliary snapshot trigger input 1, comes either from an
HPS pin or from the FPGA fabric. The ppstrig_sel bit of the EMAC's tsn
register in the System Manager selects which. Which one is right
depends on the board's FPGA design. On the Terasic DE25-Nano, the
trigger can only come from the FPGA.

Add a boolean property for an EMAC whose trigger input 1 is driven by
the FPGA design. As the FPGA design is often loaded at run time, the
property will usually be set by the overlay that goes with the design,
which has to be applied before the EMAC is probed.

Signed-off-by: James Clark <jjc@jclark.com>
---
 .../devicetree/bindings/net/altr,socfpga-stmmac.yaml   | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml b/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml
index ce1bd5f2c470..d634920469e4 100644
--- a/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml
+++ b/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml
@@ -130,6 +130,14 @@ properties:
       Should be the phandle to the emac splitter soft IP node if DWMAC
       controller is connected an emac splitter.
 
+  altr,f2h-ptp-aux-trig:
+    type: boolean
+    description:
+      If present, indicates that the FPGA design drives auxiliary snapshot
+      trigger input 1 of the EMAC (ptp_aux_ts_trig_i[1], used for external
+      timestamps). Otherwise, the input is taken from the HPS I/O pin
+      multiplexer.
+
   altr,f2h_ptp_ref_clk:
     $ref: /schemas/types.yaml#/definitions/phandle
     description:
@@ -196,6 +204,8 @@ allOf:
         interrupt-names:
           maxItems: 1
 
+        altr,f2h-ptp-aux-trig: false
+
         dma-coherent: false
 
 unevaluatedProperties: false
-- 
2.56.1
Technical Details
Message-ID: <4acd4753fcf66dac0f9e7a0ce4e4aeb804d64f64.1796106489.git.jjc@jclark.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374844-linux-kernel-netdev=dewy.ru
References: <cover.1796106489.git.jjc@jclark.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374844-linux-kernel-netdev=dewy.ru
From: jjc@jclark.com (James Clark)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 1/2] dt-bindings: net: altr,socfpga-stmmac: add altr,f2h-ptp-aux-trig
Date: Tue,  1 Dec 2026 15:29:22 +0700
Organization: Usenet Network
Message-ID: <4acd4753fcf66dac0f9e7a0ce4e4aeb804d64f64.1796106489.git.jjc@jclark.com>
References: <cover.1796106489.git.jjc@jclark.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1659339"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ThJZPj61K6elDeZfrvhZnLk9Ggo= sha256:KMza/ncLKYni3HjM/wvbPuLY/Ie2L3rEmOyPSkRou/k=
	sha1:JSed8tCV/nEouXk+cVCFE6ysdqM= sha256:N5m+LWKyPLzmqzR1nlSI70njtevhbwFGDTpHMW8dWHg=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id C39611172C9; Tue,  1 Dec 2026 11:29:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=jclark-com.20260707.gappssmtp.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id jWFQaS0f8b5O;
	Tue,  1 Dec 2026 11:29:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-374844-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=jclark.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id E6DE81172C5; Tue,  1 Dec 2026 11:29:38 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 5FFEE263AA; Tue,  1 Dec 2026 08:29:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796113776;
	b=zCc/PMyknfUCiHdyJD7/kZ+/CnizM6xQ9X2AHTJPzyZprGCfe/DtXFwWyHiKI8EedoiJ
	 uv4w0tarLTbqFBZkoK7N1VSyU9158QgzY7R10P57XqFexgIgZBmonAAkWOPBiY7m04eIp
	 2Gfw1YDsJAhcJzMniyX/ueSKnUz6eDWquuk0cQoiJFgdjK+Iat0YsU/7FCc/Rp0kPdXPJ
	 Gqh9JEkMx/k2HfKkfsjMOVZ00ZpRy7HQSEFDv1kPF3ulnZy7NMVYE13Y3CqVONOAakh7R
	 L/3aLaamlJPssnsnNeVLw99tY3h2sUQQSNKvT9yPQX++23h9/24TemCSKzc9OBfkXEw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796113776;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
	 References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=ZEurzUDELZZGg5ciJzOXR7aMBt5XeShFJMeWWJ7iaSY=;
	b=kAHkypjWIA80g4q6zOU7dk7YHDWESfwXA43MHPH4vXbztETsRv+YK5Z54/coy2yo/uDa
	 uc0PfCW7C6KbfAayTE/2JHGoxRyPN0oJNyiGaW2+wbc+YJ6+nPNqOBWuA4pKuGeqmd4um
	 oz4KPoFA/xoXHTfs/l0Pf4ZOACvle0pisdCNv8AWmitMn9dtx9VIkBgIOOHfn64wb3oIS
	 28tP/4luL+AnvoWISbmT2FrqYKKaYMU0hNKH2BQ253h3jSNnh6XlUtCItYk1aGo0OLsbt
	 +P4BM/x0bICJeU2zK/3c9Xx3h0ffUCYDeBF0ilXurSBKBC2QoZAE2qIfLmu8ohWDy9g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=jclark-com.20260707.gappssmtp.com header.i=@jclark-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=JJfUKZoU;
	dmarc=none header.from=jclark.com;
	spf=pass smtp.mailfrom=jclark.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id AC6FE606A332;
	Tue,  1 Dec 2026 08:29:36 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=jclark-com.20260707.gappssmtp.com header.i=@jclark-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=JJfUKZoU
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.179
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796113775;
	b=uGA76k2skOO44Ue1Gy4frp1AOsCmEsI8HqeV85BXtNgSro3I27zeUhs7HC/5Yd+0CvBM
	 XY1MkVnGMO/HOPenF+zuzgKZPPXo/Nm9YzoFTheZiF6YM8JX7/ooKgKfQun7iwYdLMdhn
	 XNbCjSf6FljqSWyDs54QaTYf4PM5UBQnJSDg4/x5EIz05zC0btaHdRJcE1SZGNX/ROdwN
	 kjnXh7jWCHz49IgMDzDYnncehfse2H+S+w3cECWqidFhewZmsUd96aVXXmp7lridF1uNL
	 DoRNUfZvTVviyzc4+3ISnp7HFxy/p0UfTVagGlKFoZv4f8TRYtDW0UmLLGtRkuCD+kQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796113775;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding;
	bh=ZEurzUDELZZGg5ciJzOXR7aMBt5XeShFJMeWWJ7iaSY=;
	b=uA/tmoZtIF1AmYSH5iXD4o5tr7qNrF6euovKvCARnB6RqiRhv4Hmweo7TFOP9AjlbpIW
	 ef9syYtppzC/PAf0x/SJAfrY9Q8FolV9hkTakGpVIesxb6zn/sMuFKj50HGzDzB8JhLGY
	 IJmOlmnEZ0Q8ez7iX02jK+TRbY64MG091UZGQv6hZxCDlbZbH84mCAlJ52op3KnqlUy0G
	 gfN1Vmq1uoQOTEHplBNUb9wuPClVVL1sr+JdOg7NPnJHad+sKCXW3KDKG8xlj0KxK9QgG
	 v4dsO3+zDZiS4S5X/g+efLtAm2i2/QhvsUrjebysb5TCK8Oo2hSyEj1mKZH5dUQSJMg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=jclark.com;
	spf=pass smtp.mailfrom=jclark.com;
	dkim=pass header.d=jclark-com.20260707.gappssmtp.com header.i=@jclark-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=JJfUKZoU;
	arc=none smtp.remote-ip=209.85.215.179
X-Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85927606A331
	for <netdev@vger.kernel.org>; Tue,  1 Dec 2026 08:29:35 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 85927606A331
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jclark.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jclark.com
X-Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-cc4be0e5351so7298444a12.0
        for <netdev@vger.kernel.org>; Tue, 01 Dec 2026 00:29:35 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=jclark-com.20260707.gappssmtp.com; s=20260707; t=1796113775; x=1796718575; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=ZEurzUDELZZGg5ciJzOXR7aMBt5XeShFJMeWWJ7iaSY=;
        b=JJfUKZoUA3AKFOsdi5K4ZLfd93lwE64bEkg4ge2+kz0sVgth0IFye4+3KoQs020uCy
         9d9icwA1oXGeunlxLvnkXL2Lyu2h6qahExkArWR9piPdAJT6TGnNPiwS8Wx3sopBe7Qz
         +xqfSf4VbCz2Fh3dr/7dvVtY5uEydUsNJGVw2w2+SR+RBASxqIS3uxNwe8YBENdhchdk
         CdsmLAi4ZvosvMC9lAyyyQqXm/Vnyauo8n+UAoicjBuBpCD6++XJ5rJRJXhT4Cjydd2r
         VrKTPvRQw+0NRulwfNum999zw6wEsMUnFDCicbs41S3TG10tfu8t6bWQfZSoczBcCo2v
         nLJw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796113775; x=1796718575;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
         :to:cc:subject:date:message-id:reply-to:content-type;
        bh=ZEurzUDELZZGg5ciJzOXR7aMBt5XeShFJMeWWJ7iaSY=;
        b=Weu3nXr40+aYM3SbW6TuaYyprevLNXkArhai57P0YdL/E0nXXOLAFENMffi8WdjUAD
         j7pOCE+8RWWBqQsSqWu0bAh1guuvxPthJf+Uv1b+VhRz6Z/Fh23mJTmBWeO89NPedfq8
         CrYRPIQ39IJDR/RgND2VPXm1qP7E4NLJJCeY/aHv+caJBBs79naCLy2VSDARJxYng/F5
         wi/T5tfYzCulRrTaNEgoCQGDReMhcdTgX1f2Ex75kJ5Wfv7u9s6R1+bPGEgdiMycZ9ha
         jyvFnDUhaZJJBY1jiO1Y+HOvTolPDs7+OTtQAOkgtYBRXlWySNWXs9XCzPWpqMNUCkYR
         gfZA==
X-Gm-Message-State: APuU4Z8SumjGJrfKFvlM5peWUzPzN5f/+l+4z1XY/bQv8nwFq20cyC1S
	1mJX/WfZf7WFxncupO4ga5f81DbX+yh/mTiukRQeiPh5XCqVmnyPX6Cm1ZpXU0zzgg==
X-Gm-Gg: AZFdTZfK+lUy2EQJCjdAYTlHlG0RrpX1wRXFmb6QJNVH5d6UjI25TyjQCxiOSKGCc8E
	LyKEYVdEBY831M0SWMP3k3YrJc+mR7XMxjnrdFSfy1dGzWu0NV0TfayBufjqr68WyuyAXiokQgx
	U3631MASigdJ+N9lHKM7XVnJzAuoacBsY7G2C42cC6rwV6YQYBYShNGzFj4cyMO/S3yJarm3KHt
	880hMSrqKky6o25LaKVTsf+Mb09eM+Oe1k34BRsqIeaRbdd6heltycCtD0yBZ733v3OZLHLZFav
	GNPVbDjh075ZIn+DQW67TtHGwcIGcvK7bKvNXS7gcEpR9ENPPzTtJJqhSPRQcBjlFYkuuQ+mDff
	GqsvBbP+mBpEzXKExZlIL7vdGd+Zyk6Iau4oXD+jty3WW2YhA/I5NciXmBEuaibJQUeqlsoI0Ag
	RYNGxdVH5oDIQQIqVO44mSyz3ZYy+6KxO5zoXshZ7l5Lc5r0vDJq0Lzt8gEjM1Piq4a0IHYv0WG
	oF+eT8vOuI6Oxp+l25nF2yYvNhcJBHhI2L/O6vvfDQYjTC3z2x4GwUlivYF3ZO+cBLUJPIeY0Lj
	lujGv3fWrlbZhSqGZenRa9s1lO9DpWBQBTTpykqABPQsfv5ZT/PBIg5SURi/4zNjGXy84xKPRte
	YeAhY1/6HdrLCcZq5uQ==
X-Received: by 2002:a17:90b:4d10:b0:3ac:9176:e836 with SMTP id 98e67ed59e1d1-3b41c8d4860mr34692633a91.21.1796113774679;
        Tue, 01 Dec 2026 00:29:34 -0800 (PST)
X-Received: from cantal.lan ([58.136.75.118])
        by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b4b3c71192sm41081844a91.5.2026.12.01.00.29.30
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Dec 2026 00:29:34 -0800 (PST)
X-Cc: netdev@vger.kernel.org,
	devicetree@vger.kernel.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-arm-kernel@lists.infradead.org
X-Mailer: git-send-email 2.56.1
X-In-Reply-To: <cover.1796106489.git.jjc@jclark.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list