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

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Silently ignored clock configuration on MDIO PHY node.
--

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

This patch adds the ArmSoM CM5 compute module and its CM5-IO carrier board,
configuring peripherals such as GMAC0 with an on-module Ethernet PHY, USB,
PCIe, and HDMI. It also describes the reset and 25 MHz reference clock
required for the YT8531 Ethernet 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
> --- /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-ieee802.3-c22";
> +		reg = <0x1>;
> +		clocks = <&cru REFCLKO25M_GMAC0_OUT>;
> +		assigned-clocks = <&cru REFCLKO25M_GMAC0_OUT>;
> +		assigned-clock-rates = <25000000>;

[Severity: Medium]
Will these assigned clock properties be processed by the kernel?

Since this PHY is placed on the mdio bus, which doesn't process assigned-clocks
automatically like the platform bus does, it appears this configuration will be
silently ignored.

If the bootloader leaves this clock unconfigured, the Ethernet PHY might fail to
operate. Should these properties be moved to the parent platform device (gmac0)
instead, so that the 25 MHz reference clock rate takes effect?

> +	};
> +};

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

       reply	other threads:[~2026-07-16 14:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260716081711.2482259-1-gahing@gahingwoo.com>
     [not found] ` <20260716081711.2482259-3-gahing@gahingwoo.com>
2026-07-16 14:23   ` sashiko-bot [this message]
     [not found] <20260716095101.2498464-1-gahing@gahingwoo.com>
     [not found] ` <20260716095101.2498464-3-gahing@gahingwoo.com>
2026-07-16 14:24   ` [PATCH v3 2/2] arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO sashiko-bot
2026-07-16 18:42   ` Andrew Lunn

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=20260716142331.29C3B1F00A3A@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