From: "Biao Huang (黄彪)" <Biao.Huang@mediatek.com>
To: "andrew@lunn.ch" <andrew@lunn.ch>
Cc: "linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"peppe.cavallaro@st.com" <peppe.cavallaro@st.com>,
"joabreu@synopsys.com" <joabreu@synopsys.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"kuba@kernel.org" <kuba@kernel.org>,
"edumazet@google.com" <edumazet@google.com>,
"alexandre.torgue@foss.st.com" <alexandre.torgue@foss.st.com>,
"mcoquelin.stm32@gmail.com" <mcoquelin.stm32@gmail.com>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"richardcochran@gmail.com" <richardcochran@gmail.com>,
"krzysztof.kozlowski+dt@linaro.org"
<krzysztof.kozlowski+dt@linaro.org>,
"Macpaul Lin (林智斌)" <Macpaul.Lin@mediatek.com>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"angelogioacchino.delregno@collabora.com"
<angelogioacchino.delregno@collabora.com>
Subject: Re: [PATCH v6 2/2] arm64: dts: mt8195: Add Ethernet controller
Date: Thu, 29 Dec 2022 00:42:00 +0000 [thread overview]
Message-ID: <a3959ffb49cd8ab2f3b0fad5149c222b08fc2032.camel@mediatek.com> (raw)
In-Reply-To: <Y6xrNAyvJhP22RdF@lunn.ch>
On Wed, 2022-12-28 at 17:13 +0100, Andrew Lunn wrote:
> > --- a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts
> > +++ b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts
> > @@ -258,6 +258,66 @@ &mt6359_vsram_others_ldo_reg {
> > };
> >
> > +ð {
> > + phy-mode ="rgmii-id";
> > + phy-handle = <ðernet_phy0>;
> > + snps,reset-gpio = <&pio 93 GPIO_ACTIVE_HIGH>;
> > + snps,reset-delays-us = <0 10000 10000>;
> > + pinctrl-names = "default", "sleep";
> > + pinctrl-0 = <ð_default_pins>;
> > + pinctrl-1 = <ð_sleep_pins>;
> > + status = "okay";
> > +
> > + mdio {
> > + compatible = "snps,dwmac-mdio";
> > + #address-cells = <1>;
> > + #size-cells = <0>;
>
> The mdio bus master is a property of the SoC, not the board. So i
> would expect it be in the .dtsi file.
OK, will move mdio to .dtsi.
>
> > + ethernet_phy0: ethernet-phy@1 {
> > + compatible = "ethernet-phy-id001c.c916";
> > + reg = <0x1>;
> > + };
>
> Is the PHY integrated into the SoC, or on the board?
The PHY is on the board, an external device as to SoC.
>
> You also don't need the compatible, if the PHY correctly implements
> the ID registers.
But without the compatible, it seems PHY driver will not be attached.
How should I do? Thanks in advance.
>
> Andrew
Best Regards!
Biao
next prev parent reply other threads:[~2022-12-29 0:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-28 6:33 [PATCH v6 0/2] arm64: dts: mt8195: Add Ethernet controller Biao Huang
2022-12-28 6:33 ` [PATCH v6 1/2] stmmac: dwmac-mediatek: remove the dwmac_fix_mac_speed Biao Huang
2022-12-28 6:33 ` [PATCH v6 2/2] arm64: dts: mt8195: Add Ethernet controller Biao Huang
2022-12-28 16:13 ` Andrew Lunn
2022-12-29 0:42 ` Biao Huang (黄彪) [this message]
2022-12-29 1:06 ` Andrew Lunn
2022-12-29 2:46 ` Biao Huang (黄彪)
2022-12-30 1:15 ` [PATCH v6 0/2] " Jakub Kicinski
2022-12-30 2:10 ` Biao Huang (黄彪)
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=a3959ffb49cd8ab2f3b0fad5149c222b08fc2032.camel@mediatek.com \
--to=biao.huang@mediatek.com \
--cc=Macpaul.Lin@mediatek.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=joabreu@synopsys.com \
--cc=krzysztof.kozlowski+dt@linaro.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=matthias.bgg@gmail.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=pabeni@redhat.com \
--cc=peppe.cavallaro@st.com \
--cc=richardcochran@gmail.com \
--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).