🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6558

Re: [PATCH v3 8/8] dt-bindings: net: ethernet-controller: tabulate who adds the RGMII delays

#6558
From: Lucas Tanure
Date: Thu, 22 Oct 2026 17:50
67 lines
12528 bytes
On 13/10/2026 08:14, Jerome Brunet wrote:
> On sam. 10 oct. 2026 at 11:59, Lucas Tanure <tanure@linux.com> 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>
>> ---
>>   .../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
>> +#
> 
> That would match how the HW is working on the A733 Allwinner too but I'm
> not entirely sure this is what Andrew had in mind from our previous
> discussion [1]. Adding him to the thread
> 
> [1]: https://lore.kernel.org/linux-sunxi/491f043e-6dc6-4936-a490-31a3362c5b6e@lunn.ch/
> 
>> +# 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
> 
> Acked-by: Jerome Brunet <jbrunet@baylibre.com>
> 

Thanks, But I will drop this as it is wrong.
Lucas

>> -- 
>> 2.56.0
>>
> 
Technical Details
Message-ID: <c9d2b1dd-c733-454a-9281-80787f5c432e@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-350736-linux-kernel-netdev=dewy.ru
References: <20261010105900.247342-1-tanure@linux.com> <20261010105900.247342-9-tanure@linux.com> <1jqzhu9in5.fsf@starbuckisacylon.baylibre.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-350736-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:50:26 +0100
Organization: Usenet Network
Message-ID: <c9d2b1dd-c733-454a-9281-80787f5c432e@linux.com>
References: <20261010105900.247342-1-tanure@linux.com>
 <20261010105900.247342-9-tanure@linux.com>
 <1jqzhu9in5.fsf@starbuckisacylon.baylibre.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="283870"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:vhdYVJ+E6bfe6DrLAnuIYCS8bDI= sha256:TxR6o4U66it824xse/duhTigm24yskUyQNfWu0twi8M=
	sha1:4iSRAMRUXTJMF0H94OlyFGuNhIE= sha256:GWCUvu1IILjUMqdwXldudtpeCkznIsW2Goss/BJl5j8=
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 B6DD9111327; Thu, 22 Oct 2026 20:57:17 +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 8qWTlHJTGNGZ;
	Thu, 22 Oct 2026 20:57:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350736-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 C432511128A; Thu, 22 Oct 2026 20:57:10 +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 7105D3E736; Thu, 22 Oct 2026 17:50:36 +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=1792691436;
	b=pz76UWAQISUSfBsQDeiUxbFZsrLZlWBfXw8bcL5glHHNTax72ingLEHycLMQlWpfpvZs
	 J2Pn7qHqFKqznYhli1RWvHeoex4yv/ki9tDRBofCharjWk0NoiwOaV99IuE6+N2O5rEXK
	 +eaPTB9u8msTLd8ZQKYJ8yraZfbgCB0Or5vfGsvoUpQZkpVKIDdDHCz+qqvBbZN86unvh
	 +riZIwgZc02uYtrrQjIcAyxNa96qLVq2V2/HddyF30cMziwoPyHn8kqWPio29wlwy+yr4
	 ZptmoAXeugr5VT5zo/97qGuKqcHrOMb7iR1jqDkuK1HGC7Jds7uBwUHFBnLhajQRdOQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792691436;
	h=X-Original-To:Received:DMARC-Filter:Received:X-Google-DKIM-Signature:
	 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=Wd3oLS+dcFTXkdvGEDZ+0YYIQNbTTyKN39PEruh5N40=;
	b=wbbuOiUH4wTkFtuyBy8uXKIDptYq8T+0hW43lmYMNZ8V/kEuOl8i+HWPDCCJvoo7brxA
	 pLcegrso9MUUyRaCCaMCRuUtAq4Ds2+bUlvl/y/rhDEx4rT73gtA6BXWCZbTXzRobWcmx
	 Pq1udevwOtWp57sGj/PR+c7EqgiEcNpSpBF8+WCiTMTTDcvrj2Gl+mtBGgMp4Su/umfEs
	 bOm8GMaRgAfHe6iYMYt2+IVH6/0NfsWV7UaoKv4OEa43h3T9EZI2b/OJtiVvkWbAJntMC
	 lxpnE7kPA7X8YIK+W1FCdcBIvMuBAsUGU+zgdKd+I0bZzshvYm2aJEv09obT8D8V17g==
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 1CA2C606A32D;
	Thu, 22 Oct 2026 17:50:36 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.52
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792691430;
	b=HYD9687W7Ag9/EnBjiRMJd9Wyp0op4G9VEH6bEKUC5pYFEe2Lq4ioAKS85NTXg1e4l8G
	 C7R5jHJAEx/hEx0eUTL8st8Er20eLgnpKK9SzwR9FWyQUx+QR0RewlmaUgEVO6XsvAyVS
	 pKPc6FeMr/cdm513EKVXB1FwIn5eN3rJF97NHztRZ+ikhy0eeyb0qVO6yozD5YMxXWdJR
	 fuZyhgtX9athlVz9ONrRYMecQproHyVAHfiiwjFA66a9i2IsAj44OF6pDmUgLLbbOtcmM
	 XjOf95oUCnUHUcqPYNQ/J2hG0ZeOJC6hnkVQ7aeAL6/5q4t0ZUreMvJ3uOiee7VgJfA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792691430;
	h=DMARC-Filter:Received:X-Google-DKIM-Signature: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=Wd3oLS+dcFTXkdvGEDZ+0YYIQNbTTyKN39PEruh5N40=;
	b=Ly23+b6t1LwRvbbHxmsHyGET5zIuKWTZP0Bedm46K3z86CbITlhTuiasOWxUZAXGBMMP
	 AcwDdFyy1Wagzl/p/Ng1pR0LW66lMyOQodZNFT5zkvIW3g0dskv+nf3m+uvMnMB5Ec3Va
	 bP4RSgsLLYIr0kRE1MTpdPxozLaWJVpmW6A3wpI+h3KJWKCqbiaEytcUBTJVV83Mfm4Ia
	 nv4QJsyBqME11Qf107Rm8yrtqYrZn9TeWm/S4BWwQGfSTDzgSbcZv62yLht/PldOF33vq
	 m6mEeOWZTavxFd8PE38pHRy0HZv4jUyj9AX3/uUSUrYxHTS30GfZDi9E8Ca6p45Xq2Q==
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.221.52
X-Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.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 30AD4606A31B
	for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 17:50:30 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 30AD4606A31B
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-wr1-f52.google.com with SMTP id ffacd0b85a97d-48df4e9d2d4so34206f8f.3
        for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 10:50:29 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1792691428; x=1793296228;
        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=Wd3oLS+dcFTXkdvGEDZ+0YYIQNbTTyKN39PEruh5N40=;
        b=PMxJ2VVuS+I336204T5ETkLQOvCvMeBcsMKksQGNCHeFEU6JK8DCZJrnYuzXgA1b2L
         B/5VcYa2ZFd4UACiBcU0Uz4BzZzpoJ7dOOUwqH4Zh9Bt+3swTL+TtwNY+U8axfvbrSK7
         nYIL+UyKwtoalSlDQi2t1Qv9JIZH7TBOx5HpiWTGxdM8cJTbY7tYOwQuwHT3u4QCFD7s
         +cCa35JmVttPtUPsgm3VpCVUi82chaRDMXrHRxNX5R9bztlGI3jZy5aPHnCBdM2+6p7Y
         SE0+kmOP6uWFvuS4Iz7uF7K4v7YE0pZSn1uxgWYYybstogx0brynMSuHW0PUd10tlTCS
         GZ1A==
