Re: [PATCH net-next v8 3/3] arm64: dts: renesas: r8a779g0: Add gPTP node
From: Niklas Söderlund
Date: Thu Nov 26 2026 - 10:16:48 EST
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@xxxxxxxxxxxx> 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@xxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxx
>
> 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