Article View: linux.kernel.netdev
Article #6546Re: [PATCH v3 7/8] arm64: dts: amlogic: t7: khadas-vim4: enable the ethernet port
From: Lucas Tanure
Date: Thu, 22 Oct 2026 17:40
Date: Thu, 22 Oct 2026 17:40
49 lines
12374 bytes
12374 bytes
On 10/10/2026 23:00, Martin Blumenstingl wrote:
> On Sat, Oct 10, 2026 at 12:59 PM Lucas Tanure <tanure@linux.com> wrote:
> [...]
>> RGMII needs a delay on each of its two clocks, and on this board
>> both come from inside the chips, not from the board traces. The PHY
>> adds the one on receive. Its transmit delay does not work here, so the
>> controller adds that one.
> [...]
>> +ðmac {
>> + status = "okay";
>> + pinctrl-0 = <ð_pins>, <ð_rgmii_pins>;
>> + pinctrl-names = "default";
>> + phy-mode = "rgmii-id";
>> + phy-handle = <&external_phy>;
>> + tx-internal-delay-ps = <2000>;
> You're stating that RTL8211F's TX delay doesn't work but not explaining why.
> I haven't come across this behavior before and I'm worried that that's
> an issue with a batch of RTL8211F.
> What if the previous/next batch of RTL8211F will have working TX delay
> again - wouldn't that mean 4ns delay in total unless the RTL8211F
> driver is changed?
Yes, you are right. After I understood I had a missing clock I re-tested
the everything from scratch.
On the T7 the register block with PRG_ETH0/PRG_ETH1 sits behind a clock
gate (the "pclk" clock in patches 2 and 6). My first tests ran before I
knew about that gate: the block ignored every write and PRG_ETH0 kept
the value the bootloader left there, 0x1621. Bit 5 of that value is the
TX clock phase select, 1/4 cycle, which is 2ns at 1Gbit/s. So with
"rgmii-id" the PHY added 2ns and the MAC added another 2ns nobody asked
for, 4ns in total. The CRC errors from that made me believe the PHY TX
delay was not working.
With the clock enabled and a plain "rgmii-id" node, no delay property:
PRG_ETH0 = 0x1601 (TX phase 0), PRG_ETH1 = 0x0
RTL8211F page 0xd08: reg 0x11 = 0x0109 (TX delay on),
reg 0x15 = 0x0019 (RX delay on)
iperf3: 940 Mbit/s board to PC, 943 Mbit/s PC to board, 0 retransmits
0 CRC errors on both ends
v4 drops tx-internal-delay-ps from the VIM4 node and the wrong sentence
from the commit message. The PHY adds both delays, as the generic text
expects.
Thanks
Lucas
Technical Details
Message-ID:
<74840159-62d9-4d6d-a0c3-b079e6e4da6e@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-350723-linux-kernel-netdev=dewy.ruReferences:
<20261010105900.247342-1-tanure@linux.com> <20261010105900.247342-8-tanure@linux.com> <CAFBinCC8iKESoc2zEXJMEmqk0cwWbVap-a2KcAtB7-KFKO9Atg@mail.gmail.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-350723-linux-kernel-netdev=dewy.ru
From: tanure@linux.com (Lucas Tanure)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v3 7/8] arm64: dts: amlogic: t7: khadas-vim4: enable the
ethernet port
Date: Thu, 22 Oct 2026 18:40:51 +0100
Organization: Usenet Network
Message-ID: <74840159-62d9-4d6d-a0c3-b079e6e4da6e@linux.com>
References: <20261010105900.247342-1-tanure@linux.com>
<20261010105900.247342-8-tanure@linux.com>
<CAFBinCC8iKESoc2zEXJMEmqk0cwWbVap-a2KcAtB7-KFKO9Atg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="280146"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:5Uuxggt7WNMKde+Mc4SjvU5PTsU= sha256:sOp/sUsYmSXBJZbR705t4w7VxTmxQQUe0u6Kglh/GtA=
sha1:F3EWSYg8UtlLVS6rV18O0phdQls= sha256:Hz8pl9/IB9YRLI7s8TVBAcbiO8mbpafod7C8YzmBaOY=
Content-Language: en-US
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 342AE111316; Thu, 22 Oct 2026 20:41:18 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.95
X-Spam-Status: No, score=-2.95 tagged_above=-9999 required=6.31
tests=[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 vtxXfTadYPyH;
Thu, 22 Oct 2026 20:41:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-350723-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 3F0F91112F7; Thu, 22 Oct 2026 20:41:10 +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 B599825EEB; Thu, 22 Oct 2026 17:41:04 +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=1792690861;
b=T1yDoh56dXPkXj/U1EMU8voZujlKVmfsdjvpGCG4z7JtNGAK1Xay0sDKZLsi0eiYT61d
GQCMxvOdThniCbq/c4e7zizQ2tdn3O1nBDU9D8nFG2hbCFGBiJKBv/gKKwFzTW9xfzN9F
2v9maORSu/3jSV3NysTVbqjSLbyo+0r53WmxuZSDViQtZbRbFLBx3sMmEancKK11q6GtD
TXSwoyHvricxpghGmrz2MYTzfbRMdLaP5tow/ZRIdBPLTyhQiiQxMWcjkIbWZtufz+Dol
zMUoJURRnc2+0Mkes2wEtdvfBbhSqD9tpWn6wmLiVA/74eVeIfUPGo4CD7FV0cy1ehg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792690861;
h=X-Original-To:Received:DMARC-Filter:Received:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To:
Content-Type:Content-Transfer-Encoding;
bh=lqDNdqh7JWi24rY3vzEqU+LCO6MlMl1qL5MbUIf6AO4=;
b=QwRd2mKMNVzMW/N+qbnw1UK1FhteFPtzaJihYylcYnT6UOW1jPtGWDKIELKT0QxLXJLX
t9CIxRD9/VTb5gI1BcmE3uNnEqAHmwqxX9yoygaiD3YaSixZ9aIEoIl9uRVs4I2Hn11Bn
irN6IpTdmZyyGF/Y+pjHMhQ5g76ifDQ+xan32Dbq1+jw1d49eq0kOyVyNWQorgFivWnAB
mUIrfhG8tSanGpNjEZ2YfE3qLuQyDJ+9nTOmpcCbn3GhI0PjVa/Gj49/QPGnS/l70kIS3
Yis6OmKZIPLJ7qK+NXc0oGRMtol/wXe8AL2gxAfB3gIQpFZS7vuBte9w+kl8Lx7t69w==
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 3A098606A328;
Thu, 22 Oct 2026 17:41:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1792690855;
b=Rf6Z7/CsXQWZ1wN2Zl6ZeWSIM4pzMuH7Rsu9ToW7apaaBkQmGtW4HU+UDvrMq9UNuaHC
z5aiUIuwXYqM/3xoQD0AcoiioeaiOakEOIaLf47/JVjdvnvkbAC9C/VJLa8OXTx88mXAX
ynCiFt+Owj0hOMbOpBrqmHZuKZd2vbJUwK1vh0aLdJI54CKj5gx2UTLGBqymwtzT74sfG
OW3GlmWAN36MaOi9JOYSgnu+hk2SpOljPpz3MS5J6iFYqSDcIHHAH5Ks9couPIp7uiy1A
ZJu6t7ZsyYGjPaTA0YfpoHCy6ukk0jaHIrR/5oWLlT00QepaEaqn1CdNReQexH1iiQQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792690855;
h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-ID:Date:
MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language:
From:In-Reply-To:Content-Type:Content-Transfer-Encoding;
bh=lqDNdqh7JWi24rY3vzEqU+LCO6MlMl1qL5MbUIf6AO4=;
b=LGp8dQLP2ksEhtKVanNcXpYW856G0/c+bv+NBYv2VnDCWSHF/jyAAFtDxU9ckpjCkL0X
799LM69rZSnFILYf219h81r5XbDfDlJzbTqtrnbUsW8YFk1HbYRrEC1aBrgCoZ/TsQVcD
NTFcCJ5u5v1p7xDjwaqqtQi5UZZywuJB1xlr2S7OnINSAUT/91d5FGbdeqsbLfJvq5BPM
8I0qDJQFrbnwqOnklQ8wdrnkXmA3acklcqUjrkYDQaTu6mn8L23SUQ0n2VWBV6P3JCScE
5EH1jRfD1YpfP8jA3MTYmt2J0AfU8gDlLxnlJOeuF7+0Tj7nxuwuneSNju0MnfZvZPQ==
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.43
X-Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43])
(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 33E6E606A31D
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 17:40:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 33E6E606A31D
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-f43.google.com with SMTP id 5b1f17b1804b1-4a1fbd52ab6so555365e9.0
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 10:40:54 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792690853; x=1793295653;
h=content-transfer-encoding:content-type:in-reply-to:from
:content-language:references:cc:to:subject:user-agent:mime-version
:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=lqDNdqh7JWi24rY3vzEqU+LCO6MlMl1qL5MbUIf6AO4=;
b=RJvezFXDVvP2n7lLkAV0GYsgF/W1lnlfyBy8jxOG+aBUi8CaT6aeWahuNQcpS3v3xP
FRhOHeTxr0V84HfvGe0jjx2Y7ilClYr7Cltf9FMuakt3tQfvRSqgTlPO2xH+wyQtMuyC
KiaqMPk4CL7A+0uHaj9JKlH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 with SMTP id 5b1f17b1804b1-4a20a3b7c0emr41739035e9.3.1792690853435;
Thu, 22 Oct 2026 10:40:53 -0700 (PDT)
X-Received: from [192.168.1.135] ([81.79.62.202])
by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a2101cd7cesm14216005e9.0.2026.10.22.10.40.51
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Thu, 22 Oct 2026 10:40:52 -0700 (PDT)
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
X-User-Agent: Mozilla Thunderbird
X-Cc: xianwei.zhao@amlogic.com, Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>, Jerome Brunet <jbrunet@baylibre.com>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>, 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-In-Reply-To: <CAFBinCC8iKESoc2zEXJMEmqk0cwWbVap-a2KcAtB7-KFKO9Atg@mail.gmail.com>