From: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
To: Andrew Lunn <andrew@lunn.ch>
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 11:43:39 +0200 [thread overview]
Message-ID: <c53928fbb9da11b0f32a84592742e6a26e1aed32.camel@collabora.com> (raw)
In-Reply-To: <b4950f82-0163-4482-9799-a5e3c6eb5964@lunn.ch>
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 ?
Best regards,
Louis-Alexis
[1]:
https://elixir.bootlin.com/linux/v7.3/source/Documentation/devicetree/bindings/net/ethernet-controller.yaml#L251
> > @@ -86,8 +85,10 @@ properties:
> > or will round down. Range 0~31*170.
> > For MT2712 RMII/MII interface, Allowed value need to be a
> > multiple of 550,
> > or will round down. Range 0~31*550.
> > - For MT8188/MT8195 RGMII/RMII/MII interface, Allowed value
> > need to be a multiple of 290,
> > - or will round down. Range 0~31*290.
> > + For MT8188/MT8195 RGMII/RMII/MII interface, Allowed value
> > need to be a
> > + multiple of 290, or will round down. Range 0~31*290.
> > + For MT8189 RGMII/RMII/MII interface, Allowed value need to
> > + be a multiple of 180, or will round down. Range 0~31*180.
>
> Please make this:
>
> For MT8189 RGMII/RMII/MII interface, this property is not used, the
> standard tx-internal-delay-ps should be used instead.
>
> > @@ -96,8 +97,10 @@ properties:
> > or will round down. Range 0~31*170.
> > For MT2712 RMII/MII interface, Allowed value need to be a
> > multiple of 550,
> > or will round down. Range 0~31*550.
> > - For MT8188/MT8195 RGMII/RMII/MII interface, Allowed value
> > need to be a multiple
> > - of 290, or will round down. Range 0~31*290.
> > + For MT8188/MT8195 RGMII/RMII/MII interface, Allowed value
> > need to be a
> > + multiple of 290, or will round down. Range 0~31*290.
> > + For MT8189 RGMII/RMII/MII interface, Allowed value need to
> > + be a multiple of 180, or will round down. Range 0~31*180.
>
> Same here.
>
> Andrew
next prev parent reply other threads:[~2026-10-21 9:44 UTC|newest]
Thread overview: 23+ 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 [this message]
2026-10-21 12:44 ` Andrew Lunn
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-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-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-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=c53928fbb9da11b0f32a84592742e6a26e1aed32.camel@collabora.com \
--to=louisalexis.eyraud@collabora.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@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=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
all inboxes | Powered by JetHome®