Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Coia Prant" <coiaprant@gmail.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v10 2/2] arm64: dts: rockchip: rk3568-photonicat: enable SGMII LAN port
Date: Mon, 05 Oct 2026 22:49:33 +0000	[thread overview]
Message-ID: <20261005224934.26EA21F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20261005224008.1140250-3-coiaprant@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] net: stmmac: infinite probe deferral due to unsupported XPCS compatible
- [Low] dts: undocumented and unparsed property rockchip,sgmii-mac-sel
--

commit 3f0b676bf5c1cf7b3503051c6c41df786bf6f4a2
Author: Coia Prant <coiaprant@gmail.com>

arm64: dts: rockchip: rk3568-photonicat: enable SGMII LAN port

This commit enables the Motorcomm YT8521SC Gigabit Ethernet PHY connected
to GMAC0 via XPCS SGMII on the Ariaboard Photonicat. It adds MDIO
configuration, enables the XPCS nodes, and configures combphy2.

> diff --git a/arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts b/arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts
> index 58c1052ba8ef3..fdaa4a2a4328b 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts
[ ... ]
> @@ -241,6 +242,7 @@ &combphy1 {
>  };
>  
>  &combphy2 {
> +	rockchip,sgmii-mac-sel = <0>;

[Severity: Low]
Is this rockchip,sgmii-mac-sel property properly documented and supported?

When running make dtbs_check, this property appears to trigger a validation
failure because it is not defined in any mainline binding (such as
phy-rockchip-naneng-combphy.yaml).

Since there is currently no mainline driver that parses this property, could
this just act as dead code that breaks device tree validation?

>  	status = "okay";
>  };
>  
[ ... ]
> -/* Motorcomm YT8521SC LAN port (require SGMII) */
> +/* Motorcomm YT8521SC LAN port */
>  &gmac0 {
> -	status = "disabled";
> +	assigned-clocks = <&cru SCLK_GMAC0_RX_TX>;
> +	assigned-clock-parents = <&clk_gmac0_xpcs_mii>;
> +	managed = "in-band-status";
> +	pcs-handle = <&xpcs_mii0>;

[Severity: High]
Will this hard dependency cause an infinite probe deferral for the gmac0
interface at boot time?

Because the xpcs_mii0 fwnode is a child of the xpcs node, it relies on the
rockchip,rk3568-xpcs compatible string. However, since there is no platform
driver in the mainline kernel that matches this compatible string, the MDIO
bus and devices for the XPCS node might never be instantiated.

When stmmac_dvr_probe() attempts to configure the MDIO bus and calls
xpcs_create_fwnode(), fwnode_mdio_find_device() will fail to find the
MDIO device for xpcs_mii0 and return -EPROBE_DEFER indefinitely.

> +	phy-handle = <&sgmii_phy>;
> +	phy-mode = "sgmii";
> +	phy-supply = <&vcc_3v3>;
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&gmac0_miim>;
> +	status = "okay";
>  };
[ ... ]
> +&xpcs_mii0 {
> +	status = "okay";
> +};

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261005224008.1140250-1-coiaprant@gmail.com?part=2

      reply	other threads:[~2026-10-05 22:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-05 22:40 [PATCH v10 0/2] arm64: dts: rockchip: add RK3568 XPCS nodes and enable SGMII on Photonicat Coia Prant
2026-10-05 22:40 ` [PATCH v10 1/2] arm64: dts: rockchip: rk3568: add XPCS and fixed-clock nodes Coia Prant
2026-10-05 22:50   ` sashiko-bot
2026-10-05 22:40 ` [PATCH v10 2/2] arm64: dts: rockchip: rk3568-photonicat: enable SGMII LAN port Coia Prant
2026-10-05 22:49   ` sashiko-bot [this message]

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=20261005224934.26EA21F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=coiaprant@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.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