From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA9E2336EDB; Thu, 26 Feb 2026 11:04:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772103843; cv=none; b=LhXaePrarsGZmBrYT0yMzIkn9iHiwdW8e/GX+rJcmDHRFco8D0GeqSrRkMYO3J9GmYBvIxJ2fAoJ338acMG3aILVgk/0e5irLreRrYps4zTXNua9mVMbKnngjaFJRFja/GU0Jf3FUY4zH8ngVei76q3ULDJHKdvE5B8okmNXr1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772103843; c=relaxed/simple; bh=cRLy02UueWkhYtPAXqzBTz1JMrUCbuvc3pWwyLTa2RQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=COsS9DWRv9LXChHym9tNTVpiekAMM03ESvnwZr16FivuKxr6Tl+aUizyUyGqiWbsri/IjYzmS0o0mAIdKQqD5mn0PrJ7jxOH4ONRTXpw1s/AkRxLH1IprCxexpwweY4XblTYKF69UGivJhVHivw7BaXlW6K7Jh9RDqqUi8zdzkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AgsAhSG5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AgsAhSG5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1075FC116C6; Thu, 26 Feb 2026 11:03:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772103843; bh=cRLy02UueWkhYtPAXqzBTz1JMrUCbuvc3pWwyLTa2RQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AgsAhSG5LlZBGa6F6Ms0QXLm4aksoIvTotknOrr7O721zePHDEvwBY27NDHEpcWH0 Cfd/DSM1PFDTbCAEuFBG8DbPdtcx7AYEVKse4r3ombyjyWLn0kZX7AN1Hu7d5Ncehb hPrjMVKefihFZXdtoGoLnJb/z8dJuPmnmPW2AQes+qiFRxTBPzO/EwAJIJzAVEP5tE vuNHlN9oD9DFAJQQ+3h9Fc+g9yAA1FYPuMnxLoDpnH6CHyLVIvW384WDXZICf64Iz5 ZoW3KutaArRsluYmqtmH8WeqxMH/bYbkeqVYnvcqjqz6lgePJXtw45NR36YWOBhDyY nWkP3bLeoWCDg== From: Conor Dooley To: netdev@vger.kernel.org Cc: conor@kernel.org, Conor Dooley , Valentina.FernandezAlanis@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daire McNamara , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Nicolas Ferre , Claudiu Beznea , Richard Cochran , Samuel Holland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Neil Armstrong , Dave Stevenson , Sean Anderson , Vineeth Karumanchi , Abin Joseph , =?UTF-8?q?Th=C3=A9o=20Lebrun?= Subject: [PATCH net-next v2 4/8] dt-bindings: net: macb: add property indicating timer adjust mode Date: Thu, 26 Feb 2026 11:03:19 +0000 Message-ID: <20260226-sprung-universal-b3568492b3f0@spud> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260226-snowshoe-amusable-6716d4ddea11@spud> References: <20260226-snowshoe-amusable-6716d4ddea11@spud> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1946; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=h9iZgeoyt6LhJ0dyrZChFn6X/fZvC/7atHi56cOprkc=; b=owGbwMvMwCVWscWwfUFT0iXG02pJDJkLNMqLKxUv/BQNs1XyMVogt8VwwX3nLzv4ymWZLU898 7y8VL2yo5SFQYyLQVZMkSXxdl+L1Po/Ljuce97CzGFlAhnCwMUpABPZocnIcL+48M76bJPAm7xx SYcqTk6/nNsovqBsdWNEgIn19TMT9zL8r1XZpfWj/XkKb74+31LukJjIpBX/5bk6r7z+vr7J4Co zJwA= X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Transfer-Encoding: 8bit From: Conor Dooley The GEM IP has two methods for modifying the ptp timer. The first of these, named "increment mode", relies on software controlling the timer by setting tsu_timer_incr and tsu_timer_incr_sub_nsec and performing once-off adjustments via the tsu_timer_adjust register. This is what the macb driver uses. The second mechanism, "timer adjust mode" uses the gem_tsu_inc_ctrl and gem_tsu_ms signals to control the timer. These modes are not intended to be used in parallel, but both can be possible on the same device and which mode is used cannot be determined from the compatible on all devices, because some users of the GEM IP are SoC FPGAs that permit configuring how the IP is wired up. Add a property to indicate that gem_tsu_inc_ctrl and gem_tsu_ms are wired up for timer adjust mode. Signed-off-by: Conor Dooley --- .../devicetree/bindings/net/cdns,macb.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/net/cdns,macb.yaml b/Documentation/devicetree/bindings/net/cdns,macb.yaml index cb14c35ba9969..292279499d9e6 100644 --- a/Documentation/devicetree/bindings/net/cdns,macb.yaml +++ b/Documentation/devicetree/bindings/net/cdns,macb.yaml @@ -120,6 +120,12 @@ properties: power-domains: maxItems: 1 + cdns,timer-adjust: + type: boolean + description: + Set when the hardware is operating in timer-adjust mode, where the timer + is controlled by the gem_tsu_inc_ctrl and gem_tsu_ms inputs. + cdns,refclk-ext: type: boolean description: @@ -186,6 +192,15 @@ allOf: properties: reg: maxItems: 1 + - if: + not: + properties: + compatible: + contains: + const: microchip,mpfs-macb + then: + properties: + cdns,timer-adjust: false - if: properties: -- 2.51.0