🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16209

Re: [PATCH net-next v8 3/3] arm64: dts: renesas: r8a779g0: Add gPTP node

#16209
From: netdev-bot+sashiko
Date: Sat, 14 Nov 2026 10:17
107 lines
12012 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.

Critical: 0 · High: 0 · Medium: 1 · Low: 0

If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).

- [Medium] The new `gptp: ptp@e6449000` node in
  arch/arm64/boot/dts/renesas/r8a779g0.dtsi uses `reg = <0 0xe6449000 0…

--

arm64: dts: renesas: r8a779g0: Add gPTP node

This adds a gptp: ptp@e6449000 node to the R-Car V4H SoC dtsi. The commit
message says the gPTP module is shared between the RAVB and RTSN Ethernet
devices.

> diff --git a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
> index 5284923b6cef7..f2d6696680db8 100644
> --- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
> @@ -606,6 +606,15 @@ mfis: system-controller@e6260000 {
>  			status = "disabled";
>  		};
>  
> +		gptp: ptp@e6449000 {
> +			compatible = "renesas,r8a779g0-gptp", "renesas,rcar-gen4-gptp";
> +			reg = <0 0xe6449000 0 0x500>;
> +			clocks = <&cpg CPG_MOD 2723>;
> +			power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
> +			resets = <&cpg 2723>;
> +			status = "disabled";
> +		};
> +
>  		tsn0: ethernet@e6460000 {
>  			compatible = "renesas,r8a779g0-ethertsn", "renesas,rcar-gen4-ethertsn";
>  			reg = <0 0xe6460000 0 0x7000>,

[Severity: Medium]
Can tsn0 and the new gptp node both be enabled on the same board?

The existing tsn0 node, which this patch does not change, already claims
the same window as its second reg entry:

	tsn0: ethernet@e6460000 {
		reg = <0 0xe6460000 0 0x7000>,
		      <0 0xe6449000 0 0x500>;
		reg-names = "tsnes", "gptp";
		...
		clocks = <&cpg CPG_MOD 2723>;
		resets = <&cpg 2723>;

rtsn_probe() in drivers/net/ethernet/renesas/rtsn.c maps that region
exclusively and runs the timer itself:

	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gptp");
	...
	ptpaddr = devm_ioremap_resource(&pdev->dev, res);
	if (IS_ERR(ptpaddr)) {
		ret = PTR_ERR(ptpaddr);
		goto error_free;
	}

	priv->ptp_priv = rcar_gen4_ptp_alloc(pdev, ptpaddr);

ptp_rcar_gen4_probe() in drivers/ptp/ptp_rcar_gen4.c claims the same
range:

	priv->base = devm_platform_ioremap_resource(pdev, 0);
	if (IS_ERR(priv->base))
		return PTR_ERR(priv->base);

If a board sets both &tsn0 and &gptp to okay, the device that probes
second should get -EBUSY from its request on 0xe6449000-0xe64494ff. When
rtsn is the one that fails, the whole TSN Ethernet interface is lost,
because a failed gptp mapping takes the error_free path in rtsn_probe().

The commit message says:

    The gPTP module is shared between the RAVB and RTSN Ethernet devices on
    the SoC.

The new renesas,rcar-gen4-gptp.yaml binding also says "On R-Car V4H it is
shared between RTSN and RAVB". However, renesas,ethertsn.yaml still
requires the gptp reg entry on the TSN node. rtsn also has no ptp-timer
phandle path. No DTS under arch/arm64/boot/dts/renesas/ references &gptp
yet, so RAVB is not connected to this node either. RAVB uses the timer
only through of_parse_phandle(..., "ptp-timer", 0).

Would it make sense to either move RTSN over to the shared node or
document that the two nodes are mutually exclusive? Moving RTSN would mean
dropping the gptp reg from tsn0 and from the ethertsn binding, and
switching rtsn to a ptp-timer phandle.

A shared-node conversion would also need to handle reset 2723. rtsn takes
it with the exclusive devm_reset_control_get() and pulses it in
rtsn_reset(). That looks like it would wipe the timer setup, which
ptp_rcar_gen4_probe() writes only once.

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261110080727.2377040-1-niklas.soderlund%2Brenesas%40ragnatech.se
Technical Details
Message-ID: <179465147165.2199510.7987717328787148087@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363169-linux-kernel-netdev=dewy.ru
References: <20261110080727.2377040-4-niklas.soderlund+renesas@ragnatech.se>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363169-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v8 3/3] arm64: dts: renesas: r8a779g0: Add gPTP node
Date: Sat, 14 Nov 2026 10:17:51 +0000
Organization: Usenet Network
Message-ID: <179465147165.2199510.7987717328787148087@kernel.org>
References: <20261110080727.2377040-4-niklas.soderlund+renesas@ragnatech.se>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1548562"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:kPI5OYkNIfMtdGyV3SUUaZieN1w= sha256:2Ht9lSATUdAXrvpwUwCLKgzk9HWE+g5pwUxWRdVXkCc=
	sha1:BytKigBR5kCKHlBYH7EElcgfP7g= sha256:LQTZmdbkHZswGVgsBVCkFeUzuXu8fVWwyIJnakCxuX8=
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 A79F811479F; Sat, 14 Nov 2026 13:18:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	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 (2048-bit key)
	header.d=kernel.org
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 YcpuzpBCrUvi;
	Sat, 14 Nov 2026 13:18:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363169-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 50D8A11477D; Sat, 14 Nov 2026 13:18:26 +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 7172546AD0; Sat, 14 Nov 2026 10:18:15 +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=1794651479;
	b=33x2x2o7bfJMKNXQBH/GMcRNVi1Cj+ydLmZJSw/hT9AKbzL/rmNJb0gJU6UTvg/W+tA+
	 qh2upk0zwqvpCcYUpysRSX2YUF/ecHZeZplXQuL6y1+BEkn3hZzSbxWoBzA6ziMVbaKVX
	 n4o243LEKQuaW7w3sola1vHXVEMMF8u7HEa/7NJSWClATW9TOri72xJqKJsaYJEK3EFSk
	 jjFwwKKQjG5wDxWKCTtZkyvebmhSC7lXra2+vTJeT0GcyxgmeSS9JqA0zOL5mC3T2+YN3
	 BvZ/lNsvVDaIr8oZ0U67MG8bbU+PL0cFHS5YBf1SvMct/13Mx+CkGvAYFUKt4lwrCOw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794651479;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=sE4Cm5Gek3IQkKMKh5CcxTRTj/SWHXCIUtLGgi/uNRQ=;
	b=fP0nA7z4PDMiD0i1NgenJGygdNntRAPY3LtI3uv9K/9UE61m7WbDsudAqUbnZmizN7o2
	 44+0viq99b9OJb6GKonrZVguVmytnEjJAvQtOxLbasbxk57EIdzwusEhRjhbUDF1ekI//
	 Buka2rhARXuNk7I+hnyMJQvnNWzAHLPACnYyJ8CyEL/SnEIS7GfRlwrWYkdalV94e/8jk
	 u54q5xe9YFf+6DdxdSZfCSQN29AkUdD1lyeIffk94sBQXFbHR83BCNifU+pUA3dZryC3K
	 BVforMEQe2JLpweX+Gq9EoNo/utXP4nBrBCvDd88gI7TrW1TTmKBFkVei5h1rAa+hvQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=adIHoyIu;
	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 38C8D606A33F;
	Sat, 14 Nov 2026 10:17:59 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=adIHoyIu
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794651473;
	b=HoQZr8IlifC1HoX8yDPHB7JMpVZht10sbrc4i8OWNaQsgIoW6FWAPE58RSkrzyyPvAvU
	 nY0O5Ykd3wh6n0TcZjoxSwQy0F3+NDUkhE1SbH7dJusPIAcg5Y5FPhUlVS6bLzw+ddhmp
	 5t1jdPr4jUZeGxHM2UKpOGhbxWOReV8g6mQSTn2xZIMcD8fBbMxF1emMHzBZJLhByjUEw
	 flDuLRM0BZUpAKheRKYOgA77QFttZ6ALkEJAhmTMLHoLlhAAf1d+PQVezjXzQLIG6dP5l
	 Xgzt6myUvdq1EpyaMr9LSmE//FhOqxT/sWtbhhrF/6L1x6mStXMyZ9h9IlWlzsIL1Tw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794651473;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=sE4Cm5Gek3IQkKMKh5CcxTRTj/SWHXCIUtLGgi/uNRQ=;
	b=nmUXV8Ok3vJtPdK4hCmv/gW6D9K7/B6krGjIHUro0SzkH4O8iCfx9yFBNOAlP+pgmdL1
	 8e3ppUSiS5vBKP0BBxcDRl2WHxGaKFlINkLL/SnTUdL27/trHcE45F0dcuEtyXbAKszlf
	 Q9MDgbq+/+9h0vWVtyjmu0KIcYn14Is4UbA+VOGK0KMvx5zD4HlCDX6vXqnYyIwaQsKdX
	 WoVQ5hALGKXKMQ2KOK495qsH5fA8y4xLtGjoq+V9OgI+vZ5Um20c2jz3qhcnfWX72/tZ5
	 Px6Hnybwj0cHTgi8iPBksfV6Ox+VqjgIjIRlGZTs8iZLlJ438kuSUFo91fZu+HQCr+g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=adIHoyIu;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57235606A329;
	Sat, 14 Nov 2026 10:17:53 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 156B21F000C4;
	Sat, 14 Nov 2026 10:17:52 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794651473;
	bh=sE4Cm5Gek3IQkKMKh5CcxTRTj/SWHXCIUtLGgi/uNRQ=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=adIHoyIub1KHXf+vd8VSLOJtpEUTqAQO8BhfhoN6BKp1MiK5679/9CnL/q/Ha8IkW
	 d9L4xPswoMfkasqOtH54SS0Y7sdgmW2+2R5exg9P/5FVx4ZV4+PTmljbc5l5cz3yXP
	 LTrJmhQMySlH5AAgeqPEGxOFDREzzh73Er0Anb6MWOudKHtckk/53nvD3IF6+C468J
	 UvPndpcP+7cErCTiUf0aMc9frQzqQG8MssT4eAGntzf5Vl8sS6dIPPCCMYD2vKkiVF
	 +hM+iRlV1Totks00bL3pBFcjMp/xItZI2lKFa6fGLATxny9JGyuY1cVBL4NnGMOHjz
	 JNLYkWcEWTCOw==
X-Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
 geert+renesas@glider.be, magnus.damm@gmail.com, richardcochran@gmail.com,
 andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
 kuba@kernel.org, pabeni@redhat.com, vadim.fedorenko@linux.dev,
 sergei.shtylyov@gmail.com, linux-renesas-soc@vger.kernel.org,
 devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
 netdev@vger.kernel.org
X-In-Reply-To: <20261110080727.2377040-4-niklas.soderlund+renesas@ragnatech.se>
X-sashiko-severity: Medium
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