From: sashiko-bot@kernel.org
To: "Frank Li" <Frank.Li@nxp.com>
Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, Frank.Li@kernel.org
Subject: Re: [PATCH 1/4] ARM: dts: imx6qdl-sabrelite: add mdio phy address 0
Date: Wed, 13 May 2026 00:26:56 +0000 [thread overview]
Message-ID: <20260513002656.C8D20C2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260511-b4-imx25_dts_simple_warning-v1-1-01b855a5ce25@nxp.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Setting the Ethernet PHY `reg` property to the MDIO broadcast address (0) instead of the actual hardware-strapped address breaks Ethernet initialization on the SABRE Lite board.
--
commit fbbd7813db5860f802e25f49f30fa7e2a33c20e6
Author: Frank Li <Frank.Li@nxp.com>
ARM: dts: imx6qdl-sabrelite: add mdio phy address 0
This commit explicitly sets the Ethernet PHY reg property to 0 to resolve
device tree schema validation warnings. It relies on the IEEE 802.3
specification indicating that a PHY should respond to the broadcast
address 0.
> diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-sabrelite.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-sabrelite.dtsi
> --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-sabrelite.dtsi
> +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-sabrelite.dtsi
> @@ -291,8 +291,9 @@ mdio {
> #address-cells = <1>;
> #size-cells = <0>;
>
> - ethphy: ethernet-phy {
> + ethphy: ethernet-phy@0 {
> compatible = "ethernet-phy-ieee802.3-c22";
> + reg = <0>;
Could this cause a regression in Ethernet functionality on the Sabre Lite
board?
The device tree should accurately describe the physical hardware topology,
but the Micrel KSZ9021 PHY on the Sabre Lite board is hardware-strapped to
address 6, not 0. Furthermore, the KSZ9021 datasheet indicates that it does
not support address 0 as a broadcast address.
Prior to this patch, the absence of a reg property caused
of_mdio_parse_addr() to return an error. This triggered an auto-probing
loop over all 32 addresses, which successfully found the PHY at address 6.
By explicitly defining reg = <0>, the kernel skips the auto-scanning
fallback and exclusively probes address 0. Because the PHY does not respond
to MDIO reads at address 0, get_phy_device() will read 0xFFFF and fail with
-ENODEV, preventing the PHY from registering.
Should this instead set the reg property to the actual hardware-strapped
address 6 to satisfy the schema without breaking initialization?
> txen-skew-ps = <0>;
> txc-skew-ps = <3000>;
> rxdv-skew-ps = <0>;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260511-b4-imx25_dts_simple_warning-v1-0-01b855a5ce25@nxp.com?part=1
next prev parent reply other threads:[~2026-05-13 0:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 21:04 [PATCH 0/4] ARM: dts: DTB_CHECK warning cleanup Frank Li
2026-05-11 21:04 ` [PATCH 1/4] ARM: dts: imx6qdl-sabrelite: add mdio phy address 0 Frank Li
2026-05-11 22:15 ` Andrew Lunn
2026-05-12 7:52 ` Francesco Dolcini
2026-05-12 12:23 ` Fabio Estevam
2026-05-12 13:43 ` Fabio Estevam
2026-05-12 14:26 ` Frank Li
2026-05-12 7:51 ` Francesco Dolcini
2026-05-13 0:26 ` sashiko-bot [this message]
2026-05-11 21:04 ` [PATCH 2/4] ARM: dts: imx: add ti,deskew = <0> for ti,tfp410 Frank Li
2026-05-13 0:38 ` sashiko-bot
2026-05-11 21:04 ` [PATCH 3/4] ARM: dts: imx53-qsb: add dvdd and avdd supply for panel sii,43wvf1g Frank Li
2026-05-11 21:04 ` [PATCH 4/4] ARM: dts: imx53-ppd: add '#phy-cells' for usb-nop-xceiv Frank Li
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=20260513002656.C8D20C2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=krzk+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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