🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25578

[PATCH net-next v3 1/3] dt-bindings: net: ti,k3-am654-cpts: add ti,gtc-push

#25578
From: James Clark
Date: Wed, 02 Dec 2026 02:42
50 lines
13610 bytes
The Global Timebase Counter (GTC) of TI K3 SoCs is the system counter,
the one the Arm cores read as the architected counter. It can export one
of its counter bits, selected by GTC_CFG0_PUSHEVT, as a push event
output, and the Time Sync Router can route that output to one of the
CPTS hardware timestamp push inputs (HWx_TS_PUSH). The CPTS then
timestamps edges that fall at known counter values, which gives pairs of
CPTS and system counter values.

Add an optional ti,gtc-push property giving the GTC CFG0 syscon and the
HWx_TS_PUSH input the push event is routed to. The CPTS driver uses this
to write GTC_CFG0_PUSHEVT. The router itself is configured separately, as
it is for ti,pps.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: James Clark <jjc@jclark.com>
---
 .../bindings/net/ti,k3-am654-cpts.yaml          | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml b/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml
index 3572749147fb..7bf5bedc2b9c 100644
--- a/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml
+++ b/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml
@@ -101,6 +101,23 @@ properties:
       The pair of HWx_TS_PUSH input and TS_GENFy output indexes used for
       PPS events generation. Platform/board specific.
 
+  ti,gtc-push:
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    items:
+      - items:
+          - description: phandle to the Global Timebase Counter (GTC) CFG0
+              syscon
+          - description: HWx_TS_PUSH input index (0-based) the GTC push event
+              is routed to
+            maximum: 7
+    description: |
+      The GTC is the SoC's system counter (the Arm architected counter). Its
+      push event output, one counter bit selected by GTC_CFG0_PUSHEVT, reaches
+      a CPTS hardware timestamp push input through the Time Sync Router. With
+      this property the CPTS timestamps that signal to provide hardware
+      cross-timestamps of the CPTS and the system counter. The router is
+      configured separately. Platform/board specific.
+
   refclk-mux:
     type: object
     additionalProperties: false
