From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796179394; b=D+WqZEtBXqt71erfqRKB4YZxk7vTVwy9NYKgwa66b6jLi/1fwVXpDLILJ73Gm538NtBU rK1LXLF1lkRw7WcV5Me8ZwqZoiuyHX1hqUa+5OaBRtAffMDGflXYtFIO8MDrNT6ccQNjJ gVawT/TDqpQH46imoagIRRuapYfhAsZBXQOOeWvNvI26fVjSH62yjpZehKfThmnAe9uva H8kQDv9Fxm9eVczrgvhYk3q3G8n6UqG7GiMuOoS29m97UG5kwFZo9UhRtGrqil0TCn7Vi J6yNQ1urEVnQ2dCUwUyJWwstcMVF80jZ48EOUQ+b8XMDTrzaOS4aIoGGtjJuscavwEg== 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=aR+q28LxaAI6TnLbICGQhb4vvEikkVUJTEVIPyjq0Q79XAnt8Aus58djceoxrjKruWns ylCB8+0PKeiZQiDERHKfzIRjS0ceIM0Jcn18v7HQBUDt8iwXuCBVeB9uuMnEGVTgs8JU6 OsDsHG9H3ZMrRAVU77XViazfU5+HuI/V2mCyNCZcvlUPoTZKWRcvzD80ovPOaoTrvQUxo tXODP0L8FeeC13crbmkmqYNUE6ZS+tIcPZuu4JxxQsYx5Uch0eslIWWScjIvmFFv4DtEB g59YFjgFnvjnJSxDOUWmLZ4ix6BVTlmNCLo/QnXdrvmj0C2ch7EEdDbmXb5qeJCpbSQ== 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.51 Received: from mail-dl1-f51.google.com (mail-dl1-f51.google.com [74.125.82.51]) (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 C3E8B606A327 for ; Wed, 2 Dec 2026 02:43:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C3E8B606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jclark.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jclark.com 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 Received: by mail-dl1-f51.google.com with SMTP id a92af1059eb24-1b5adf7eacdso1576249c88.1 for ; Tue, 01 Dec 2026 18:43:13 -0800 (PST) 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=HMWzIEwrNzO5/Ug/lHZK3D6GPYI774jufXb05QqOzwYpCbiN/IU5BgxBmS5di2LY6F JMmH7PstPnqel/9QwCIWuPNopERSGK9+rjdzV25qp608nsHHyuEBiT+IPbEW1Axk5Psn 0ha55XfYJlbBhUbyQhUY5mjU16RIwZshHSwblNENMA/nQAbKbTP3S7QQX8Ovh7Ylv3NT V/ijAxW1ahkxQAketLlLAUJcd35YbDdkWwa2JoKmTHRSY5a2e6ABxgOrpXjJgYbFsy0K AuBc9qkd6oGaLTKYPafFP7JEMHZInzMdj/t362xPJ1YobREdUYcOUbiaa7kMXWurZLcs aoGA== X-Forwarded-Encrypted: i=1; AL+hErGPxUIe9M84Wky1M2Ejf25Vn7qXq6qc0OEHp2J0VJyJokX9tkqFAq9dP0zjh8H9WuzyPrqc46DrU7I/F7s=@vger.kernel.org X-Gm-Message-State: APuU4Z8P9OaBjjEUZ9n9MHezk3jG2DvBcb8b/pGwPOHGq6SmrfdRkJll NM62KXzUKT+hCnsq9m0y9E180+Gtt7OZmkJ/mtN6xv9kzVgVJb5u/A60YpWWO0p5Sg== X-Gm-Gg: AZFdTZfnwOx488sxMyc45p84gAAj2Ps8jbhaYyaLjSXShzAJ0c0JDAyrxdWjIKGJblL ZagrXDzqDP+POG4llcNZOMibvAuWoFWRuOv9UHBG1Xrm6itpAB2gTsl1NND6dVNdohS7u0/OTDc c73uF/mP6rqsU0xyKf/m0ZTDDDvBR0Qa926SRg0cVfVKuQ7rFXIjkeoW167tmtu+k9HIgsezHdu YPfNxn0j6i6mLf0BlzlGDSXwMaGt65XmKBxzlbGf8YzzNSFKdCGqCOh8HBBGCgLnqujQhow6j7o lTuP8HXmmE4DIh2GPSkPdAEaoZN+OYuJdMlYqJnAj8Dx4iM+tIMdlWXWimfdAmtgcP3WJ83ob2K J4A6NU1jupnC21oZMjqbCWGCgXlguHVLp3yzCjIJkElnc95QgYbl82Acs1Qi+IocowjXzFCWbso kheAtBB8kN6ST3Rn1JVNfJWQPTq1TBjLeew7OC7KDx/Zox7pKE+bLxK/Uoln5hZxSwA0G24QKqa J1CeA2t8EzYpmhvhowYCfylEIbM+xMvPoDLolclpR/3E0QvxBzvH/ht04AVINnLAAK0lJ6qyreM QmOaI21k8LSoxttYQ4751Ga2NB6hcPoTARMAwLE09TYS59aGZU9RuYuYygDRdimHEtFMmCB23DK wdCwPsmpS8547WKorlA== 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) 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) From: James Clark To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Siddharth Vadapalli , Roger Quadros , Sebastian Andrzej Siewior , Martin Kaistra , Vadim Fedorenko , Rahul Sharma , Robert Nelson , Simon Horman , Nishanth Menon , Vignesh Raghavendra , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 Message-ID: <2616eafad8a35118a41eb6085eb357a39c176d3f.1796179313.git.jjc@jclark.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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) Signed-off-by: James Clark --- .../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