From: Andrew Lunn <andrew@lunn.ch>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: linux@fw-web.de, daniel@makrotopia.org, myungjoo.ham@samsung.com,
kyungmin.park@samsung.com, cw00.choi@samsung.com,
djakov@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, olteanv@gmail.com, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com,
jia-wei.chang@mediatek.com, johnson.wang@mediatek.com,
arinc.unal@arinc9.com, Landen.Chao@mediatek.com,
dqfext@gmail.com, sean.wang@mediatek.com, lorenzo@kernel.org,
nbd@nbd.name, linux-pm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: Re: Re: [PATCH v3 06/13] arm64: dts: mediatek: mt7988: add basic ethernet-nodes
Date: Mon, 9 Jun 2025 14:12:51 +0200 [thread overview]
Message-ID: <9d27e0d3-5ecb-4dcd-b8aa-d4e0affbb915@lunn.ch> (raw)
In-Reply-To: <trinity-87fadcdb-eee3-4e66-b62d-5cef65f1462d-1749464918307@trinity-msg-rest-gmx-gmx-live-5d9b465786-mldbm>
> > > + gmac0: mac@0 {
> > > + compatible = "mediatek,eth-mac";
> > > + reg = <0>;
> > > + phy-mode = "internal";
> > > +
> > > + fixed-link {
> > > + speed = <10000>;
> > > + full-duplex;
> > > + pause;
> > > + };
> >
> > Maybe i've asked this before? What is on the other end of this link?
> > phy-mode internal and fixed link seems an odd combination. It might
> > just need some comments, if this is internally connected to a switch.
>
> yes you've asked in v1 and i responded :)
>
> https://patchwork.kernel.org/project/linux-mediatek/patch/20250511141942.10284-9-linux@fw-web.de/
>
> connected to internal (mt7530) switch. Which kind of comment do you want here? Only "connected to internal switch"
> or some more details?
"Connected to internal switch" will do. The word switch explains the
fixed-link, and internal the phy-mode.
It is not the case here, but i've seen DT misused like this because
the MAC is connected to a PHY and there is no PHY driver yet, so a
fixed link is used instead.
> > > + mdio_bus: mdio-bus {
> > > + #address-cells = <1>;
> > > + #size-cells = <0>;
> > > +
> > > + /* internal 2.5G PHY */
> > > + int_2p5g_phy: ethernet-phy@f {
> > > + reg = <15>;
> >
> > It is a bit odd mixing hex and decimal.
>
> do you prefer hex or decimal for both? for r3mini i used decimal for both, so i would change unit-address
> to 15.
I suspect decimal is more common, but i don't care.
>
> > > + compatible = "ethernet-phy-ieee802.3-c45";
> >
> > I _think_ the coding standard say the compatible should be first.
>
> i can move this up of course
>
> > > + phy-mode = "internal";
> >
> > A phy should not have a phy-mode.
>
> not sure if this is needed for mt7988 internal 2.5g phy driver, but seems not when i look at the driver
> (drivers/net/phy/mediatek/mtk-2p5ge.c). The switch phys also use this and also here i do not see any
> access in the driver (drivers/net/dsa/mt7530-mmio.c + mt7530.c) on a quick look.
> Afaik binding required the property and should be read by phylink (to be not unknown, but looks like
> handled the same way).
Which binding requires this? This is a PHY node, but i don't see
anything about it in ethernet-phy.yaml.
Andrew
next prev parent reply other threads:[~2025-06-09 12:13 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-08 21:14 [PATCH v3 00/13] further mt7988 devicetree work Frank Wunderlich
2025-06-08 21:14 ` [PATCH v3 01/13] dt-bindings: net: mediatek,net: update for mt7988 Frank Wunderlich
2025-06-08 21:14 ` [PATCH v3 02/13] dt-bindings: net: dsa: mediatek,mt7530: add dsa-port definition " Frank Wunderlich
2025-06-08 21:14 ` [PATCH v3 03/13] dt-bindings: net: dsa: mediatek,mt7530: add internal mdio bus Frank Wunderlich
2025-06-08 21:14 ` [PATCH v3 04/13] dt-bindings: interconnect: add mt7988-cci compatible Frank Wunderlich
2025-06-11 9:40 ` AngeloGioacchino Del Regno
2025-06-08 21:14 ` [PATCH v3 05/13] arm64: dts: mediatek: mt7988: add cci node Frank Wunderlich
2025-06-11 9:34 ` AngeloGioacchino Del Regno
2025-06-08 21:14 ` [PATCH v3 06/13] arm64: dts: mediatek: mt7988: add basic ethernet-nodes Frank Wunderlich
2025-06-08 21:23 ` Andrew Lunn
2025-06-09 10:28 ` Aw: " Frank Wunderlich
2025-06-09 12:12 ` Andrew Lunn [this message]
2025-06-10 9:42 ` Aw: " Frank Wunderlich
2025-06-08 21:24 ` Daniel Golle
2025-06-11 9:33 ` AngeloGioacchino Del Regno
2025-06-11 9:53 ` Aw: " Frank Wunderlich
2025-06-08 21:14 ` [PATCH v3 07/13] arm64: dts: mediatek: mt7988: add switch node Frank Wunderlich
2025-06-08 21:25 ` Andrew Lunn
2025-06-11 9:33 ` AngeloGioacchino Del Regno
2025-06-08 21:14 ` [PATCH v3 08/13] arm64: dts: mediatek: mt7988a-bpi-r4: add proc-supply for cci Frank Wunderlich
2025-06-11 9:33 ` AngeloGioacchino Del Regno
2025-06-08 21:14 ` [PATCH v3 09/13] arm64: dts: mediatek: mt7988a-bpi-r4: drop unused pins Frank Wunderlich
2025-06-11 9:33 ` AngeloGioacchino Del Regno
2025-06-08 21:14 ` [PATCH v3 10/13] arm64: dts: mediatek: mt7988a-bpi-r4: add gpio leds Frank Wunderlich
2025-06-11 9:33 ` AngeloGioacchino Del Regno
2025-06-11 10:33 ` Aw: " Frank Wunderlich
2025-06-08 21:14 ` [PATCH v3 11/13] arm64: dts: mediatek: mt7988a-bpi-r4: add aliase for ethernet Frank Wunderlich
2025-06-11 9:33 ` AngeloGioacchino Del Regno
2025-06-08 21:14 ` [PATCH v3 12/13] arm64: dts: mediatek: mt7988a-bpi-r4: add sfp cages and link to gmac Frank Wunderlich
2025-06-08 21:31 ` Andrew Lunn
2025-06-10 9:03 ` Aw: " Frank Wunderlich
2025-06-10 12:58 ` Andrew Lunn
2025-06-10 13:32 ` Frank Wunderlich
2025-06-11 9:33 ` AngeloGioacchino Del Regno
2025-06-11 10:44 ` Aw: " Frank Wunderlich
2025-06-08 21:14 ` [PATCH v3 13/13] arm64: dts: mediatek: mt7988a-bpi-r4: configure switch phys and leds Frank Wunderlich
2025-06-11 9:33 ` AngeloGioacchino Del Regno
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=9d27e0d3-5ecb-4dcd-b8aa-d4e0affbb915@lunn.ch \
--to=andrew@lunn.ch \
--cc=Landen.Chao@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=arinc.unal@arinc9.com \
--cc=conor+dt@kernel.org \
--cc=cw00.choi@samsung.com \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=djakov@kernel.org \
--cc=dqfext@gmail.com \
--cc=edumazet@google.com \
--cc=frank-w@public-files.de \
--cc=jia-wei.chang@mediatek.com \
--cc=johnson.wang@mediatek.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@fw-web.de \
--cc=lorenzo@kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=myungjoo.ham@samsung.com \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=sean.wang@mediatek.com \
/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