Article View: linux.kernel.netdev
Article #10574[PATCH v5 6/7] arm64: dts: amlogic: t7: add the ethernet controller
From: Lucas Tanure
Date: Tue, 03 Nov 2026 16:37
Date: Tue, 03 Nov 2026 16:37
102 lines
12553 bytes
12553 bytes
The SoC has a Synopsys gigabit MAC, glue registers for the interface
type and clock timing, and a multiplexer that points the management bus
at the on-chip 100M PHY or the external pins. None of it was described.
The controller reaches memory through a pipeline stage with a gate
nothing else claims, so it is switched off as unused. The
glue registers share a clock with the multiplexer, which probes after
the controller has programmed them: unless the controller holds that
clock, the writes are lost and the port keeps the
bootloader's delays.
The multiplexer and the on-chip PHY bus start disabled: a board enables
the multiplexer with the controller, and the on-chip bus only when it
uses that PHY.
Assisted-by: LLM
Signed-off-by: Lucas Tanure <tanure@linux.com>
---
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 60 +++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
index 7bd53ec16607..f15fd8f6cdd2 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
+++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
@@ -250,6 +250,33 @@ gic: interrupt-controller@fff01000 {
interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
};
+ ethmac: ethernet@fdc00000 {
+ compatible = "amlogic,t7-dwmac",
+ "snps,dwmac-5.10a",
+ "snps,dwmac";
+ reg = <0x0 0xfdc00000 0x0 0x10000>,
+ <0x0 0xfe024000 0x0 0x8>;
+ interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "macirq";
+ clocks = <&clkc_periphs CLKID_SYS_ETH>,
+ <&scmi_clk CLKID_FCLK_DIV2>,
+ <&mpll CLKID_MPLL2>,
+ <&clkc_periphs CLKID_SYS_AMPIPE_ETH>,
+ <&clkc_periphs CLKID_SYS_ETHPHY>;
+ clock-names = "stmmaceth", "clkin0", "clkin1", "pipeline",
+ "pclk";
+ power-domains = <&pwrc PWRC_T7_ETH_ID>;
+ rx-fifo-depth = <4096>;
+ tx-fifo-depth = <2048>;
+ status = "disabled";
+
+ mdio0: mdio {
+ compatible = "snps,dwmac-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+ };
+
apb4: bus@fe000000 {
compatible = "simple-bus";
reg = <0x0 0xfe000000 0x0 0x480000>;
@@ -645,6 +672,39 @@ gpio_intc: interrupt-controller@4080 {
<10 11 12 13 14 15 16 17 18 19 20 21>;
};
+ eth_phy: mdio-multiplexer@28000 {
+ compatible = "amlogic,g12a-mdio-mux";
+ reg = <0x0 0x28000 0x0 0xa4>;
+ clocks = <&clkc_periphs CLKID_SYS_ETHPHY>,
+ <&xtal>,
+ <&scmi_clk CLKID_FCLK_50M>;
+ clock-names = "pclk", "clkin0", "clkin1";
+ mdio-parent-bus = <&mdio0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+
+ ext_mdio: mdio@0 {
+ reg = <0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
+ int_mdio: mdio@1 {
+ reg = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+
+ internal_ephy: ethernet-phy@8 {
+ compatible = "ethernet-phy-id0180.3301",
+ "ethernet-phy-ieee802.3-c22";
+ interrupts = <GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <8>;
+ };
+ };
+ };
+
uart_a: serial@78000 {
compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart";
reg = <0x0 0x78000 0x0 0x18>;
--
2.56.0
Technical Details
Message-ID:
<20261103163715.385394-7-tanure@linux.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355807-linux-kernel-netdev=dewy.ruReferences:
<20261103163715.385394-1-tanure@linux.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355807-linux-kernel-netdev=dewy.ru
From: tanure@linux.com (Lucas Tanure)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v5 6/7] arm64: dts: amlogic: t7: add the ethernet controller
Date: Tue, 3 Nov 2026 16:37:14 +0000
Organization: Usenet Network
Message-ID: <20261103163715.385394-7-tanure@linux.com>
References: <20261103163715.385394-1-tanure@linux.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3232626"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:DoxNfqsFG4tPFO0GHpa5ZXgJ9MQ= sha256:HFILbfOsrMqd0C5HrVIwtnho2DCNEAguvPmYkAajEZQ=
sha1:TO94CWVeeIadZ/p/ZtfpbyWmyLU= sha256:O9xU5rghiWGR5zgoBUdA4R7kBOL7htplEAPT9k8pklk=
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 33F671129A7; Tue, 3 Nov 2026 21:36:11 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.851
X-Spam-Status: No, score=-1.851 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, 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 g4dyAxGQ5pA6;
Tue, 3 Nov 2026 21:36:08 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-355807-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id E9F6B11299F; Tue, 3 Nov 2026 21:36:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id 0A9B9E7B3D; Tue, 3 Nov 2026 16:38:19 +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=1793723846;
b=YprP6iulYrtup0eokFk7ppEbGnYvj/rxuuqAlmv5o7rjTFAQGwie3lOqA3TZCO5euBni
g2SDoZZt1zl1vfIsK+/KIveBFlucHwhO1WzAg9ysI7FIQWwWRM5WoVAlhLqtvp8Uc4Bet
4oLY5w78mhMuy8kvAA8MlSkKmzGWd/Mef+qKIx8D2tM4v8Di0ORLq+fcyWZGPucWKDMT4
3mTwNyuXlcaiZy2LYPqKSocOQt7Du+WUnTNmoZXYu0mGuwsm+X4fygAD96FyJ8VuvVIlW
F0m4whspXbf03Jkdb+qez6vP4/OmM53Tuu9nkiWi5geS5R7kQTW9RyeOkhY5GVRyNsQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793723846;
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:In-Reply-To:References:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
bh=paduv/zXRliBqDWBFf1W5OOKpbqC02TK32FfMcPBmKs=;
b=K7Lgcf+A7zMeBtAOUfQY6H7MJOtrZA3mbdAzHFkNJ3lqE49ydUdc198K7+lOVDuk7jYC
cfeTRt6gRq97k9t91S/PsbOIEQlkMMUOJC6BwM9XjFB4rtUeiJZGHkqbmH3nIMSU/KY5i
6jdwzxw1qc5fz+xR230a2QpyOhDWDc3OT3caOM7RAvngCQJ6iAKaRQslzROdydlZIguDi
zz/+Eoy8mL847TlD55enB/xWMsWz28No7RHHEBqzn7kgQMRPEyIyQFol5nT1/Qvwm1NAA
bc3spu90OR2mh4cHHIsoCeXJo11JCqCHc7V9ucRS9z6v/zFb3t9oDD3dxT7bZjVnxOQ==
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 4F2556082BF1;
Tue, 3 Nov 2026 16:37:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.52
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793723845;
b=jKTnII10YbCVACuVep3uwWQE/X3jUs09n2fg7CgvtwPsMlDqQvJwZ/4wGCe0lnxpQrVo
eilLzP2/QODw5+n/HPjs1lWO8qatJm/LZhOpllkXOpZWLCNlFsDapFPJphToqof9VPaF+
hGQ4swpT7OX/pb63TVhm0I1YorfHDorWFc8aX829ZhocGeWQzUwbGjXii3t29GDah1LAz
4+TpCGUUx9HJuO7KIt1O8Uri7mBhN5m81uNAqPgfG5G63ucSgcJvYyhaA+xS9Zbf3mJeu
tIWFDw9ETSMXSkma+nFZNCDJE/nJMvHwNIY4kBTv4XPf3z1GvvOMSPN2WpEnE+QkGhg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793723845;
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:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=paduv/zXRliBqDWBFf1W5OOKpbqC02TK32FfMcPBmKs=;
b=b0A0lILD4Nwe/zKluM9pDDkER1bCGy/I0iMK7M43aXOr5rNWYQGV79ITqPdMorwPQiMy
Os0T0wECV+zV2rWGQGFJFpqsV1NLAUGhKcnKjN3qp8ByEajzmDd08b4kDvaanE1i9bbrF
RUVHf5mMAo27vd+a0+DY67fxwOAl4wQArJKlrU23KWo4XgsYZr0CSIXlf/lpLWL+xHjtk
x3xLpsVYmAMx+VCGDt+J4F4tUIgiF/J3JUZ5aN2KlabSYhCC0xBJ6Hc98BOqBdfWtRFwO
BXrm2WzilvUm7YkC4uRENRNyEHuC8gan/DjwEdFnUKpe7xYcl93aO10p7aldqY1DXXA==
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.128.52
X-Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52])
(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 638DD6082BD2
for <netdev@vger.kernel.org>; Tue, 3 Nov 2026 16:37:25 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 638DD6082BD2
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-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4a4d7ae1ae9so43621575e9.1
for <netdev@vger.kernel.org>; Tue, 03 Nov 2026 08:37:25 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793723844; x=1794328644;
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=paduv/zXRliBqDWBFf1W5OOKpbqC02TK32FfMcPBmKs=;
b=w+ZUAeEHHNDfal++9M9zoNdNu0bxVLMrBhmpYSj6WKWE1ZiWh9yU9hz0f6pzzoLSuN
RBxfKLOLeQKR0uPTQO1fPMU2bYekhIQQwykdVjc+Vkb1URieq1fpVM3K4UQCN4G69nz7
9tXGXNdgZOjtowtjWTIxLXIypRYia1UFRuJztyxPtET69Z12YVf1L8hcTCZV/xsorND5
2940xTX/YS7DAxFXlqfbuCkNj60+Dat/eEHHxrbmt5ATE5bIyzoUVzTNtShR2SGu5Fw7
rghpu1z3n1+uoReXQxcDlLOMmdXMZg/tP36hnChxDzw6fxkAk+Xy7+yex0E8HCAicjd5
q6JA==
X-Gm-Message-State: APuU4Z9/UPBNhihM98leeH2KUF/8O138pdjKtla5WDAZNxCnsC4fqDPC
lXAe5W8MiGaYfVY9/Io0WBUix7WFSgDgmWpQ339I1/MaK/wVO5yQ9j79
X-Gm-Gg: AYBFou0XzFYX4MEFjfKmwaz7WpEvjQR7PCUMNt2bJ6J9pK0yG3+1oRzmBcpmhuk6H5J
3PaxSnymwDaU5y4wXJQtUKoxgTNSGCCKdOHb0vvOrriKra62VflA8RmJJG87Hi0tXortOnB9b8+
dv9vkSZYwNgw2RwZXzMAGF35pu9klsIA22za8c6lpw2OTtfu0nfbE9ydp6tgBKSJD0BHkQDO8uV
34rwYJmcU2NDpMSloIgUk7Z+1/68LZkM8vF2554sNT9LMiLvZ84hlSdiivmVW/GhkzoZShEOPun
GbRhwYrNanzTJ/V0Ncpxznrp07SHCqhm8cBP3wZZX6mBeavCTmrUd91QzTXNXN8oCg3MW1PsOVG
Y789iJx+hDT3SB3r5JU+D4LXexMjg8f/q9FtsifON3OeIy0lNGwjVSTD3zoGVBb6vAzzTxhp+ud
aVu7t8pL+XpYmPbNCJ37Paj/1hIDxEzhtTEFRYXFSPY0q8i5MRFmgSlFUewtCc5bURjQOoqMVPz
p80I/jPS7rAyswvdyA7eOJvynyM3wC7VFfNQhfcV2MMxnhrQzzpPHqkOYvKdAJ3O6SRLiqm3wUT
hiDOPYi4CDWwleXbtYkxlb/E7ciJxuto81XadzOPF5uzsvJfs4vPv6xR9qDzvp+j8oYuYBv/yg/
S9zqQgX85GrcmmdTCmcsQF3E7Rw==
X-Received: by 2002:a05:600c:608d:b0:4a2:1197:1de0 with SMTP id 5b1f17b1804b1-4ac18b7dcdbmr311763505e9.19.1793723843721;
Tue, 03 Nov 2026 08:37:23 -0800 (PST)
X-Received: from threads.localdomain ([90.254.187.36])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e71a4d3e9sm29044772f8f.6.2026.11.03.08.37.22
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 03 Nov 2026 08:37:23 -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.0
X-In-Reply-To: <20261103163715.385394-1-tanure@linux.com>
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