From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A86E2CA5FEF for ; Sun, 4 Oct 2026 14:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8PixkBlRVCLZFAT83MEmu5yDoa2rSP6kKE5y6wxjHRw=; b=eka5xhCxLGB1T2 Sa9N9qTWbujCo+PJKpVgoJII1aUgL1VweN3c/Y3CIXv22vPvD9g88YbM0aRKGAeScxuibuYmGQhj5 /DqtsgmYZiZLjadwRmIy5F7RpiUy4azuEKvACzyHXmerFF1vXO79iRUSrcCLL96p1butTe2yUcxfz mWm6QVMaEXKaiFwJRTEmndaUVhn/cvM8YJfQuXN3GbgNbOMiZJBWYMx9PEcUMcTRzEbpaAczMwBec ZLOH2jdO1ZwjhFKBB14DxIhZv0aRpA9f068o5wrnuUHlzNc0exvXJs6aYeSZ3Y36JfKQbQG130Pa0 RcPBaZbzZvZvXyG0O/4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDNOZ-0000000EvGB-0wqa; Sun, 04 Oct 2026 14:40:55 +0000 Received: from mail-wm1-f54.google.com ([209.85.128.54]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDNOV-0000000EvDZ-3O1X for linux-amlogic@lists.infradead.org; Sun, 04 Oct 2026 14:40:53 +0000 Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4a1688d7769so6772945e9.0 for ; Sun, 04 Oct 2026 07:40:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791124850; x=1791729650; 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=Cr3LEhlSfFRZpLIfOzA7XjGagn89G0+3vtw0RCWpTl0=; b=fQzApc8dKJH/KwSza7OrsVpfWBuZvqQIGTxhmsqzGAu5lcLDiI9nKrhjozyIB3NqwF r/Kpmyr9bgcP8lbaHxM/nj8Mvx8UFSnjjZmkJ3bg1GUevnwIiWDyU1t3psfj8EGsu0Py DFoQN1rrTYJBJiVv62TKrug1Vvm6qr/NNKdFq3sv6Ayb7ZDtweAQvsaAyTe3ZQBPmtNT ZCpDeyYuz9a/UioNQiVO0wiKNP+EfT76sDl23PzQ6kAvZAOgLXd+Y0iS0/AYCR2mF7LW pgGx34PSwt4D06QEC5apq+EIz6YuxQCZu8XjmwbjU3AgKc5a3kN2bkfYEVUazPBC5QmZ Z7pw== X-Forwarded-Encrypted: i=1; AKwUvBwoHP10L7B8THB0TIyqwCX1f1910jQ0VDmOU7rKHlM0T6IA/jaezDoDSzP9FsCpDWoLxCi3DiRGvbJXJJUk@lists.infradead.org X-Gm-Message-State: AFuF++lYzRVovVGwaLlW2QJyHZEvCX/TzmRKYW/BU3QNgaW/znQsYlxj EFHQbqzQ9t/gzMsGkTwpetVZ8pOKO0SctDupb1tj5Jgr07swYfENUqeO X-Gm-Gg: AYBFou0/V++PwpRVzWrRNbhl8lHbHF91VXY7J0QfGeWtAeIz0igvyjJZ7WW9Rim1LWA OdpDVgSnnlqPH2WtAQ12RUARHP0o9KvgsdYcGNRuYF7EJiX8/nz/qwOcnldLEACRgMmCwZfc9W9 T8M7w1zmoWZXk/9ileQNFvMWKLdpcKxN8m2328EaCI31Sp54iGahe+C8wjoi7j/OjCJtK3MdMET VBKX3ko1vO2vWw6nrC4rC5EuYjtN99bhuA/TTfT+t4gQ/sDy24B7D/AjLo8jv/j5OfxuzWuL3lG 9VOlXoQm0572Iosss9T9kyVB8Ixp6ZYHoYo7EX9YiK73WlTG0uavxBuePQiLYXtrSqxxeYPxa9q bJURTTcP2ci+mJtxlwgXHm6HpqDRz338pCzYmpFyzj5ubW5jjuu9j7ukYtDAcAkuAZ1yEalDp5N PTbWSF1hxmfg/ep8sqakVr7G/MRk/TFhY5zmhiHer2Pl/0W+u9qO78Jz83vLzBwEnhjW2PElM5h 3nuuW4+gqqcOLzOFygsi87niYer4VsbWA== X-Received: by 2002:a05:600c:c091:b0:4a0:1f90:594b with SMTP id 5b1f17b1804b1-4a1680fd78fmr60092225e9.22.1791124850158; Sun, 04 Oct 2026 07:40:50 -0700 (PDT) Received: from threads.localdomain ([84.68.183.72]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a027740a2fsm298907685e9.13.2026.10.04.07.40.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Oct 2026 07:40:49 -0700 (PDT) From: Lucas Tanure To: xianwei.zhao@amlogic.com, Andrew Lunn , "David S. Miller" , 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, linux-stm32@st-md-mailman.stormreply.com Subject: [RFC PATCH 2/6] dt-bindings: net: amlogic,meson-dwmac: add amlogic,t7-dwmac Date: Sun, 4 Oct 2026 15:40:42 +0100 Message-ID: <20261004144046.391444-3-tanure@linux.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261004144046.391444-1-tanure@linux.com> References: <20261004144046.391444-1-tanure@linux.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261004_074051_858775_352E7250 X-CRM114-Status: GOOD ( 11.78 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The T7 has the same ethernet glue as the G12A, but the controller reaches DRAM through a pipeline stage that the hardware design inserts in the bus path. That stage has a gate of its own, which no other member of the family has. Nothing else in Linux claims the gate, so it is switched off as unused and the port can then no longer complete a transfer. Describing it means a fourth clock, and the fourth clock of the existing list is the one driving the timing adjustment logic. The T7 applies the RGMII RX delay through PRG_ETH1 and never enables that logic, so it has no use for that clock. Give the T7 a list of its own with the pipeline gate as the fourth entry, under the same name the SD/eMMC controllers of this SoC already use for the equivalent stage on their own bus path. All four entries are required, since the port cannot move data without any of them. The RX delay range is the one the G12A has, since it is the same register field. The compatible pairs the T7 name with the 5.10a Synopsys core the MAC reports, and with the generic fallback. Assisted-by: LLM Signed-off-by: Lucas Tanure --- .../bindings/net/amlogic,meson-dwmac.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml index 90ef79161ab1..96118b4d1560 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,47 @@ allOf: - const: clkin1 - const: timing-adjustment + # The T7 applies the RGMII RX delay through PRG_ETH1 and never enables the + # timing adjustment logic, so it has no timing-adjustment clock. What it does + # need is the gate of the pipeline stage the controller reaches DRAM through. + - 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. + + clock-names: + items: + - const: stmmaceth + - const: clkin0 + - const: clkin1 + - const: pipeline + + # Delay definitions for Meson8b and newer (including T7) + - if: + properties: + compatible: + contains: + enum: + - amlogic,meson8b-dwmac + - amlogic,meson8m2-dwmac + - amlogic,meson-gxbb-dwmac + - amlogic,meson-axg-dwmac + - amlogic,meson-g12a-dwmac + - amlogic,t7-dwmac + then: + properties: amlogic,tx-delay-ns: enum: [0, 2, 4, 6] default: 2 @@ -106,6 +148,7 @@ allOf: contains: enum: - amlogic,meson-g12a-dwmac + - amlogic,t7-dwmac then: properties: rx-internal-delay-ps: @@ -143,6 +186,10 @@ properties: - amlogic,meson6-dwmac - amlogic,meson8m2-dwmac - const: snps,dwmac + - items: + - const: amlogic,t7-dwmac + - const: snps,dwmac-5.10a + - const: snps,dwmac reg: items: -- 2.56.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic