🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17303

Re: [PATCH net-next v3 2/2] net: stmmac: dwmac-rk: Add RK3572 support

#17303
From: Andrew Lunn
Date: Mon, 16 Nov 2026 15:58
39 lines
10631 bytes
On Mon, Nov 16, 2026 at 11:11:42PM +0800, Cunhao Lu wrote:
> Hi,
> 
> > [...]
> > > + .regs_valid = true,
> > > + .regs = { 0x29d20000, 0x2a040000, 0 },
> > > +};
> >
> > Just looking at this, it is not obvious that rx_delay and tx_delay are
> > actually not used.
> 
> My board currently uses rgmii-id, where both MAC TX and RX delays
> are disabled. I kept the delay handling to support rgmii-rxid,
> rgmii-txid and rgmii, using the default values for the MAC delays
> enabled in those modes. The legacy tx_delay and rx_delay properties
> are now disallowed for RK3572 in the binding.
> 
> I currently have only one oscilloscope, with a maximum bandwidth of
> 200 MHz. With this equipment, I cannot accurately determine how the
> TX and RX delay register values translate to picoseconds, so I am
> not planning to add support for tx-internal-delay-ps and
> rx-internal-delay-ps in this series for now.
> 
> Would it be acceptable to support only rgmii-id for RGMII in the next
> version, and reject rgmii, rgmii-rxid and rgmii-txid? This would let me
> stop using tx_delay and rx_delay in the RK3572 driver path as well.

No, rgmii, rgmii-rxid and rgmii-txid are valid, it depends on the PCB
design.

https://elixir.bootlin.com/linux/v6.15/source/Documentation/devicetree/bindings/net/ethernet-controller.yaml#L287

What i would prefer is that the C code does not parse the rx_delay and
tx_delay properties. If somebody actually needs them, they need to
implement tx-internal-delay-ps and rx-internal-delay-ps. Since you
don't need them, you don't need to implement them.

      Andrew
Technical Details
Message-ID: <ec29187b-e23b-484b-b642-b1d504627c28@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364524-linux-kernel-netdev=dewy.ru
References: <20261116-add-board-ok3572-c-net-v3-0-a957fdcd9c7a@qq.com> <20261116-add-board-ok3572-c-net-v3-2-a957fdcd9c7a@qq.com> <f8d4b637-1818-419c-ac51-fb2ded1f9b3e@lunn.ch> <tencent_273206094323A701D688217E3A4D72341C08@qq.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364524-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 2/2] net: stmmac: dwmac-rk: Add RK3572 support
Date: Mon, 16 Nov 2026 16:58:12 +0100
Organization: Usenet Network
Message-ID: <ec29187b-e23b-484b-b642-b1d504627c28@lunn.ch>
References: <20261116-add-board-ok3572-c-net-v3-0-a957fdcd9c7a@qq.com>
 <20261116-add-board-ok3572-c-net-v3-2-a957fdcd9c7a@qq.com>
 <f8d4b637-1818-419c-ac51-fb2ded1f9b3e@lunn.ch>
 <tencent_273206094323A701D688217E3A4D72341C08@qq.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2104746"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Hd5pQfIEnKwzno8+Q6NaPrEeoUo= sha256:P6WIGmn0Ro6ApfFTfmvflTeZvSdTMlmTOyv257TlcBQ=
	sha1:EpFEaOTuMFzpWdhaGRNErNsbwYc= sha256:Uw9zRQCuO/0F/kHFCy8xzcfhCZdo+cA9wzBVF1QBGiQ=
