Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jiaxing Hu" <gahing@gahingwoo.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v5 2/2] arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO
Date: Sun, 19 Jul 2026 04:04:30 +0000	[thread overview]
Message-ID: <20260719040430.DFA801F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260719034611.3623066-3-gahing@gahingwoo.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Uninitialized hardware state (missing clock enablement & reset sequence violation) due to motorcomm PHY driver not handling clocks.
--

--- Patch [2]: [PATCH v5 2/2] arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO ---
commit c0855ea5f59329ce1c87ee05212dc9c8bf0d2728
Author: Jiaxing Hu <gahing@gahingwoo.com>

arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO

This patch adds device tree support for the Rockchip RK3576 based
ArmSoM CM5 compute module and its CM5-IO carrier board. It configures
the GMAC0 Ethernet with an on-module MotorComm YT8531 PHY.

> diff --git a/arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi b/arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi
> new file mode 100644
> index 0000000000000..b6977b973b340
> --- /dev/null
> +++ b/arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi
[ ... ]
> +&mdio0 {
> +	reset-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_LOW>;
> +	reset-delay-us = <20000>;
> +	reset-post-delay-us = <100000>;
> +
> +	rgmii_phy0: phy@1 {
> +		compatible = "ethernet-phy-id4f51.e91b",
> +			     "ethernet-phy-ieee802.3-c22";
> +		reg = <0x1>;
> +		clocks = <&cru REFCLKO25M_GMAC0_OUT>;
> +	};
> +};

[Severity: High]
The commit message states that the REFCLKO25M_GMAC0_OUT clock is enabled by
the PHY driver. Does the motorcomm PHY driver actually handle clocks?

Looking at drivers/net/phy/motorcomm.c, there don't appear to be any calls to
clk_get() or devm_clk_get() to fetch and enable the clocks specified in the
device tree.

Additionally, dwmac-rk.c only fetches a PHY clock if the phy-is-integrated
property is present, which is missing here.

Because the MDIO bus deasserts the reset-gpios before the PHY device is
probed, will the PHY be brought out of reset with a dead clock?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260719034611.3623066-1-gahing@gahingwoo.com?part=2

      reply	other threads:[~2026-07-19  4:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-19  3:46 [PATCH v5 0/2] arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO Jiaxing Hu
2026-07-19  3:46 ` [PATCH v5 1/2] dt-bindings: arm: " Jiaxing Hu
2026-07-19  3:46 ` [PATCH v5 2/2] arm64: dts: " Jiaxing Hu
2026-07-19  4:04   ` 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=20260719040430.DFA801F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gahing@gahingwoo.com \
    --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