Article View: linux.kernel.netdev
Article #20234[PATCH v8 0/4] Add ethernet support for the Amlogic T7
From: Lucas Tanure
Date: Sat, 21 Nov 2026 21:30
Date: Sat, 21 Nov 2026 21:30
106 lines
13890 bytes
13890 bytes
Patches 1 to 4 of v7, the bindings and the driver, are in net-next: 2297f88ce0b8 dt-bindings: net: amlogic,meson-dwmac: list the compatible combinations 18029931478b dt-bindings: net: add amlogic,t7-dwmac c4c851a3325e net: stmmac: dwmac-meson8b: add support for the Amlogic T7 4fdc7da7e13d net: stmmac: dwmac-meson8b: follow the generic RGMII delay rules on the T7 This version carries the rest: a new binding patch for the MDIO multiplexer, and the three device tree patches. Patch 1 is for netdev, patches 2 to 4 for the Amlogic tree; the device tree patches build without the driver part. The T7 has the same ethernet glue as the G12A. The glue registers sit in a block gated by sys_ethphy, so the controller node lists that clock as "pclk", and the pipeline stage between the controller and the DRAM has a gate of its own, listed as well. The MDIO multiplexer gets a T7 compatible with the G12A one as fallback. The VIM4 is plain rgmii-id, with the PHY at the address its pins strap. Tested on v7.4-rc2 on the Khadas VIM4 with the PHY at address 1: 941/944Mbit/s with iperf3, no error. A scan of the bus shows the PHY at 0 and at 1 and nothing else. Overlaps with Xianwei Zhao's "[PATCH v2 0/3] t7: add some nodes for Amlogc t7."; I will drop or rebase whatever overlaps once we agree. Changes since v7: - patches 1 to 4 of v7 are in net-next and are not resent; the numbers below are the new ones - new patch 1: the MDIO multiplexer binding gets "amlogic,t7-mdio-mux" with the G12A compatible as fallback, and patch 3 uses it in the multiplexer node (Martin) - patch 4: the VIM4 PHY node uses address 1, where the PHY is strapped; address 0 only worked through the RTL8211F broadcast address (Martin) - patch 2: Martin's Reviewed-by Changes since v6: - no Assisted-by trailer (Krzysztof) - patch 2: the T7 gets a binding file of its own (Rob, Sashiko); the pclk description names the glue registers (Krzysztof); rx-internal-delay-ps as constraints, default 0, maximum 3000, multipleOf 200 (Rob); tx-internal-delay-ps stays false, the meta-schema refuses "not" on a top-level property, so the reason is a comment above it (Rob); "snps,dwmac" dropped from the compatible list (Rob) - patch 6: "snps,dwmac" dropped from the node (Rob) - patch 4: Andrew's Reviewed-by Changes since v5: - patch 2: the T7 block follows the Meson8b..G12A block instead of splitting it in two; default: 0 for rx-internal-delay-ps on the T7 (Sashiko). The explicit false lines stay, as asked in review. Changes since v4: - patch 4: the old delay code is left untouched; the T7 only gets a callback of its own, and the probe parsing it shares validates the RX value (Andrew); no NULL check on the callback (Martin) - 0 accepted for rx-internal-delay-ps, the T7 joins the G12A list (Andrew) - comment on the deprecated vendor delay properties (Andrew) - the MDIO mux and the on-chip PHY bus start disabled in the dtsi; the VIM4 enables the mux (Sashiko) Changes since v3: - phy-mode untouched, the PHY adds the 2ns, rx-internal-delay-ps is tuning only, tx-internal-delay-ps not valid for the T7 (Andrew) - 0 dropped from rx-internal-delay-ps (Martin); vendor delay properties explicitly false for the T7 (Andrew) - init_delays callback; patch 4 renamed (Martin, Andrew) - VIM4 without tx-internal-delay-ps, the PHY TX delay works (Martin) - Meson8m2 moved to the dwmac-3.70a list; its boards warn in dtbs_check until Martin's dtsi patch lands (Martin, Conor) - the delay table in ethernet-controller.yaml dropped - Martin's Reviewed-by on patch 3 Changes since v2: - T7-only delay path (Andrew), PHY mode from phy_fix_phy_mode_for_mac_delays() (Maxime) - tx-internal-delay-ps checked against the hardware values (Sashiko) - vendor delay properties not valid for the T7 (Neil, Andrew) - no max-speed on either PHY (Andrew); VIM4 PHY interrupt on GPIOH_6 (Sashiko) - the T7 node owns sys_ethphy as "pclk" - no longer RFC; Conor's Ack dropped from patch 2 and Neil's R-b from patch 6 Changes since v1: - the driver honours the generic delay properties; VIM4 moved to rgmii-id with tx-internal-delay-ps = <2000>, Neil's R-b dropped Lucas Tanure (4): dt-bindings: net: amlogic,g12a-mdio-mux: add the T7 compatible 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,g12a-mdio-mux.yaml | 6 +- .../amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 23 +++++ arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 88 +++++++++++++++++++ 3 files changed, 116 insertions(+), 1 deletion(-) base-commit: 7e1392a42ea288d70a266f6553fe06f57f8647ea -- 2.56.1
Technical Details
Message-ID:
<20261121213102.143130-1-tanure@linux.com>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368467-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368467-linux-kernel-netdev=dewy.ru
From: tanure@linux.com (Lucas Tanure)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v8 0/4] Add ethernet support for the Amlogic T7
Date: Sat, 21 Nov 2026 21:30:58 +0000
Organization: Usenet Network
Message-ID: <20261121213102.143130-1-tanure@linux.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3498544"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:eIRy4DzNvimDGnVfWqdHLkebL0g= sha256:7Kuu+Bm2dxPJmNUR96st/yKJFfEaIpWCg5sFivfrim4=
sha1:+yEUyC7Ud4anc07CexqpnwC6AtY= sha256:eziydGrIHH76i73PW4MRG5RgchrkDkjgLF0gU00EDpo=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 381EF115BF6; Sun, 22 Nov 2026 00:31:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id bB93w--y84Yn;
Sun, 22 Nov 2026 00:31:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368467-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 23060115BAE; Sun, 22 Nov 2026 00:31:14 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id E671934B3E; Sat, 21 Nov 2026 21:31:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795296667;
b=rgMPyhxNggCqJOMlzVQ2JwGxhIQaUb8rdRXmNYs1/w6ZJTtB4rfBdveBisQakYi6f0rU
s1AMRu2tB4Q2WQ0xcwl2aMMkqrXPzab7639Dni6FkOBUSIvBcPFGFvVnAqjLXntB84hGo
ezy9J1gzLmXK7vjYKszWGTDktMNBmw619T7MzbImGiygs12OWxX/FfcQjKGK26IQsIp5E
NoLH+g1KAoNl7s6k0R007f+zuH06C39RZK4YE3Qv6QBt5o54z/2K8g9KeueORErhIN4Sj
o1pF/gkbmEhLfp7aHbGg0x0kzXMsXe9EJ+a+si/Wo+JkLqjxLJzobtdQ1JE7WmhuUNQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795296667;
h=X-Original-To:Received:DMARC-Filter:Received:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=C93fQcPXxnOGbGKaXQAkMtOoh58jzuHpLH1rCb798RU=;
b=GJ1kZW5Yhy6rnci2ldIbwRfsW53V/+hs0r4AFFiRyD9UH8/eHwcnHkC8iy8K1dHIhW1k
xmtVOKiMmanyUkO58ugRO49O6UTylEmUpSDddGkVyY9fniTkOft/fEdGeQWhVikyORas1
0w9/nO0H8w5Myz7SX9nLb/zamIkni+peUSeScu0S/JB/kn8Z1ihuHBERq978v5L1/Ob7Q
wYLOVzAE3nOX6txOy3NmN1cVgY8lbwJygXWso1THL7sqgpdr6nD3ebAudkZ1PCGKSLkpw
B8ii7wmz+WM/OGC+JC6q1w038ZBvdnfV4uEGPJAsTp6DqpML8cJvCvYUO6FuZa7ha1g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=fail header.from=linux.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 29505606A33F;
Sat, 21 Nov 2026 21:31:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.45
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795296666;
b=AOgVCXUBjdO+PyRGpEOGNSynY624UiSoVD9WtVYeOd43iyzMZM5l3uYqu+9EYp2AcpUM
sRwmtUCOvhPcBezNa3T8YW2AYcM1ZTb+zTtFVbqjLjWmMxjRaqWWT2kbk88hbDQaHk6ns
vRLRT5emSu9vd76VN2EqHR4UGSu/Fpxj7RV0b/TXSLG+h+ZqCyScHCuvdLaUYN0cBXZvl
5qceIGbz0EiE93Rd52HKZmgmvC1Y3OlFIRk075J4SxKWW6RZEpfJct79uoca2uk6B+Sc/
ZuY3VoGcFUaIxw+aW1DcGXauFB72b+xQyCmo/qEUx7s6ZFSAMXJ8jL31q4CgdSpiP1Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795296666;
h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-ID:
X-Mailer:MIME-Version:Content-Transfer-Encoding;
bh=C93fQcPXxnOGbGKaXQAkMtOoh58jzuHpLH1rCb798RU=;
b=LSrYJ1iqxckVyVFwB99bSWRTaei/dFYEVPU9C+3QKupu57VvSG0KsVGaLJNInFgUJ14x
ZDFYfAiiCdl1Ts2WwheAABNBAASAhyVzZDj/ZFPQYV9KD6qt3rloMf7wvXLtotmTjSDZP
vLecQ6czQ8dvMHZIOVf8/Rj6cZd009DJnEjQ2VAwXbzvUlpylEv3hDhEiaVdafRZtWOLI
bzUk4byn7pHJPo5ivn5KrcBphFaNbv+ie6AMbU7Zpsf9kJ4YPksV24ylJ7ioH/OvIk/Bs
0z34PHYJs6/ePtADal5L62RsYl3X78J1Bm4p0jxoxzf7/cXOJipAIk700x/U1VNiAjg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=fail header.from=linux.com;
spf=pass smtp.mailfrom=gmail.com;
arc=none smtp.remote-ip=209.85.221.45
X-Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45])
(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 41DFB606A335
for <netdev@vger.kernel.org>; Sat, 21 Nov 2026 21:31:06 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 41DFB606A335
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-48dfc0421d9so1981832f8f.1
for <netdev@vger.kernel.org>; Sat, 21 Nov 2026 13:31:06 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795296665; x=1795901465;
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=C93fQcPXxnOGbGKaXQAkMtOoh58jzuHpLH1rCb798RU=;
b=OjAJazRqe8OFLOmsknZDiGRaPhpkJyGIN0S+ac7WBAj3JJdH0IPUioHerTlCMi7/co
cJ/m5PKz19fh+GCV2uBsYVe5CjNbn/E8AVbAMJaTQevo/bBksUY67pgDH11ND+gEC+Zl
kYiiQIo0/3QN83+6PCTk95ePzsvXvMYclOGm/G1ZIb9kCFmlVM6gdjrDpJNDgx5f8h65
ncFfSpHmAs8POpQhj7Kl2KCG5YaUXIixCp0V9Y2q068yWQSjYuNx4YxjQjFs4qTscZTa
ZyBizDyH5kL1+O+YYg78r/yWaMCgsdPjbhIAq2abxpN4/lH8dSLOXbPhT5ct9fOMxx6f
z1MA==
X-Gm-Message-State: APuU4Z922Qx2wvgg1r1abChKgu2+CI2RvBVfGYFH6tD0z1gmvkgWx6o/
pZirrQ7y2Jsd8pHHubipofL7zwFlQpDHUMoOoGCWMaCG6LmoZL9umCfp
X-Gm-Gg: AZFdTZcCJWc4eAS8Jn/U1bA6SJf/ANbUQOn2HSf/BQWiI7AZV8Du1UaM0equF+I+laR
Inuq7pTPHlGOD9LyDiH/H3CJWgfanbuJOlWukGhvYpMeE+f8DyBhB6aCrYunhp0lYjLkbhDLo/C
woAhtwBlCS5PPaBeEbT3+luneTB+dGCbKki925OIUZ/sZpWGVkpookQZAqtWXhQuyzZJT0xV7H+
NCFckyt9OEDMBYTItYTorh6MNrm3DIhp1XRC0E9hRvaNXm3HOZovMIlkBFRyMQkj6ns5uLYhK6F
BCYEw1xaaZRdOaDIVPh3m9QzfCvFkXy1/33mfhgXztKs+yjrQGny5YOE4z4n15/TSuMsEwzg2JN
Bm3gR5nyqoTxLDR3ONADaWMmDC5uusxOkAkQPTo7Iqk46D342PRfO7w961Ek4zqA4xrvMh1uydc
5f+OO8X53EsaH8RBtwAjDkyJxrz3w5t8tP41NTXlwJx08B7XqjACEQk0hhUpN1od9N2L2KCTkp1
qs6B8YnfKkQYO3nH/X5REWmWRZ2OGbo6veVuhJXM2eC/5PlmxVWERp5tPHGN8INNIWrPwTBrDAF
pPqDIRi7edFGsWbsG1Z8Zms49wWSha9MNc6gFx4DvHeRLI1/s+WHei8RDmUgjqivB89mPbPCF/J
w1iy96Pih+LxxPMitkYMvAi4=
X-Received: by 2002:a05:600c:5246:b0:4bb:60ba:49e0 with SMTP id 5b1f17b1804b1-4bb88930707mr167527095e9.26.1795296664478;
Sat, 21 Nov 2026 13:31:04 -0800 (PST)
X-Received: from threads.localdomain ([84.70.136.3])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6a67fec7sm12445954f8f.26.2026.11.21.13.31.02
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 21 Nov 2026 13:31:03 -0800 (PST)
X-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
X-Mailer: git-send-email 2.56.1
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list