Re: [PATCH net-next v8 3/3] arm64: dts: renesas: r8a779g0: Add gPTP node
From: Geert Uytterhoeven
Date: Thu Nov 26 2026 - 10:31:54 EST
Hi Niklas,
On Thu, 26 Nov 2026 at 16:17, Niklas Söderlund
<niklas.soderlund+renesas@xxxxxxxxxxxx> wrote:
> On 2026-11-26 14:33:17 +0100, Geert Uytterhoeven wrote:
> > 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.
Thanks, found it!
> > 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.
I can fix that while applying, no need to resend.
Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
i.e. will queue in renesas-devel for v7.5.
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