From: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Magnus Damm <magnus.damm@gmail.com>,
Richard Cochran <richardcochran@gmail.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"DavidS. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Vadim Fedorenko <vadim.fedorenko@linux.dev>,
Sergey Shtylyov <sergei.shtylyov@gmail.com>,
linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v8 3/3] arm64: dts: renesas: r8a779g0: Add gPTP node
Date: Thu, 26 Nov 2026 16:16:33 +0100 [thread overview]
Message-ID: <20261126151633.GO3898744@ragnatech.se> (raw)
In-Reply-To: <CAMuHMdWpZfsaJOcTEBCugyDgKDXNRje68n59OrGFx-0hJXG+4Q@mail.gmail.com>
Hi Geert,
Thanks for your feedback.
On 2026-11-26 14:33:17 +0100, Geert Uytterhoeven wrote:
> Hi Niklas,
>
> On Tue, 10 Nov 2026 at 09:10, Niklas Söderlund
> <niklas.soderlund+renesas@ragnatech.se> wrote:
> > The gPTP module is shared between the RAVB and RTSN Ethernet devices on
> > the SoC.
> >
> > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
>
> Thanks for your patch!
>
> > --- 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>;
>
> Can you please remind me again where I can find this base address in
> the documentation?
It's very well hidden. The gPTP device itself is only described in the
attached files to the datasheet, but it does not describe how it is
wired into the V4H.
For the longest time I assumed each RAVB (and RTSN/RSWITCH) had its own
gPTP device as it where on Gen3. I got feedback from Renesas this is not
the case and there is only a single device on Gen4 which is shared
between all users. That is RTSN and RAVB on V4H and RWSITCH and RAVB on
S4. To make it even more fun the gPTP device uses the same clock and
reset as RTSN on V4H and RSWITCH on S4.
I got final confirmation of the address itself from the address map in
002_R-CarV4H_Address_Map_D_r1p30.xlsx.
> The size looks too small to me, though, as there are registers at offsets
> 0x500 - 0x788.
You are correct, it should be 0x1000. I will send a new version in a few
days in case you have feedback from the question above.
>
> > + 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>,
>
> The rest LGTM, the bindings don't descripe the two gPTP interrupts,
> so they cannot be added to the DTS yet.
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
--
Kind Regards,
Niklas Söderlund
next prev parent reply other threads:[~2026-11-26 15:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 8:07 [PATCH net-next v8 0/3] ptp: Add driver for R-Car Gen4 Niklas Söderlund
2026-11-10 8:07 ` [PATCH net-next v8 1/3] dt-bindings: ptp: renesas,rcar-gen4-gptp: Add " Niklas Söderlund
2026-11-14 10:17 ` netdev-bot+sashiko
2026-11-14 12:52 ` Niklas Söderlund
2026-11-10 8:07 ` [PATCH net-next v8 2/3] ptp: Add driver for " Niklas Söderlund
2026-11-14 10:17 ` netdev-bot+sashiko
2026-11-14 12:52 ` Niklas Söderlund
2026-11-10 8:07 ` [PATCH net-next v8 3/3] arm64: dts: renesas: r8a779g0: Add gPTP node Niklas Söderlund
2026-11-14 10:17 ` netdev-bot+sashiko
2026-11-14 12:55 ` Niklas Söderlund
2026-11-26 13:33 ` Geert Uytterhoeven
2026-11-26 15:16 ` Niklas Söderlund [this message]
2026-11-26 15:31 ` Geert Uytterhoeven
2026-11-17 2:40 ` [PATCH net-next v8 0/3] ptp: Add driver for R-Car Gen4 patchwork-bot+netdevbpf
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=20261126151633.GO3898744@ragnatech.se \
--to=niklas.soderlund+renesas@ragnatech.se \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=geert+renesas@glider.be \
--cc=geert@linux-m68k.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=sergei.shtylyov@gmail.com \
--cc=vadim.fedorenko@linux.dev \
/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