Article View: linux.kernel.netdev
Article #11568[PATCH v6 6/7] arm64: dts: amlogic: t7: add the ethernet controller
From: Lucas Tanure
Date: Thu, 05 Nov 2026 10:03
Date: Thu, 05 Nov 2026 10:03
102 lines
12531 bytes
12531 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:
<20261105100322.37816-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-357199-linux-kernel-netdev=dewy.ruReferences:
<20261105100322.37816-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-357199-linux-kernel-netdev=dewy.ru
From: tanure@linux.com (Lucas Tanure)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v6 6/7] arm64: dts: amlogic: t7: add the ethernet controller
Date: Thu, 5 Nov 2026 10:03:21 +0000
Organization: Usenet Network
Message-ID: <20261105100322.37816-7-tanure@linux.com>
References: <20261105100322.37816-1-tanure@linux.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3608034"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ETxu4RILawBI3ZZolpjkFi0xOmY= sha256:ZqtzJbLv6wBjr6G+ho2iwSn4Bmuh8cvxU3UR+8KcKNs=
sha1:2KbCGgNMrApQTh2wBJF1Cd1UL2U= sha256:sW4hp4yVcCmLbFm4WsxuPaDIdyxKvazyUdtVsvrLuq4=
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 A3680112EFC; Thu, 5 Nov 2026 13:06:29 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.951
X-Spam-Status: No, score=-1.951 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.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 fSRfENjqJRsx;
Thu, 5 Nov 2026 13:06:26 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-357199-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id BE5FF112EF6; Thu, 5 Nov 2026 13:06:23 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 0E81260A6F8; Thu, 5 Nov 2026 10:03:56 +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=1793873015;
b=dsEK26mEJgQAeztfNFMglUJRC5onxFfAByDnQQtNBxqHTlkxetebAXovFGUVUvQ2LmKQ
9Evq8mZmE5lIqqCtN2JZUc6eL9ru7xxC0JUu1MbifzFveLTbxKx4+5bNCgb6gSHm8Y9k7
24d+2Q0ZYhLxVZsj8qOjDa2USBL7cqA7vTWoivtfLZee/6rOylRLep3V+/ih4xdQnsKjH
18UAkVCzRB8uVmOOpy2VU26A8nX10IlRRSH1SCa67ZAMWUPlTgtO1Q51bZKPF1cSVClpy
n4OPg7WFojw8sP6jFxwzTw7jWGqkA+qbz1J46/GjBZX05fkOBZyk12qJ2THO8BXaZzw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793873015;
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=KnbaGAw7wlZLznyLVAe/H3GS49Fstynvhej2gOZKr0hT6BwBTHhdER7bXjrg3qnaPwRH
tOHJRZGB5LifEsFxIRlCngE5klhpXgOb0aD2DdmPoCeHsCAt5vTFYQcGsXkqlWK6PxrGw
ypRocYR5I4iz5c5RuBFjljPmzTalNEST3ntnmjHnUzqCORaPz5qH/+QSJwHWlKhjfCM+4
RBZhWHx1jm75cf2WkscrOmBpz1nUjhnwkziH7cNIapJyQC5MBnp5sl+aT/y51IX2xdiNE
8U38oAFakxwGZEIsChYzW5vMSXeqJiJ3xXy+UuX/nKJe7/b6fUjUiDljNXm2bg5yvhw==
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 B9ABB606EEBB;
Thu, 5 Nov 2026 10:03:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.49
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793873015;
b=UtZuvM+MDz95DQj1SJrxFr3s+LOox7BEe5qlLCyCKCs57pSezjbemz5gsFWFxBsUFiA5
hw40isFIFFD644BaYtekBVtJl/noyRzscZoqoveVW06XJVC2n6q8OajyGCbp2KP+q6AIL
lIWdqiXGgT53pOa/vbNwTascLJcaGmJFsSYe3T+NsAlHjbKx1DWDRovwRbBoO/eMOMjq0
oqvZyYDxKG6ZAjSH9EA5XkE7R9+JB2Mk9qBi0rNI9reBx4t3Fc1OYIomcP+Rrpv2D9iTf
EA2nfAj17+q2cMJLxAIYgjtGfbhXxA5Nl3CT8e2chA3ZqN0E3TsrO7disqmfw798qWg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793873015;
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=a9ICCMBma09rHGIDhL0NY9rmQoNN/eOXqDq7l4cGvqw3asF2SzvxwX9qwHc/uchZuPGg
WzIcf8MuiNH21WQExNdnoRE0t68IZBEcYO4HePuTL/OemhFu9kY8xFkY18+ywTfIdypnX
ahdKX0Z1LmbskD4auWjbrTNSs1q1RIAEiV9KdQ5f0wGuKk1d1qvU/0IjIEryVWuPQ40PH
xQ/H6OmSP3wNAiE4609c5gA/AvjaVtRySct3OHwlINCXUvyW8X3I9EDHwCwhd+jqL5eCM
LMcEC6UCAJce2Ay7NPrXK8voIIEbZMhoYygN/gRIU+3Ge8OSlEhSyvmp2PZeDEj8Y7g==
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.49
X-Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49])
(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 462D0606EEA1
for <netdev@vger.kernel.org>; Thu, 5 Nov 2026 10:03:34 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 462D0606EEA1
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-f49.google.com with SMTP id 5b1f17b1804b1-4ac95761c85so11787775e9.2
for <netdev@vger.kernel.org>; Thu, 05 Nov 2026 02:03:34 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793873013; x=1794477813;
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=RXhwmpC9amxr6suPh77cs0F3s2xNk+Xfy3h/TKc22BpI0OjX1OrfKJt41EqYkXKDjh
Lkp3PN38ALkUOcjTyFNIchF/LmIdOkxuvGashkrzywEHaBkVQ1F0ZNw5GUWAUANmqg/X
XTXLUqCKdkCdl2zvWc0hYYk7ODPvh7hWbtGNf+CsFgfXCjXqfy3knDo9ITqE7+C+2igQ
JEf8WMXnYSIo9DzHQcxm0hAUjBMcyMwynF/OHgBAy4GV5KYOHkzjU9Rlm/RJHHrUmuZ0
xWdv6toTZzP5vXnxAgczV3o6UNqRK+CaqTFhpJNhHlxW1FuZ4VAz6N6CJ9zIi0kdJmRy
iYVQ==
X-Gm-Message-State: APuU4Z9c1UJlGHhlwCd3ayg41+VTNarBu9105aOro7VVqb9ciud0BXlh
QEYVQQUKN71oFoOCMmaIqxxGMnp/rzDFRwLhOy/3SlJ32Zy2sOdSSA/U
X-Gm-Gg: AYBFou1gNO66vR07FMTBnPrN2Cawd4upXPpTNqtzsiMdcRpBjEyX02VoZnoSlgi1sWW
D5Xjf2+rI4Dxf/Vr/nZ2yOh2j4ompy/j2R/TkfkUzFvDeWVyL0ENRWcjRgiShE9gL5dMQ/zgZS8
8IOPASPDYQkQcGRpseZ3E7RHpiaZ8Yv3VXj+ZyTviZxa7KwxBwJ2f0AYugWitDlr5heA/RFzXm0
GoXJcv+TEj/Q/fRPI40LmZz/tXK8S7N8wfaLJkFPSD4YL+aJgsA1pURdyfad94rR6+UXIdGqie/
UoDaxpWSwYwCCfTGxG8BDR84XZxXlfXQa8MNuPvSUfddUc6MafCBISd4r6uk4bGpr+9wqnqstrb
fiu1W6SNNTHfRUVpnQ0Iy3xNSpqeVYjIPdQRPCqBahUvr1QSFDRF0Iii7T5Sok8sLovYN2WwrEl
QEpwHxDAD1fnIOlZ8RWBX+fpKg+Mip+HMAnueEeYDY8TJL/H7sjuC6AIJZtTcgKa+VreJl8hFBG
/aiSk19He15tVY80kTrz+QTok6vvGD3cGwwUWEDjTzSmLioStrZI0EC0d0Eq/UWGu4hk5KGmHZV
8bb1R3Ims2+HES8xxyWh9h0rqXA5ItNFs3+Yl2fZwPX2YaI4v6tj2bl4C9wnVrcmushEZzx4xJs
zgyG9bkQCO2nilDzKwm2VXUNUjkg=
X-Received: by 2002:a05:600c:6095:b0:49e:7c8c:361d with SMTP id 5b1f17b1804b1-4ac182dc30fmr364050625e9.22.1793873012541;
Thu, 05 Nov 2026 02:03:32 -0800 (PST)
X-Received: from threads.localdomain ([90.254.187.36])
by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4b43342773esm53455775e9.4.2026.11.05.02.03.31
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 05 Nov 2026 02:03:32 -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: <20261105100322.37816-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