X-Gm-Message-State: AFq9FYKf6Au78dSmgPk91J1CwutFJO7EHvSJhurgSAvJTokSBtO5vWDk
	O+0C8vqFY8aJPk9/0sBYOJ6Vrxgl0wICvs77FOVMvaRhGRORZJOquLnY
X-Gm-Gg: AYBFou2oj34/Qqel8br4MmzOGhKaRoJZFswE4ogC5laNlOuLaS6fcKtWdxKWqu2/u0/
	4J0a4w3Uiq9PLFITdZEhVjkgYg80+qBkgr4g1ODgiC3d3ce86/1GQCr7TFZvw/ovDCle1WxXPZD
	vEWWlUAfO0oyY3B7gx6krAsfeMV7FxDT4UdpuHBuefAm/a8504HZLSgQANHG/e/b6y+7h3A33p7
	5pqDEZjwREBJWNCVGlne9t8aUa5IKg+oNxNyYUjj5I4/BuFcLdxZWXcECXJAyXEaQNo0LLaFfmk
	RialOFEwSDBXRQ2VQGXOuqo2J1zFebNjZFDjykTK9ss3VF8X565CnBBZWGQg+MgIpLuDiCOlkYD
	nZmdjy5rtUeMrAza9ou7/V6VePnh6m4R1cL40PnaoN7jRQKy/O0TA2OXhFioLviUojoGiSl7rxj
	SiHgBoQIMWI8oY9D3ceBIkcaa3nd5VLfUuOB9zE2OYfdQaBP0acVhb/+nadlhLWuM+hyWzmqNj6
	IoAsbEmlv0PQXFDQg3iTLsrlVaB0a/0eNoyUNx6PuAaAPnZ3Fkiqj1pe8pglLg4OY2u3iPqKcnn
	ES33VBDSLA==
X-Received: by 2002:a05:6000:1866:b0:48e:412:37f4 with SMTP id ffacd0b85a97d-48e2641de1amr14015136f8f.1.1792691428424;
        Thu, 22 Oct 2026 10:50:28 -0700 (PDT)
X-Received: from [192.168.1.135] ([81.79.62.202])
        by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e25835247sm13834966f8f.41.2026.10.22.10.50.26
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Thu, 22 Oct 2026 10:50:27 -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: 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: <1jqzhu9in5.fsf@starbuckisacylon.baylibre.com>