Article View: linux.kernel.netdev
Article #6606[PATCH v4 7/7] arm64: dts: amlogic: t7: khadas-vim4: enable the ethernet port
From: Lucas Tanure
Date: Thu, 22 Oct 2026 20:06
Date: Thu, 22 Oct 2026 20:06
57 lines
10853 bytes
10853 bytes
The board carries a Realtek RTL8211F gigabit PHY on the external
management bus, connected to the MAC over RGMII.
Enable the controller, hand it the ethernet pins and point it at the
PHY. RGMII needs a delay on each of its two clocks. The board traces
add none, so the PHY adds both, which is what rgmii-id asks of it.
The PHY interrupt output is wired to GPIOH_6, so link changes are
reported instead of polled. The PHY reset is an RC network on the
board, not a SoC pin, so there is no reset line to describe.
Assisted-by: LLM
Signed-off-by: Lucas Tanure <tanure@linux.com>
---
.../amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
index 0fa83362b417..4914b0dff8a8 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
+++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
@@ -14,6 +14,7 @@ / {
compatible = "khadas,vim4", "amlogic,a311d2", "amlogic,t7";
aliases {
+ ethernet0 = ðmac;
serial0 = &uart_a;
mmc0 = &sd_emmc_c;
mmc1 = &sd_emmc_b;
@@ -256,6 +257,24 @@ xtal: xtal-clk {
};
};
+ðmac {
+ status = "okay";
+ pinctrl-0 = <ð_pins>, <ð_rgmii_pins>;
+ pinctrl-names = "default";
+ phy-mode = "rgmii-id";
+ phy-handle = <&external_phy>;
+};
+
+&ext_mdio {
+ external_phy: ethernet-phy@0 {
+ /* Realtek RTL8211FD-CG */
+ reg = <0>;
+
+ interrupt-parent = <&gpio_intc>;
+ interrupts = <GPIOH_6 IRQ_TYPE_LEVEL_LOW>;
+ };
+};
+
&i2c_m_ao_a {
status = "okay";
pinctrl-0 = <&i2c0_ao_d_pins>;
--
2.56.0
Technical Details
Message-ID:
<20261022200640.3101932-8-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-350800-linux-kernel-netdev=dewy.ruReferences:
<20261022200640.3101932-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-350800-linux-kernel-netdev=dewy.ru
From: tanure@linux.com (Lucas Tanure)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v4 7/7] arm64: dts: amlogic: t7: khadas-vim4: enable the ethernet port
Date: Thu, 22 Oct 2026 21:06:40 +0100
Organization: Usenet Network
Message-ID: <20261022200640.3101932-8-tanure@linux.com>
References: <20261022200640.3101932-1-tanure@linux.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="313184"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Nbd/MxBoAfg6VdkufGETeq43uRo= sha256:GFAYozYAa8FA8P7F1gtQnvjlq8AkFWNrPP7wYIrjGpM=
sha1:WXFMh4WQvc7R0znulhkQI6H5utY= sha256:6Wrmk/OBzFOgLo+kWDhys3q2apOlMAWtF2KYp0VG7mc=
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 33EB6111369; Thu, 22 Oct 2026 23:12:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.85
X-Spam-Status: No, score=-1.85 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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 O4k_gU-Ae3L9;
Thu, 22 Oct 2026 23:12:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350800-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 7C652111141; Thu, 22 Oct 2026 23:12:17 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id AF2433AD29; Thu, 22 Oct 2026 20:07:29 +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=1792699621;
b=jCZGJ3yh3rZ07jHuk1m0ePFVSnCRvXH7AUge2NnA6PTrdF0DpQ42Kl/BOtSmkBeVhIYj
q4sQH3P5a5SrUTy4QffQ3nkDcFwdw06+uqyfQ6GuHmofYf3POPXDipdJ/T1rogqMaWTYe
T9xzfyVTLc6hBjvgABr+STVyrasxzB617P5wXkfFjhcVaW4Du0nFPaENUIaBDND3m5LBJ
cAD87vvRpO1V/M/F+Ae7hM7dPOgEGJAkQ5y8dL+jp3JrP/Uoq69INZtdMGgdU+6Jyqfle
7vl+cfv44LX4YyNnvILPXpkznoBwMD4gR+6EV87gkjcPgD1bEp9/JQ7NfJQT1KMfd0g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792699621;
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=B88mpadYYWmyEssRGoyIfGe+/tgPvAtSdH5NBRIaaYg=;
b=SYo7FakSeQWqz2MiGe9q1uP1Gzd6zawUWZuoODjm2McwlDL3nOCd7XTBxnLNz2R2tju3
FC6dCxbq4D+Kf/c8OMjNPdld7Ur/wAYLdvoEkGrpR2Xbpo6oeBQI/NacN2vCR2c9hPUnu
VJroz7giCdzmwx7mOqscx4ONIgs4HHthXguk4g3p1GWSkl75covjFAphXRZEvQhNY51XE
PzLRTHwHaOmKu7QVz2pnvR/N7jKAwrfUy6xWsWN16xigosdFAsDF+YSifVqkpW+k90p4t
8XlbT2kFmgLVpfZi1vPCPyYuHAD3vYWd9v8fJYs4gRl5RQwjPFUbE7S5PTS3NMJ954Q==
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 7029C60A2625;
Thu, 22 Oct 2026 20:07:01 +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=1792699615;
b=JNTAE+u0F1hNN8bAhsMK7xnKYq+TCriCB/QBuHWsacjtpMePhMIl93eFFd8nAbblP3cZ
0BnhQ5g9tY9JmFYjVEc2zO1k8cktKZHhCqHbaZojHBNxD0od2s7c+geMA6FzWC0chENK7
xhu7ARqlb0ZGl3YhpzDRKHi7eOJdZ8G4qB/oLob6AoGzlk5WzH7pOV/KWSfzWWdffzKi0
HaEhDzmVf2rQ1EDHlwUypy0Yn7XKET3Ht7V+0ktkz9qf++pSOpI29t+NM4rEfdYgmXeBP
zyNrgyhRVXGXJzT2WOkqnV74MKhmZFIspoNxsPgt/Bikl2Q8LBzMUlxDL2bmoPUakBA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792699615;
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=B88mpadYYWmyEssRGoyIfGe+/tgPvAtSdH5NBRIaaYg=;
b=tsldIwIr8IhR9p6luoSae9W9H73ffVNhvTeVzSkKclyB9NjexKjSlGsgkNAszr/n46FT
8c7sYr7o/EGWZZ30lZonni7eQkyBUmkbEAZBbPhKtL5M4m/UJypjFZ0Ph4t1Pn9a5HLv9
aRa5Wf7RaGtEKOcpZz5WcV7czLuDKJvF8hCLMwDr+JBHr7vll9AO8ihXvmHWE5OFakKbv
TPhC+T+LKasa6fxbKjId9A6nRZUo7MQyc9kDJzxH81rlL5iDciDCiO6ctPq1rY9HqqGl5
WKAk37iTV1OwqLi2QaKQo709NHszkNfcePn18ju27oXYn+MDTncJGZckua/FMHpGBKg==
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 069FE60A3838
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 20:06:54 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 069FE60A3838
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-4a1ec92f655so1324185e9.0
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 13:06:54 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792699613; x=1793304413;
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=B88mpadYYWmyEssRGoyIfGe+/tgPvAtSdH5NBRIaaYg=;
b=K1ghoDVnVGjbW+ecV7koEH8Cpvz6JxHfu43zW/pzHL15sfDUVmO/p4PvN4oT8fSPRq
JWU6lXR+25h5mx8aVgFfos2zVlqemQps+VxAMuqPA2GVF73T2Kz6I4KiGh5YcsPmbXmK
zrmlMptp6Du22id0mZ029Y/9Jgi8FXcpy6g0S1My2z7pIMOZjFhQ5cTOjsVuBsR5DuwL
vEptHW7prQZqaEGVdaQ75QZO034gs0HwEACVOjfj4Ho461MwP27reyG7jEDqz0vKhI/H
Y4aTCieufBh6+cuQqUiv/4kyqCc5JwumGmSBYO1qUFcPQ1x3akWLVHvRCg9UFWSwLHRK
U02A==
X-Gm-Message-State: AFq9FYJTB/ImIFJ9T2yfLN/bAz3xOK3rY6GPWyIFqJNidqSsVfvd2MVw
Csy8CKTiooIvgXBcO+y+eTZeLWb8WMg/A2PazLEFrb2BJCfphoym8xov
X-Gm-Gg: AYBFou2LN25pbwYKAjGnAvr9cQOGswD67pdir5/4OyWCMK86bUwKfIjva0O+rU/vZKn
oDtI4MJbTHtpqxaVBsWOQPOFBl93ZdVV9Vr/6RWLhE81yHadb/eHa2DxZ4Cto3Oequ8UqpHqu8n
nUUVNej4tyYCglstbl0lPAmygpcY9e3DkW7ETcM+LurVE9rDiR/WSz66r9ITlYAB+JaE7/DHHTo
tx4MWD8R8HnvOUy4489d2gdTInslD/nzsrAakOnp+Pt5UAo0FN3+kaK7UCFOviR8/u+bK28Sh1/
BM7qY5ZKzEIPxrgREosIVUfrx93EUTVosow4G/b3XZOXd+cNhAQ9NCGN4iFPFO4wDTbYOuR9sqd
s2P950/fgWvD2oMYsnxM4WOe9fW9J6R8Rrv27NoRtTUeL08bNndss33A8t/Nc77DAHQrqp8J25z
CgmbhrroRxc608sh5YDyul66XGn8XxgKnoANi1VYshoPEQ7BgAJ9wqBDClmCt7h6aQ9f6nGNSL4
j0MQvFn8vD8QnWeZ39C5/iWT1cs94YB8hkb1UW1AFcb9DA1aWG3Qf02HiYTvG1A6GXG56XGp1Q9
Fo7oyop39247yEg=
X-Received: by 2002:a05:600c:3b0a:b0:4a0:20b4:ba93 with SMTP id 5b1f17b1804b1-4a211c869d9mr2350165e9.16.1792699613390;
Thu, 22 Oct 2026 13:06:53 -0700 (PDT)
X-Received: from threads.localdomain ([81.79.62.202])
by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a2123a1797sm35965e9.1.2026.10.22.13.06.52
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 22 Oct 2026 13:06:52 -0700 (PDT)
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: <20261022200640.3101932-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