From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 957CF606A32E for ; Thu, 22 Oct 2026 20:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ZzmYE6w5 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=RJU4MN4q31InnCqnmctD1bfgzdWMNbsD2UQnbMenASA=; b=ZzmYE6w5eQDf3d bfTj2+WDrR38FFdocRJRo1MXKMJUdZ2LmD+MPh4Ym45/AaU5T6n3LwL8pIehYemJHF68D90QBAT7b BYQfzXHPGkNg3j4CqYsmKI/JTqBEuURg+QOjRcllvnXAmQY/+hR1CAQcbUdPb0wy5PwTzPXBsFAOx x8bOJbrVCIDYd3qVxwJLvN8ICVhX34HXiEWNOaoB9ptsTmz65nRWHHRUkrhNOq5I66JHZHFEYGSm1 ZwKnfBx8fD/oS7ye5/o3d8pFjplHR1IHTJhiWPmVdTyRKmoSb3EBb6IFz3QNr27h5uRCrKh0ig6cN vX9gs0Qxu6Jb64h08law==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xJz3y-0000000Et9o-0mgX; Thu, 22 Oct 2026 20:06:58 +0000 Received: from mail-wm1-f51.google.com ([209.85.128.51]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xJz3q-0000000Et2P-0sQZ for linux-arm-kernel@lists.infradead.org; Thu, 22 Oct 2026 20:06:51 +0000 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4a1e3098ee2so2157955e9.3 for ; Thu, 22 Oct 2026 13:06:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792699608; x=1793304408; 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=RJU4MN4q31InnCqnmctD1bfgzdWMNbsD2UQnbMenASA=; b=qyJU2hIaoCeoKkMLXnEx6LiAkYzPMjnTRnACueThyx6/JIz92hkc6vkEd3B5oPlk3U O7iinnOlaPnN/Uwby0mUgx7PQ2QTXAcWvv63dN7/biO7vM1QiauUFUPWoBTo+i0JIqG8 Jn3SuZSFpwJaBotMx8kAmQ3Qdq9y7I/CDaJZTculTMriEjjvGZ3xZSRwb3rzSKMpGsNm SMQwHfk9moSwAbkqDHrlYEhnsuvLzSyTsq0pHpdYjlqi6Fj/6aLt3YmN2JlsMLhcZNmq qS+VQcOtooExDhqxlTP/ULeZy3TBKrZEHW8hfM4DUZDIta+M+xhIgFNQboBxB1aCsRZX aZ2Q== X-Forwarded-Encrypted: i=1; AKwUvBxkjaZSOa7LXk2HluPEShe1FeJxYU7HK3j5vCmWclUFPF741sjlG7bnIJ9H/YDw9hOKEbE8VUWvv2yGrNJJn7bD@lists.infradead.org X-Gm-Message-State: AFq9FYImdGC0+31LUmLG8GmS7I06z7a8IU0PeDeAUtfeMmu/P5oxE6i8 GI+ymqZYHpdKsdLOoX+vxvX0XcjqIf1CFhLWXE8RcjYcqwErI0ljm6l7 X-Gm-Gg: AYBFou0CjfW4Yz7oCnKqJ6EYkpnX6rHf8iwZCW8piHTxl2ZUpeT7wFUnjWIuiBLY3cv /r+/GI2mGYjroW239HYzaQWWxklrO7+R+cy+1qd2kvs6AaL6GggwPZabqRY8Cy6zg7KmvkiwR3l u2xkc0GsxtLGr3ffwnJ1t6Hy6nwYuY1txHMlaugdscYV3lR4aHul3aLXzxYzZKKwLxx7Mdovk6e BXl3OF9v/0ipiq84QheXXoikf3WMs7idZ4aGgz4qr00nZMWiKH9nDtXxzcpG+DJE90B8VpGZJxB cO93Ufm656i+VeIxk1Osk8vXTxYu2UlRD5fzFnQePzbkh319Lw2R6mybIqPWeu1X2xYX2pbKaV3 XI0FHagBHUwAkDmjHd+cSiddsplRpq90L979KV3RbLwsM+QRhVClwy0JGO8crBoascyB58cKkwr ispuP/htY9NLP3L026wb0icSEVs7lb+8L5DjOTg2tguSbY6HjEko0Ue1kHCliDnqPVOicDVcUvb 5Pi18Wh3Ke0Vc/UEgNJkiBq5FZ1ZlCfxSRWihkCg7crJb7WinxNCaOP830cC1UZRoKULcjjCoc7 N6Gl7ThgiWPmA47J92ethEN/z4c/6R6HrRTU X-Received: by 2002:a05:600c:4e8a:b0:4a1:d675:b031 with SMTP id 5b1f17b1804b1-4a211eeea21mr2127325e9.6.1792699608276; Thu, 22 Oct 2026 13:06:48 -0700 (PDT) Received: from threads.localdomain ([81.79.62.202]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a2123a1797sm35965e9.1.2026.10.22.13.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 13:06:47 -0700 (PDT) From: Lucas Tanure To: xianwei.zhao@amlogic.com, Andrew Lunn , davem@davemloft.net, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/7] dt-bindings: net: amlogic,meson-dwmac: add amlogic,t7-dwmac Date: Thu, 22 Oct 2026 21:06:35 +0100 Message-ID: <20261022200640.3101932-3-tanure@linux.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261022200640.3101932-1-tanure@linux.com> References: <20261022200640.3101932-1-tanure@linux.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261022_130650_287912_0841AA0A X-CRM114-Status: GOOD ( 13.47 ) X-Spam-Score: -0.7 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 The T7 has the same ethernet glue as the G12A but needs two clocks of its own. The controller reaches memory through a pipeline stage with its own gate; nothing else claims it, so it is switched off as unused and transfers never finish. The glue registers sit in a block clocked together with the MDIO multiplexer, which probes after the controller has programmed them: the writes are lost and the port keeps the bootloader's delays. So the T7 gets its own clock list, without the timing adjustment clock it never uses. Its delays follow ethernet-controller.yaml: the PHY adds the 2ns, and only the receive delay line offers fine tuning, so only rx-internal-delay-ps is valid here. Assisted-by: LLM Signed-off-by: Lucas Tanure --- .../bindings/net/amlogic,meson-dwmac.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml index 69244afc4ff8..d27f0f2c52b0 100644 --- a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml @@ -23,6 +23,7 @@ select: - amlogic,meson-gxbb-dwmac - amlogic,meson-axg-dwmac - amlogic,meson-g12a-dwmac + - amlogic,t7-dwmac required: - compatible @@ -57,6 +58,61 @@ allOf: - const: clkin1 - const: timing-adjustment + - if: + properties: + compatible: + contains: + const: amlogic,t7-dwmac + then: + properties: + clocks: + items: + - description: GMAC main clock + - description: First parent clock of the internal mux + - description: Second parent clock of the internal mux + - description: + clock of the pipeline stage inserted in the bus path between + the controller and the DRAM. Without it, the controller cannot + complete DMA transfers. + - description: + clock of the register block holding PRG_ETH0 and PRG_ETH1. + Without it, the block reads as zero and ignores writes. + + clock-names: + items: + - const: stmmaceth + - const: clkin0 + - const: clkin1 + - const: pipeline + - const: pclk + + # The PHY adds the 2ns RGMII delays, see ethernet-controller.yaml. + # The RX delay line of this glue is fine tuning in 200ps steps, + # added on top of what phy-mode describes. The TX side has no fine + # tuning: its only step is a quarter of the clock period, the full + # 2ns at 1Gbit/s, so the TX property is not accepted. + tx-internal-delay-ps: false + + rx-internal-delay-ps: + enum: [200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000, + 2200, 2400, 2600, 2800, 3000] + + amlogic,tx-delay-ns: false + amlogic,rx-delay-ns: false + + # Delay definitions for Meson8b and newer + - if: + properties: + compatible: + contains: + enum: + - amlogic,meson8b-dwmac + - amlogic,meson8m2-dwmac + - amlogic,meson-gxbb-dwmac + - amlogic,meson-axg-dwmac + - amlogic,meson-g12a-dwmac + then: + properties: amlogic,tx-delay-ns: enum: [0, 2, 4, 6] default: 2 @@ -142,6 +198,10 @@ properties: - items: - const: amlogic,meson6-dwmac - const: snps,dwmac + - items: + - const: amlogic,t7-dwmac + - const: snps,dwmac-5.10a + - const: snps,dwmac reg: items: -- 2.56.0