From: sashiko-bot@kernel.org
To: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
Cc: conor+dt@kernel.org, robh@kernel.org,
wsa+renesas@sang-engineering.com, devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v3 3/3] arm64: dts: renesas: r8a779g0: Add gPTP node
Date: Thu, 02 Jul 2026 09:06:51 +0000 [thread overview]
Message-ID: <20260702090652.297201F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260701090607.1108208-4-niklas.soderlund+renesas@ragnatech.se>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The newly added `gptp` node claims the exact same memory and reset resources as the existing `tsn0` node, leading to `-EBUSY` probe failures and hardware state corruption if both are enabled.
--
commit c52da814d390d81d618c033aea857f507bdb9ae0
Author: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
arm64: dts: renesas: r8a779g0: Add gPTP node
This commit adds a new gPTP module node to the r8a779g0 device tree, sharing
the hardware 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 82a7278836e57..b9b860ef70351 100644
> --- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
> @@ -589,6 +589,15 @@ tmu4: timer@ffc00000 {
> 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";
> + };
> +
[Severity: High]
Does adding this gptp node cause resource conflicts with the existing tsn0
node?
The new gptp node claims the 0xe6449000 memory region and the 2723 reset line.
However, looking at the existing tsn0 node right below it, tsn0 also claims
the exact same memory region and reset line.
If both nodes are enabled in a board device tree, this will lead to probe
failures when the drivers request exclusive access to the 0xe6449000 MMIO
region. Whichever driver probes second will receive an -EBUSY error.
Additionally, the rtsn driver explicitly asserts the 2723 reset line during
interface bring-up via rtsn_reset(), which would silently wipe the hardware
registers configured by the gptp driver.
Should the tsn0 node be updated to drop its gptp memory region and reset line
to safely extract the shared module?
> tsn0: ethernet@e6460000 {
> compatible = "renesas,r8a779g0-ethertsn", "renesas,rcar-gen4-ethertsn";
> reg = <0 0xe6460000 0 0x7000>,
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701090607.1108208-1-niklas.soderlund+renesas@ragnatech.se?part=3
prev parent reply other threads:[~2026-07-02 9:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 9:06 [PATCH net-next v3 0/3] ptp: Add driver for R-Car Gen4 gPTP timer Niklas Söderlund
2026-07-01 9:06 ` [PATCH net-next v3 1/3] dt-bindings: ptp: renesas,rcar-gen4-gptp: Add R-Car Gen4 Niklas Söderlund
2026-07-02 9:06 ` sashiko-bot
2026-07-01 9:06 ` [PATCH net-next v3 2/3] ptp: Add driver for " Niklas Söderlund
2026-07-01 21:47 ` Vadim Fedorenko
2026-07-02 8:46 ` Niklas Söderlund
2026-07-02 9:06 ` sashiko-bot
2026-07-01 9:06 ` [PATCH net-next v3 3/3] arm64: dts: renesas: r8a779g0: Add gPTP node Niklas Söderlund
2026-07-02 9:06 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260702090652.297201F00A3D@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wsa+renesas@sang-engineering.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox