devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Andrew Lunn <andrew@lunn.ch>
Cc: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
	devicetree@vger.kernel.org, netdev@vger.kernel.org,
	linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: net: renesas,ethertsn: Add bindings for Ethernet TSN
Date: Wed, 22 Nov 2023 16:41:37 +0100	[thread overview]
Message-ID: <CAMuHMdXTKoewsQaw2o5oqE3BfjCAYNxYNoNX9ujhOSSyR+W7fQ@mail.gmail.com> (raw)
In-Reply-To: <7fce3813-daa6-41ac-8167-21ccdd733fbc@lunn.ch>

Hi Andrew,

On Wed, Nov 22, 2023 at 2:57 PM Andrew Lunn <andrew@lunn.ch> wrote:
> > > In general, we try to have the PHY add the delay, not the MAC. So i
> > > would start with hard coding the delay to 0ns, and only implement
> > > these properties if you have a board where the PHY cannot add the
> > > delay.
> >
> > If I understand the KSZ9031 bindings correctly, that PHY is limited to
> > a skew of up to 960 ps, not 1800 or 2000 ps.
>
> Reading ksz9031_config_rgmii_delay(), it implements the four
> PHY_INTERFACE_MODE_RGMII* interface modes. So it should be able to
> provide the 2ns delay. Sometimes the tuning ability is relative to the
> base delay. So maybe it can do 2n +- 0.960/2 ?

Oh, I do remember the regressions when the KSZ9031 driver started
implementing that :-(  See commit a6f51f2efa742df0 ("ravb: Add support
for explicit internal clock delay configuration") and the commits it
links to.

> Anyway, try interface mode "rgmii_id" with the MAC not providing any
> delay.

That's more or less what we had before, cfr. commit 9b81018185965a30
("arm64: dts: renesas: rcar-gen3: Convert EtherAVB to explicit delay
handling")...

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

      reply	other threads:[~2023-11-22 15:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-20 16:07 [PATCH] dt-bindings: net: renesas,ethertsn: Add bindings for Ethernet TSN Niklas Söderlund
2023-11-21  7:45 ` Krzysztof Kozlowski
2023-11-21  8:00   ` Geert Uytterhoeven
2023-11-21  8:40     ` Krzysztof Kozlowski
2023-11-21  8:45       ` Geert Uytterhoeven
2023-11-21 12:11     ` Niklas Söderlund
2023-11-21 12:10   ` Niklas Söderlund
2023-11-21 12:20     ` Krzysztof Kozlowski
2023-11-21 12:44       ` Niklas Söderlund
2023-11-21 12:53         ` Krzysztof Kozlowski
2023-11-21 16:11         ` Geert Uytterhoeven
2023-11-21 16:32           ` Niklas Söderlund
2023-11-21 19:53     ` Andrew Lunn
2023-11-22  7:40       ` Geert Uytterhoeven
2023-11-22 13:57         ` Andrew Lunn
2023-11-22 15:41           ` Geert Uytterhoeven [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=CAMuHMdXTKoewsQaw2o5oqE3BfjCAYNxYNoNX9ujhOSSyR+W7fQ@mail.gmail.com \
    --to=geert@linux-m68k.org \
    --cc=andrew@lunn.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=niklas.soderlund+renesas@ragnatech.se \
    --cc=robh+dt@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).