[PATCH net-next] ARM: dts: imx6qdl: Remove unnecessary mdio #address-cells/#size-cells

Joakim Zhang qiangqing.zhang at nxp.com
Fri Jul 23 22:21:29 PDT 2021


Hi Fabio,

> -----Original Message-----
> From: Fabio Estevam <festevam at gmail.com>
> Sent: 2021年7月23日 21:16
> To: Vladimir Oltean <olteanv at gmail.com>
> Cc: David S. Miller <davem at davemloft.net>; Shawn Guo
> <shawnguo at kernel.org>; moderated list:ARM/FREESCALE IMX / MXC ARM
> ARCHITECTURE <linux-arm-kernel at lists.infradead.org>; Joakim Zhang
> <qiangqing.zhang at nxp.com>; Rob Herring <robh+dt at kernel.org>; netdev
> <netdev at vger.kernel.org>; open list:OPEN FIRMWARE AND FLATTENED
> DEVICE TREE BINDINGS <devicetree at vger.kernel.org>
> Subject: Re: [PATCH net-next] ARM: dts: imx6qdl: Remove unnecessary mdio
> #address-cells/#size-cells
> 
> Hi Vladimr,
> 
> On Fri, Jul 23, 2021 at 10:08 AM Vladimir Oltean <olteanv at gmail.com> wrote:
> 
> > Are you actually sure this is the correct fix? If I look at mdio.yaml,
> > I think it is pretty clear that the "ethernet-phy" subnode of the MDIO
> > controller must have an "@[0-9a-f]+$" pattern, and a "reg" property.
> > If it did, then it wouldn't warn about #address-cells.
> 
> Thanks for reviewing it.
> 
> After double-checking I realize that the correct fix would be to pass the phy
> address, like:
> 
> phy: ethernet-phy at 1 {
> reg = <1>;
> 
> Since the Ethernet PHY address is design dependant, I can not make the fix
> myself.
> 
> I will try to ping the board maintainers for passing the correct phy address.

Thanks.

I prepare this patch to fix dtbs_check when convert fec binding into schema.
I realized that we need a "reg" under phy device node, but I also don't know how to add it since
the phy is obviously not on board. And I check the phy code, it supports auto scan for PHYs with empty
"reg" property.

Best Regards,
Joakim Zhang
> Thanks


More information about the linux-arm-kernel mailing list