From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE1FA440A30 for ; Wed, 7 Oct 2026 08:26:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791361592; cv=none; b=emuBXNbzDEMctVQ1E4UWuKnOlEzqShLMFbtm0EiwwVD/lGiyzAXrT1aSyetNIMYQO+5iG/3jbKctKPysfiQkmtvDIBnSZtwaBLmQTlMBV/p7E4uOhZTtbq6DU+PGa3B5RjWLyhWTswhDy/RqOgHcshlB3jHu+fTc+qd04Q3KzG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791361592; c=relaxed/simple; bh=jV4OzbU2f3KQRrFlwjDb/XPZqUZlJnIHXEWJ2uji73w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TdPrL73W3WzN/iv/YbxrjwIHdK+rTDDsJOnxuv9yFGj+ALD37UpVlU5pYSs9DWOid3gOtGYZVUrUYVwKbiFlFv57S4HKV8lGWy7v+Iw3xYmFRNYfq06J8trrEEZ7V/gJjffRuqeCkL8ClEUJZIA1B1/RDc6ZetAV5UYi3bsWP2U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-48afe75f055so3324904f8f.2 for ; Wed, 07 Oct 2026 01:26:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791361589; x=1791966389; h=content-transfer-encoding:mime-version: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=GBaPp0u4Tgsx6RoTaJszoIAhk3SQlcR8pT28TWFVYik=; b=kGCBsWs78XYRu3cQTKb4X5QAOEyipi70CnMAWNhAikLZFik9RMaziYhpTfmJQP4jpI KZsjPzvNo5Nnd331mbDyDQqZ/AQmHdQsZQD6+BtXZdhoOsLVSrYtnWYhhVCT273vDol+ dBVT4FE+o1QwT1ruYLd7R1mQvysQOxtq7ZU5oYsLW8LlShzkUavLzqsWbGOh+BZL1G5k ++qyAxx/3UNL5xtrtJc9KWmO6P1lSG7Ale3QxitwpHLX5oI111LOQf9tDegt9sV87dX6 jNSMxoq4jWdYOnrmygrvklhztlV87mKbq5pZjdG5pLo0En23qmL2tiOUhYiTi/12OlbA nj2Q== X-Forwarded-Encrypted: i=1; AKwUvByGKGCOKFMyvwfScbNSCO2d6dkLcXYnUDQhBuHfZjvgZW4fL574Z+9pFjcm+Z79mjDtKo7+H09KMfkM@vger.kernel.org X-Gm-Message-State: AFq9FYLsbCPDrFanqNoZoUQ5oGJO0ihI8m7I+k94u+xyrgsfGlIwHQZ2 0PtH2z0+5+pXE5RDQ1lX1jN3F9mUXrZFZvA6WkVk3h8N2wBm/mEclipc X-Gm-Gg: AYBFou0vTmx4H3ydafW/iqBohF1wUQQLVpeBdTx1JdEa438NRh/Vz1VC7BM+qlQ95DS 0PKtZf3BnY1T+9r52hZ4v7oNlkEt1HLQ151+q2GEW0YqEdV5j2SQe6ZkCwQeZweghzdppaTT2pu Hi8flZ1R03hPU3zoX8GxgCl88vsyR30/fJp0UI2hQAg5KAWGdIPlfrSfskfeBhOWOOHORfqULTc d3VlW2PN0tkBL+4otKMx4R1+AyRLZ21Fow9yB/d/gIMlO/3Nb1eCegfrNg40c2KTgnqEwlc39j6 F2P3p23We8Qb4TGLYaqrTjTLs0igNLL5jeERHwAmDt3lXz2WeivxDxNsRzp4G2vdC49/66KffRj JdFbeUv7KLLXZbBNJSJG/flP8OwUeRVSTbN/ML1A7SIIxuQRN1xYaeYGRt8ztgDrR9ixX6rvY81 fORy7CRUw4AyVCYpRPZm+wn2jBr+3Me712NoiFv8FSm+AkkbB92cGaS5LKoGgWLLBwpMfc9v0M8 SpU72+Np73gVfa0rpIv1lsgeDitUOy6YklZq7h4yPO2Nw== X-Received: by 2002:a05:6000:178e:b0:48c:5358:f999 with SMTP id ffacd0b85a97d-48c7289d900mr2748455f8f.37.1791361589094; Wed, 07 Oct 2026 01:26:29 -0700 (PDT) Received: from threads.localdomain ([84.70.176.222]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48c71d3b502sm4251370f8f.52.2026.10.07.01.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2026 01:26:28 -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 Subject: [RFC PATCH v2 0/7] Add ethernet support for the Amlogic T7 Date: Wed, 7 Oct 2026 09:26:20 +0100 Message-ID: <20261007082627.63807-1-tanure@linux.com> X-Mailer: git-send-email 2.56.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The T7 pairs a Synopsys gigabit MAC with the same glue registers the G12A has, but nothing described it. This adds the binding, the driver support and the device tree nodes, and enables the port on the Khadas VIM4. Unlike the G12A, the controller reaches DRAM through a pipeline stage with a gate of its own, sys_ampipe_eth. Nothing else claims it, so clk_disable_unused switches it off and transfers stop. v2 changes the RGMII delays, after review. phy-mode describes the board, not which chip adds the delay, so this board is rgmii-id. dwmac-meson8b did the opposite, and ignored the *-internal-delay-ps properties. Patch 1 fixes that. The VIM4 needs it because the RTL8211F transmit delay does not work here. Boards declaring neither property are unaffected. Tested on next-20261002 with "clk: meson: t7: keep the memory fabric clocks running" (clk-meson-next) on top, needed before any DMA on this SoC works: 935Mbit/s both ways for 30s, no CRC error in 2.59M frames. Overlaps with Xianwei Zhao's "[PATCH v2 0/3] t7: add some nodes for Amlogc t7.", which defines amlogic,t7-dwmac with the axg fallback and three clocks. My board reports Synopsys ID 0x51, DWMAC_CORE_5_10, and does not survive the clock sweep without the pipeline gate. I will drop or rebase whatever overlaps once we agree. Patch 2 is the oneOf rewrite Conor asked for there. Changes since v1: - new patch 1: honour tx-internal-delay-ps and rx-internal-delay-ps in the rgmii-*id modes, and pass the PHY whatever delay is left over - vim4: phy-mode rgmii -> rgmii-id, and amlogic,tx-delay-ns plus rx-internal-delay-ps replaced by tx-internal-delay-ps = <2000>. Neil's Reviewed-by dropped from this one, the change is not cosmetic Lucas Tanure (7): net: stmmac: dwmac-meson8b: let the controller apply the RGMII delays dt-bindings: net: amlogic,meson-dwmac: list the compatible combinations dt-bindings: net: amlogic,meson-dwmac: add amlogic,t7-dwmac net: stmmac: dwmac-meson8b: add support for the Amlogic T7 arm64: dts: amlogic: t7: add the ethernet pinctrl nodes arm64: dts: amlogic: t7: add the ethernet controller arm64: dts: amlogic: t7: khadas-vim4: enable the ethernet port .../bindings/net/amlogic,meson-dwmac.yaml | 77 ++++++++++++---- .../amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 22 +++++ arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 87 +++++++++++++++++++ .../ethernet/stmicro/stmmac/dwmac-meson8b.c | 65 +++++++++++++- 4 files changed, 234 insertions(+), 17 deletions(-) -- 2.56.0