-- 
2.56.1
Technical Details
Message-ID: <2616eafad8a35118a41eb6085eb357a39c176d3f.1796179313.git.jjc@jclark.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375505-linux-kernel-netdev=dewy.ru
References: <cover.1796179313.git.jjc@jclark.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375505-linux-kernel-netdev=dewy.ru
From: jjc@jclark.com (James Clark)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v3 1/3] dt-bindings: net: ti,k3-am654-cpts: add ti,gtc-push
Date: Wed,  2 Dec 2026 09:42:56 +0700
Organization: Usenet Network
Message-ID: <2616eafad8a35118a41eb6085eb357a39c176d3f.1796179313.git.jjc@jclark.com>
References: <cover.1796179313.git.jjc@jclark.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1871291"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:SfTGzhZoLcjQOimrA+IbvYVtu7Q= sha256:srna+zQtAaskvYLQXtqbk49RMVjEkqBieu3Z2YWTmnU=
	sha1:xbGCC/yCaUzpB2Kyi9Ig+jItH5E= sha256:0HXaFuxXxyVZloGL3MNteCcnjxSZanxvL9gyvUKj4hE=
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 A01AE117537; Wed,  2 Dec 2026 05:43:36 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 dOEWtpOpyF-L;
	Wed,  2 Dec 2026 05:43:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375505-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 7120F117523; Wed,  2 Dec 2026 05:43:25 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 4D3F727310; Wed,  2 Dec 2026 02:43:16 +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=1796179395;
	b=mp/jFGM6fnyY+vi09n0TH+fYZ8ujcTAeksyE3keGoXr5VkClO44v/gRePXjb5G8FZL9W
	 TAnZcIAqr50dVayhEYe26nwJZaUmJC/clTd98HEXq05XkvlErUsESdPmXwnG6qoriySaN
	 SVBt31hcxq+vRj2gfOj+zOX2Avki6SBwJitdiNtynKDYdJC/cUxNwZOJUNlSkYp2s5PJ1
	 MpChh8DgilyAzURYWo+SvAu9S12OxsfK8Erd7SKP1t9dT2IpBovMB4ZPjXc0fDZeYlv0g
	 SDrIo32dEKS3zEwEjrDHE2s5fRaz8SfUXe+7eK1163cz30UXGgLGTKd4HKUSt8ldBsw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796179395;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted: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=0Ju6bWfngD9rK29pul3NvUrMc7rDU8Z+jWsL+cPSjrk=;
	b=CfxqDwtYAgLQkUNz+KnEosIFzlzghyC1KqRyh5bA5nSHyCasrfsGmjoKSTnN9+F9yefX
	 UzsQYMGTjm5ptxAgNa6q9c8i6inhpiPIkr+OByIexuR1pASDAgKL1QGSrLIUKM2Sjfy1f
	 k3utOlfEh2fS0I4d31W0baaWnv8sS95BPRAmvo8Xce5VsZwvgKeBrMRAtmyz9qaxoBVGl
	 ACVaongl6MVEQf4Q230eS6LB4CppbXVlprZRebXmkhc02VRNpwIIii9CDOXlDWZqhExJu
	 Zcb4wD0xi9x5iwsnzGxucwZ0MDDxNkXX9tBdd3mfJmwpnLz2MgSCbZeUhHZutTPWb1A==
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=H0QGHetR;
	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 9F908606A323;
	Wed,  2 Dec 2026 02:43:15 +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=H0QGHetR
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.53
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796179394;
	b=Z6+ULLTSd5E+3/SJUPkMlUyJ0mokX1kNu5+CBVEED1Lxjn+VYSqhnGX2r+4021QUQZDq
	 dwLufk+Vp51NJN37L0o3Mr/pc2ULrfWwFgkJ1S+kvORJSqLCb3PkHD7bK0xQ65zigCdqh
	 l2OfAWsQl8i6+JueWzlDNfWeKmVP+zoRIqr34/VRS3ZFBpF3K2y/U1bFn0ppU8A/I2lsT
	 TNGEfx8UAKK84K8vn5R786gEQv2KC8oqqLuMFCPqns9oX4PiPYlqVDM5CrYwitD3Q2DNC
	 jCwMsFG6FYju5BB6qbN+O+qWSzZsXjAhOjfkp31mN/P3xt2IiHO3zOHKhRVJPgyXjwQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796179394;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted: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=0Ju6bWfngD9rK29pul3NvUrMc7rDU8Z+jWsL+cPSjrk=;
	b=AM04KNJr2fkd/63sseYr+9UkveBMVBvlVsscdPTpEm3zBnVB1g4F/c0eC6A5C/D8/Ji6
	 pWb95BCttrX7cBdXuY6d1L+x+Uhd9+Bv32Q1U0fOhiSTpN1KBAdqfl5x1gx+oHv3apd4c
	 kq277Z0AUuaGGq/ElrX9eFuW7I9dicz/5hkao79nT2tMbNIxOT+2iEycpXq9TYZYOPr03
	 XAzDcV7UXo4hZtY7UpZRrg9/iYBQyf6UgJHaPMR5ZtanPJvjtlDMSDEP7Ln/5CUIbtZEn
	 2DoK2yBNwvtXJ055zEXSA5aGowkkM3mpULYEDGM7ZM3kN9TJ/EXf3+0hk8oY9CBF0aA==
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=H0QGHetR;
	arc=none smtp.remote-ip=74.125.82.53
