Article View: linux.kernel.netdev
Article #6559Re: [PATCH v3 8/8] dt-bindings: net: ethernet-controller: tabulate who adds the RGMII delays
From: Lucas Tanure
Date: Thu, 22 Oct 2026 17:49
Date: Thu, 22 Oct 2026 17:49
59 lines
13161 bytes
13161 bytes
On 12/10/2026 20:18, Conor Dooley wrote: > On Sat, Oct 10, 2026 at 11:59:00AM +0100, Lucas Tanure wrote: >> The informative section explains in prose how phy-mode, the delay >> properties in the MAC node and the mode handed to the PHY fit together, >> and says itself that developers often get this wrong. A reader has to >> work through several paragraphs before answering the one question they >> usually have: for this phy-mode and these properties, which part adds >> which delay. >> >> Add a table that answers it at a glance, with one row for every >> combination the properties allow. >> >> Assisted-by: LLM >> Signed-off-by: Lucas Tanure <tanure@linux.com> > > If the net guys think this is valuable, > Acked-by: Conor Dooley <conor.dooley@microchip.com> > Thanks, but I will drop this patch as is wrong.> (although for something like this, us acking probably ain't needed, > ehh?) > >> --- >> .../bindings/net/ethernet-controller.yaml | 18 ++++++++++++++++++ >> 1 file changed, 18 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml >> index 1bafd687dcb1..bba27a9feb61 100644 >> --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml >> +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml >> @@ -339,6 +339,24 @@ additionalProperties: true >> # has added. Failure to remove the delay will result in a >> # non-functioning link. >> # >> +# Put together, with the two properties in the MAC node, this is who >> +# adds each delay: >> +# >> +# phy-mode tx-internal-delay-ps rx-internal-delay-ps TX delay RX delay >> +# rgmii - - PCB trace PCB trace >> +# rgmii-id - - PHY PHY >> +# rgmii-id present - MAC PHY >> +# rgmii-id - present PHY MAC >> +# rgmii-id present present MAC MAC >> +# rgmii-txid - - PHY PCB trace >> +# rgmii-txid present - MAC PCB trace >> +# rgmii-rxid - - PCB trace PHY >> +# rgmii-rxid - present PCB trace MAC >> +# >> +# A property for a clock the PCB already delays is not in this table. >> +# It is either the fine tuning described next, or a mistake the MAC >> +# should report as a fatal error. >> +# >> # Sometimes there is a need to fine tune the delays. Often the MAC or >> # PHY can perform this fine tuning. In the MAC node, the Device Tree >> # properties 'rx-internal-delay-ps' and 'tx-internal-delay-ps' should >> -- >> 2.56.0 >>
Technical Details
Message-ID:
<a23b3a53-9cdf-4e32-8ca8-a80d927d65e2@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-350735-linux-kernel-netdev=dewy.ruReferences:
<20261010105900.247342-1-tanure@linux.com> <20261010105900.247342-9-tanure@linux.com> <20261012-suds-karaoke-efc4acf056af@spud>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-350735-linux-kernel-netdev=dewy.ru
From: tanure@linux.com (Lucas Tanure)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v3 8/8] dt-bindings: net: ethernet-controller: tabulate
who adds the RGMII delays
Date: Thu, 22 Oct 2026 18:49:32 +0100
Organization: Usenet Network
Message-ID: <a23b3a53-9cdf-4e32-8ca8-a80d927d65e2@linux.com>
References: <20261010105900.247342-1-tanure@linux.com>
<20261010105900.247342-9-tanure@linux.com>
<20261012-suds-karaoke-efc4acf056af@spud>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="283715"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:qtD4WTwGjdd6AZ8rvvz655qbx/8= sha256:gopqW1ImXQqXxJ7iq+rdN4bk+kwQJ1DcU3EGT9HyVss=
sha1:3vBFtLdUUA1DjG2zY3qKof5VgEw= sha256:XuXvJMeGCFdrNOioxzNHOn+pa1pG2NhVdrUras3i17U=
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 B53FE111326; Thu, 22 Oct 2026 20:55:59 +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 l1KTbB6K8mW0;
Thu, 22 Oct 2026 20:55:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350735-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 76E6D11131A; Thu, 22 Oct 2026 20:55:49 +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 2E28636DD7; Thu, 22 Oct 2026 17:49:37 +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=1792691376;
b=uXA2cOHuJuCGS+QskQiOPG4oytMAUl/ymHLtwbSvYRZVG6ukAcbKi1ouRye06KDiZSI3
8b1oKxNJx0QlLMX51sCgvlmTnW2QyQoo56rurwBNnUg9oOZr7MWGSHjejOomS6tCGQH2d
TqHrJOVpDm0Db2SeZZ7Qy2zLW6C/mkimn6e8nFDJChdT+dwd2CoyXCDybvdY/b5p2jeCS
tk8zFgvIoQ+KGgJ/LUDBaiw1aODbuFHnmTXhsIdtZq4sqtDM7yMWYyfm9PtzJpHFPOrSR
zitkoD4U6CNXASkPKxVSqKuyAiTYts2jTCf9fnQMuJHZWw10RDTa5SrsPcgrxMw58Ew==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792691376;
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=HmShLIi0Try9xlFwdP7Bt6IdYlCRVmbmMWtY33HkzA4=;
b=mCrtbSJ7wTR0G1L9fMYepSGRbCTDxJmFg4JFUKMBrhGZrD1PyOmeAAzkNx+wHQNHY/YY
spKvE4G8hzq9HBq3it1wIaYZWnahHV8QaqELiW/LSVspXPvc42/BD7YRDi7fM5mvAwnzw
HpnlNt2iY7qJlhInCgZDmbGzffH8Vst8POUI71EvLO7D5yyCKEtkXXJ/kk3+0soIMC2Fk
s+bUEMtyoeNodI/HHElEWd/djam8ng93sXwq0ZTTTyCv81GrD9NFr0OVPYnq7RwDvwB0U
E/jUZpGth911yin+RVyT3WYmR64VSit3l4WW7yDJYNEge7/XD9tZtk79OAoRhw09hqA==
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 9A9E9606A325;
Thu, 22 Oct 2026 17:49:36 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.44
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1792691376;
b=ZLM3e/Nz3jN5qumWVY9pyYP/EARAMESzwEeSXnYRmFIKgqBxnz/wNxc5wf2mrU9FaNxN
frVXtmdoNksV4uyjjfmc3Xdc6UdImjTpMHoUSN+AkYBVsVUZuqyLdntBB8iPf+TQgWclW
Ngn6LlseHirqfFPkV3qW+FCm/rn+47i13AbWfbndgc8Q3jr5XFlfGynBo+n5avOuBXT3a
CKq4JfSat4aSHb4JYB9CLVHlZ5/fuwepO4HLNxeRG91BuXH5WMF3n71jA3MMp2FgsHUPK
nCK5RK14Q3UHtpLJBJLT8swYG3FEct9UPeGdM9CHbjsmt0W88LmDFqU2Re3dyZwU3Kg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792691376;
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=HmShLIi0Try9xlFwdP7Bt6IdYlCRVmbmMWtY33HkzA4=;
b=WY6ktBljujRguy/qc8YWqsAQDyajxAUKfJf8s20o2l//UO+ae+2FHXWiCHSzYY6x9M0/
Rq/XDniml2FAWQ/Sd7Yvd+lyAuZxS9cD1FNkJ0QjE/5tKvJ6YXF4mF0cG7syoSTZ077ct
4jf4gvwDFvEYYxRUPvYHMGk6xgVtHLSYoveWZepgAUM+7wxoRhlvImNRjt1RuCdFm7GEn
pKvUsTPsfDJg2yg7SUmtCvrjY0biqMnyRerrQirawztWp8A2jf5v2d1dnd+ETzrdk2bAz
vcOvsk8NM6XzTT0oeIg3C4rCVHy4OMpvqMT+BHo/wfrCTvDg/WSGuK93D4p12o2O6hg==
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.44
X-Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44])
(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 9FF6C606A31A
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 17:49:35 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9FF6C606A31A
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-f44.google.com with SMTP id 5b1f17b1804b1-4a1e34ecb02so516375e9.2
for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 10:49:35 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792691374; x=1793296174;
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=HmShLIi0Try9xlFwdP7Bt6IdYlCRVmbmMWtY33HkzA4=;
b=N/b9eAmj6wiy3WSlBU8UNHT9dJjTXsK/vULgjBeXXOMGjvjz8Q8VETHJZ2G29l+aOO
rHQUv4nZYGAxDip7Cafk0ipgLlUftObvnBT54zotGJJkK7O6ran/5kqJEQg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
X-Received: by 2002:a05:600c:4684:b0:4a1:d36f:1ba0 with SMTP id 5b1f17b1804b1-4a1fdd74b6cmr122177475e9.35.1792691373949;
Thu, 22 Oct 2026 10:49:33 -0700 (PDT)
X-Received: from [192.168.1.135] ([81.79.62.202])
by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a21047b2absm13451355e9.13.2026.10.22.10.49.32
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Thu, 22 Oct 2026 10:49:33 -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>,
Martin Blumenstingl <martin.blumenstingl@googlemail.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: <20261012-suds-karaoke-efc4acf056af@spud>