Content-Disposition: inline
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 426B7114CBD; Mon, 16 Nov 2026 18:59:07 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
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 maVbDlzmLfXH;
	Mon, 16 Nov 2026 18:58:58 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364524-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 4D920114C91; Mon, 16 Nov 2026 18:58:50 +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 2D81E31756; Mon, 16 Nov 2026 15:58:42 +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=1794844721;
	b=XJGGba9vPfrQjd325FbK76Xm5dRGLRCwfCtD0WF/O8AywAqBnwi4D3MUlK3Tcz/IB6+B
	 5aY1uZaV6YpcTngJiYCD2xgWVSITYpiIja0TaNG0PnLO2Ycebivs7YEbLJ2EaFHc8x+AH
	 ESVXHTMIclcCq0/BM02H0ZuKKQvdTCUdvjmiFzcnnR/gVWM+8J5nPHz/UtaT1+u3+DuOK
	 YpocM9+ArrNi1r2H2G7YY1uGvw1d+GXIERKqrbhFm7hNtejTyBFFDOfCkcsSJgiLEMzOv
	 O2jgpP8elDsNKCBxM5mdxHkIiwwOb5eT4EXGyGT0nI/hmNZ/gHwV0SATjnLXV7pQbNw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794844721;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=zno5lGS0axCV2J7th/KKxA7LyCzjnlPiDTG2Ak1Q8bE=;
	b=vMUq7aEgdT8I9StN0v5Q1xC5KK9hZl8oVzFE0nq6rKX67f04NG8Gx0wL5kXEmVI862ZI
	 kmHB5aeAteawD7c5QSSl4N999yNp4jGKb+gYKH17HnIVJaL4EqoRygaXDBPwFcGMsu8/o
	 3CRCwNtGgQ+BjkZN469l1OyJVWZGXp4bAUmYbKvPfXBTQCNCWHbRnkxhyeJvBQh7bi/E2
	 j3rdNknF1mnNA/Gm4toE5dzgUeJPg9MK0ts+9WSwiKVU6+dTcDkYpQRg7qtKo2WhEN3Ll
	 y9v7KO5bi8PJzoYdKV1GQLgcyf4qblR7qumpdVaP5ds1fJ9DF826RYYUgCsooBqP0oA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Vq+E7Xsk;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 62217606A330;
	Mon, 16 Nov 2026 15:58:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Vq+E7Xsk
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794844715;
	b=A+20MXAYTKEx00Ea863ThiV+oddLs7PnbT22M4KRoE/VmNQPENHcm5zNVA9xsP3HZ1QB
	 lt6RNAbn8GG3anHXChwJHb6ALsdgDxHUsxZcBRZsghA+dWANTAgw0ih+JvaM8x56Gmh4/
	 Kd3ldl/amuxSj6cV3mR9j+I9aJGOi72W1ZC5QM7pbnuPXtP9rJ2hzXVl1nFBMPENZIGM0
	 0ocRA79eYWiMUrJ3dXm/ibuLIvsNTt/ZwZ0FoUHg9Z5PNYhweRCeIErIKHtMNUMi2tCBd
	 +AKjUWtQ/FbXxLLGMTFoMGu9LFZb90EfUNOMsglcomEjP8uwiQc8IrUn0pRYTHfjQQw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794844715;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=zno5lGS0axCV2J7th/KKxA7LyCzjnlPiDTG2Ak1Q8bE=;
	b=TXk2XeLFX+mgBlf/mJFGcvBifG9lLhdvtjY3fDf05BNPnnzM4Z/eS5p/dmF2HI83I/F7
	 6qEfVeyEDGBGY2e2oYPTqfv4u6dKPZ9jS5NHTz0ia3IqQx4cZ63pt8RmaMRqyIarQxf8v
	 PZzj0KUSGLMa/ncYgkduk46gIqXnmyyt4FjBUysdCJP8qxc7tWkzkbrXkVwQH5QzoNEP3
	 MSk71JNbl2hhHNppKup9GKkeJ9RJzSKEor/0nj0a6PUXFEQnJsuupTBySxgBVTkuV8feI
	 jQ7AF1AMQAw5bJXbAIk566nuiLEKP0HUGHUBcShNwWBi5ck0tRPi6+UWJ32rN6oCApg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Vq+E7Xsk;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23255606A322;
	Mon, 16 Nov 2026 15:58:34 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 23255606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=zno5lGS0axCV2J7th/KKxA7LyCzjnlPiDTG2Ak1Q8bE=; b=Vq+E7XskQVTJi7Fjb9VsfEP7L2
	ui7ElJUX6yhXo6pAgC/vgt3OJFYJJ1Usi4r0ta9yTSblNO2OlyoT0lqdg3RxrYh08HbkqLmMSZWjg
	HEYgnwyZ4YtBeUr+HyOY4dDSPE/zmc/Y3S3sTj0aJFUudQwEFNuaXLAevYSQ4JvhFY2w=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xSz5w-00GxGL-44; Mon, 16 Nov 2026 16:58:12 +0100
X-Cc: 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>,
	Heiko Stuebner <heiko@sntech.de>,
	David Wu <david.wu@rock-chips.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	Giuseppe Cavallaro <peppe.cavallaro@st.com>,
	Jose Abreu <joabreu@synopsys.com>,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	netdev <netdev@vger.kernel.org>,
	devicetree <devicetree@vger.kernel.org>,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	linux-rockchip <linux-rockchip@lists.infradead.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	linux-stm32 <linux-stm32@st-md-mailman.stormreply.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
X-In-Reply-To: <tencent_273206094323A701D688217E3A4D72341C08@qq.com>