X-Received: from mail-dl1-f53.google.com (mail-dl1-f53.google.com [74.125.82.53])
	(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 BCDD3606A325
	for <netdev@vger.kernel.org>; Wed,  2 Dec 2026 02:43:13 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BCDD3606A325
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-dl1-f53.google.com with SMTP id a92af1059eb24-1b5adf7eacdso1576244c88.1
        for <netdev@vger.kernel.org>; Tue, 01 Dec 2026 18:43:13 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=jclark-com.20260707.gappssmtp.com; s=20260707; t=1796179393; x=1796784193; 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=0Ju6bWfngD9rK29pul3NvUrMc7rDU8Z+jWsL+cPSjrk=;
        b=H0QGHetRG4AminODXZkqM+AiZr6h0GEyx6cv4zRw5ILGv6t2TgWLac+lhr4rMM1mkf
         tyRO4v3jH417OVJj18O8ggg1IwUP+k77S5vBJL6a8Itd2MBuoYmKQ6QzQfntzwCQnExp
         vpudNRws6awE0U+lxrCMoPGZy+4m425oREn4VRMdKPkeYmc9ClhmakCCsPZuyDr7ezkZ
         +P/nS16FZW7udjAUD+OKLu3xtZ8fGQ86jjrlhqxKur42MIHKNLJdgdldCaSUDSQ5HjAl
         fylOyj2myU5ZvWCtArLsYnLshQPxdEeKKvKWyonGDDlCrO3dmpOSk5zIUQHDoIBuXdqc
         ISOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796179393; x=1796784193;
        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=0Ju6bWfngD9rK29pul3NvUrMc7rDU8Z+jWsL+cPSjrk=;
        b=HPPqPmMOEgAQMtNzvrHZvkOt10rvEksIQVTLpUgGtSgHbiKSnK+hJ9sQEmlrFjuNSo
         SfPTYm4PNIhW7NvodCuhhdzx5HubWgFFT20prfz/IOPu4xi7M4SFaOCFb5Dw/v9rJwRb
         IdrvSPXlvKbSxynp/To0/+RatW18wyljiI2X6ZJH8KCDFs/Di7zxMxLsP2xPtpAOPqpu
         DvpCMxp4qoN2yTR5B12aOkci36+uH80brb9PwLRNjRZ4Rx3DguJfdBK1X1rJnu3arh6K
         5pP316rUwjDM6a5dboxEdtIAnK7UjBSgl6VWnzHlxZWH78LPlKarRdRLdkuHVpjDY06A
         a85g==
X-Forwarded-Encrypted: i=1; AL+hErHvBbF1a86b8UoTRz1T/cdEdaXc9CQvZoA8SMZw5PfIooUT6Tjl6GackNqrNeXp4aqor/KBdq0=@vger.kernel.org
X-Gm-Message-State: APuU4Z+fvooezHE2UFOFQpJfELK3ypNPtmzW4M28pI6E1glSNG4XtN7a
	AAK0viWkHVMSknPqZixvQRQRXE07gWPyAhpZEWXnNBAVtrJeIZ98lmme7hKftcAc7Q==
X-Gm-Gg: AZFdTZfJCacAQEk2bSQ2jkp9s7NZlJFYB2Yj28O3r9hkqw1xrrVubBLFAuyvtY/Qp2Y
	nfcBrvHYOjmZ/GNG678uddR8eFSUDuqnSwcNAQB7E4T4nJEjfG3/nd2YmGaLndCOA0ygaqTr5rR
	sY5GOlm+Wt2b6mjLrRJ3srXUbc/zCUO6oXureL/FsAiXoxy5DlP1CK/Us/BbZPXrjnF3Kt/qbZi
	WVrOMIq/N8W3fEgGMH/lrIUjWTr50gzFR5rt3dPgPKyJIBocvawIsHce9+5PcnpN7YLA6TRAFeT
	eBq+pZPFFKJ/qnEs9B+XHOei4exqf6bOG+XeBezUFJPHxM0KWHEzM/N76PWgFQnN9dxyhcOYtyR
	OqC6hYKSsdmVfDC4Rs0r0wX2LHtqUtfN/dGMtt+wgAGxMc4SsTUcCYZQaQKexz+6fYGDsCTacFh
	pMFn1M111C4qHtzNJ3DrDrpUo1QjMyzXMLVHdhrSDLmHgyqKiaHwAdCpxPG9qqqoUAifkO9UlsY
	KHD728TX3lFZEJ42EK/IDEXpXe+idGtGerbgV2LWXgEZjgZvgbO71Vze1Q1i63BN9zjV0eR5pPA
	HkKuvPTL9Lg3vHG7cFKF6AW2I8qposAfzaGATUktppcOag4JgdaIFs0n4LyUclXaH4LmfXvv224
	PbVliqYQCX9qrFdwwpA==
X-Received: by 2002:a05:7022:4398:b0:1b2:610b:878 with SMTP id a92af1059eb24-1b556877921mr51957755c88.6.1796179392652;
        Tue, 01 Dec 2026 18:43:12 -0800 (PST)
X-Received: from cantal.lan ([58.136.75.118])
        by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385666e7fc3sm100925531eec.8.2026.12.01.18.43.06
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Dec 2026 18:43:12 -0800 (PST)
X-Cc: Siddharth Vadapalli <s-vadapalli@ti.com>,
	Roger Quadros <rogerq@kernel.org>,
	Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	Martin Kaistra <martin.kaistra@linutronix.de>,
	Vadim Fedorenko <vadim.fedorenko@linux.dev>,
	Rahul Sharma <r-sharma3@ti.com>,
	Robert Nelson <robertcnelson@gmail.com>,
	Simon Horman <horms@kernel.org>,
	Nishanth Menon <nm@ti.com>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	netdev@vger.kernel.org,
	devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
X-Mailer: git-send-email 2.56.1
X-In-Reply-To: <cover.1796179313.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