Devicetree
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Richard Cochran <richardcochran@gmail.com>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	Biao Huang <biao.huang@mediatek.com>,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	Eric Dumazet <edumazet@kernel.org>,
	kernel@collabora.com, netdev@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	linux-stm32@st-md-mailman.stormreply.com
Subject: Re: [PATCH net-next v3 2/9] dt-bindings: net: mediatek-dwmac: add support for MT8189 SoC
Date: Wed, 21 Oct 2026 14:44:25 +0200	[thread overview]
Message-ID: <838136c0-5f4c-4ed9-a0dc-d05ff338582e@lunn.ch> (raw)
In-Reply-To: <c53928fbb9da11b0f32a84592742e6a26e1aed32.camel@collabora.com>

On Wed, Oct 21, 2026 at 11:43:39AM +0200, Louis-Alexis Eyraud wrote:
> Hi Andrew,
> 
> On Fri, 2026-10-16 at 17:40 +0200, Andrew Lunn wrote:
> > > Finally, update "mediatek,rx-delay-ps" and "mediatek,tx-delay-ps"
> > > property
> > > description to add MT8189 RX/TX delay stage divider values, as they
> > > differ from existing supported SoC.
> > 
> > These should be mark deprecated and the standard rx-internal-delay-ps
> > and tx-internal-delay-ps used in there place for new devices.
> > 
> I agree, it makes sense to use them to describe the RGMII internal
> delay configurations rather than the two existing vendor properties
> (mediatek,rx-delay-ps and mediatek,tx-delay-ps), and deprecate them, by
> adding a deprecated flag and the comments you've suggested. It would
> also need an additional patch for the driver to handle them (while
> keeping backward compatibility).
> 
> But what is bothering me is these two vendor properties description
> says they can be used in MII and RMII phy mode cases. The driver uses
> them indeed also to fine tune the RX/TX_CLK (in MII) or the REF_CLK (in
> RMII) configuration.
> rx/tx-internal-delay-ps properties are limited to RGMII only ([1]).
> So they can not substitute them as it and with their description it
> would wrong to use them for MII/RMII.
> 
> At the moment, in the upstream devicetrees, there is no "mediatek,rx-
> delay-ps" use and the "mediatek,tx-delay-ps" use are very few and only
> for RGMII phy modes (either rgmii-rxid or rmgii-id), so no MII/RMII
> real use cases.
> 
> So, how to proceed then to make these bindings right?
> Use rx/tx-internal-delay-ps properties for RGMII and mediatek,rx/tx-
> delay-ps for MII/RMII or do you see another solution ?

If you say "mediatek,rx-delay-ps" is not actually used, then it is not
an issue. As for "mediatek,tx-delay-ps", i would probably ignore it
until somebody actually requires it for MII or RMII. At that point, we
can add specific properties for MII and RMII, and not mix them up with
RGMII delays.

      Andrew


  reply	other threads:[~2026-10-21 12:44 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-16 10:31 [PATCH net-next v3 0/9] net/stmmac: Add Mediatek MT8189 support Louis-Alexis Eyraud
2026-10-16 10:31 ` [PATCH net-next v3 1/9] dt-bindings: net: mediatek-dwmac: fix unit in rx/tx delay property description Louis-Alexis Eyraud
2026-10-16 15:33   ` Andrew Lunn
2026-10-17 17:46     ` Krzysztof Kozlowski
2026-10-16 10:31 ` [PATCH net-next v3 2/9] dt-bindings: net: mediatek-dwmac: add support for MT8189 SoC Louis-Alexis Eyraud
2026-10-16 15:40   ` Andrew Lunn
2026-10-21  9:43     ` Louis-Alexis Eyraud
2026-10-21 12:44       ` Andrew Lunn [this message]
2026-10-16 10:31 ` [PATCH net-next v3 3/9] net: stmmac: mediatek: simplify TX/RX delay handling in mt8195_set_delay Louis-Alexis Eyraud
2026-10-16 10:31 ` [PATCH net-next v3 4/9] net: stmmac: mediatek: simplify TX/RX delay handling in mt2712_set_delay Louis-Alexis Eyraud
2026-10-17 10:32   ` sashiko-bot
2026-10-20 13:10   ` netdev-bot+sashiko
2026-10-16 10:31 ` [PATCH net-next v3 5/9] net: stmmac: mediatek: add RX/TX delay stage divider in platform data Louis-Alexis Eyraud
2026-10-16 11:37   ` Maxime Chevallier
2026-10-21 10:36     ` Louis-Alexis Eyraud
2026-10-17 10:32   ` sashiko-bot
2026-10-20 13:10   ` netdev-bot+sashiko
2026-10-16 10:31 ` [PATCH net-next v3 6/9] net: stmmac: mediatek: add PERI_ETH_CTRLx register offset " Louis-Alexis Eyraud
2026-10-16 10:31 ` [PATCH net-next v3 7/9] net: stmmac: mediatek: use TX clock phase shift in RGMII mode with 1Gbps speed Louis-Alexis Eyraud
2026-10-16 11:41   ` Maxime Chevallier
2026-10-16 15:48     ` Andrew Lunn
2026-10-17 10:32   ` sashiko-bot
2026-10-20 13:10   ` netdev-bot+sashiko
2026-10-16 10:31 ` [PATCH net-next v3 8/9] net: stmmac: mediatek: add support for TX clock output enable feature Louis-Alexis Eyraud
2026-10-16 10:31 ` [PATCH net-next v3 9/9] net: stmmac: mediatek: add support for MT8189 SoC Louis-Alexis Eyraud
2026-10-20 13:10   ` netdev-bot+sashiko

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=838136c0-5f4c-4ed9-a0dc-d05ff338582e@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=biao.huang@mediatek.com \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=kernel@collabora.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=louisalexis.eyraud@collabora.com \
    --cc=matthias.bgg@gmail.com \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=robh@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