Skip to contentSkip to conversation

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

PATCH Superseded Jiaxing Hu 4 participants 12 messages Jul 16

Subsystems (2)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Jiaxing Hu

author
#0 lore raw

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

Add mainline support for the ArmSoM CM5, an RK3576 compute module, and its CM5-IO carrier board.

Patch 1 adds the binding, patch 2 the module dtsi and the carrier dts.

The on-module YT8531 PHY has no crystal and needs the SoC 25 MHz reference clock (clk_mac_refout). Ungating it for RGMII needs a small dwmac-rk change sent separately to netdev [1]; the clock is optional so this DTS applies without it.

Tested on a CM5-IO: the YT8531 is probed by the motorcomm driver and the link comes up at 1000 Mbit/s; RK806, HYM8563, eMMC, microSD, the USB3 hub and the PCIe root complex all probe. dtbs_check is clean.

Changes in v3:
- Remove the ES8388 codec from the file header and the i2c0 block comment. The node was dropped in v2 but the comments still named it (sashiko-bot on v2).
- Use gpios instead of gpio in the vcc_3v3_pcie fixed regulator, to match the other regulators in the file.
- Pick up Krzysztof's Acked-by on patch 1.
- The other v2 review notes need no change: the always-on plus off-in-suspend state on vdd_cpu_lit_s0 and vdd_gpu_s0 matches every rk3576 board upstream, and the eMMC full-pwr-cycle-in-suspend with no vmmc-supply is the same pattern used across rk3576. dtbs_check stays clean.

Changes in v2:
- Type-C DP alt-mode: name the altmodes child "displayport" and make svid a /bits/ 16 value; drop the undocumented svid from &usbdp_phy and add the missing mode-switch.
- Move the FUSB302 role-switch endpoint into the connector's ports; the fusb302 binding does not allow a port on the device node. Rename the node to usb-typec@22.
- Drop the ES8388 node (disabled, wrong compatible) and the unreferenced gmac0_rst, bt_reg_on and wifi_host_wake_irq pinctrls.
- Rename the wifi-poweren-gpio pinctrl node, it collided with gpio-consumer.yaml.
- Describe the PHY reset at the MDIO bus level rather than with the deprecated snps,reset-gpios; a per-PHY reset-gpios is applied only after the ID scan, too late for a PHY that boots held in reset.

[1] net: stmmac: dwmac-rk: enable the reference clock for output mode

Jiaxing Hu (2):
dt-bindings: arm: rockchip: Add ArmSoM CM5 and CM5-IO
arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO

 .../devicetree/bindings/arm/rockchip.yaml     |   7 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3576-armsom-cm5-io.dts     | 397 ++++++++++++
 .../boot/dts/rockchip/rk3576-armsom-cm5.dtsi  | 564 ++++++++++++++++++
 4 files changed, 969 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi
Signature · 7 lines
2.43.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
author
#1 lore raw

PATCH v3 1/2 dt-bindings: arm: rockchip: Add ArmSoM CM5 and CM5-IO

Add compatibles for the ArmSoM CM5, an RK3576 compute module, and its CM5-IO carrier board.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +7 -0
index 1a9dde186..5c7697f4d 100644
@@ -71,6 +71,13 @@ properties:
           - const: ariaboard,photonicat
           - const: rockchip,rk3568
 
+      - description: ArmSoM CM5 Module based boards
+        items:
+          - enum:
+              - armsom,cm5-io
+          - const: armsom,cm5
+          - const: rockchip,rk3576
+
       - description: ArmSoM Sige1 board
         items:
           - const: armsom,sige1
Signature · 7 lines
2.43.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
author
#2 lore raw

PATCH v3 2/2 arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO

In reply to Jiaxing Hu

Add the ArmSoM CM5, an RK3576 compute module (rk3576-armsom-cm5.dtsi), and its CM5-IO carrier (rk3576-armsom-cm5-io.dts). The module has the RK806 PMIC, HYM8563 RTC, eMMC, GMAC0 with an on-module MotorComm YT8531 PHY, and the SDIO bus for the on-module WiFi. The carrier adds HDMI, a GbE RJ45, two USB-A ports behind a USB3 hub, USB-C with FUSB302 and DP alt-mode, a PCIe 2.0 x1 M.2 slot, microSD, status LEDs and a 40-pin header.

The YT8531 has no crystal, so it uses the SoC 25 MHz reference output, described on the gmac node as clk_mac_refout. Its reset is described at the MDIO bus level: mdiobus releases a bus level reset before it scans for PHY IDs, whereas a per-PHY reset-gpios is only applied once the PHY has been found, which never happens while the PHY is still in reset.

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3576-armsom-cm5-io.dts     | 397 ++++++++++++
 .../boot/dts/rockchip/rk3576-armsom-cm5.dtsi  | 564 ++++++++++++++++++
 3 files changed, 962 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index cb55c6b70..3ec0b6e20 100644
@@ -165,6 +165,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5-display-vz.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5-io-expander.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-100ask-dshanpi-a1.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-armsom-cm5-io.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-armsom-sige5.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-armsom-sige5-v1.2-wifibt.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-evb1-v10.dtb
arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts new file +397 -0

397 lines not on this page · raw message

arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi new file +564 -0

564 lines not on this page · raw message

Signature · 7 lines
2.43.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
#3 lore raw
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] The DisplayPort controller (`dp`) is not enabled and not routed to the VOP2, breaking the…

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The DisplayPort controller (dp) is not enabled and not routed to the VOP2, breaking the advertised Type-C DP alt-mode.
- [Medium] The sai6 CPU DAI node is not enabled, which prevents the HDMI sound card from probing.
--

--- Patch [2]: [PATCH v3 2/2] arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO --- commit 6aa295a8cc84993de39b6dae02d2c7333d9385bb
Author: Jiaxing Hu <[email protected]>

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

This commit adds device tree files for the ArmSoM CM5, an RK3576 compute module, and its CM5-IO carrier board. It configures peripherals such as the RK806 PMIC, GMAC0, eMMC, HDMI, USB, and an M.2 PCIe slot.

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts new file +0 -0
new file mode 100644

[ ... ]

arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts hdmi_out_con: endpoint { · line 179

Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts new file +3 -0
@@ -174,6 +174,10 @@ hdmi_out_con: endpoint {
 	};
 };
 
+&hdmi_sound {
+	status = "okay";
+};

[Severity: Medium]
Will the HDMI sound card fail to probe without the sai6 CPU DAI enabled?

Since hdmi_sound relies on sai6 as its CPU endpoint (defined in the base SoC dtsi), leaving &sai6 disabled in this board file might prevent ALSA from registering the sound card, resulting in broken HDMI audio.

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts new file +1 -0
+
 &hdptxphy {
 	status = "okay";
 };

[ ... ]

arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts &usb_drd1_dwc3 { · line 329

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts new file +6 -0
@@ -317,6 +321,21 @@ &usb_drd1_dwc3 {
 	status = "okay";
 };
 
+&usbdp_phy {
+	status = "okay";
+	mode-switch;
+	orientation-switch;
+	sbu1-dc-gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
+	sbu2-dc-gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;

[Severity: Medium]
Does the DisplayPort controller also need to be enabled for DP alt-mode to function properly?

The usbdp_phy is configured for mode switching here, but the corresponding &dp node and its VOP2 display pipeline endpoint appear to be missing or disabled. Without the controller generating video data, will the Type-C port fail to output a video signal?

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts new file +4 -0
+
+	port {
+		#address-cells = <1>;
+		#size-cells = <0>;

[ ... ]

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
#4 lore raw
In reply to Jiaxing Hu

arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi line 150

Quoted 3 lines

+&gmac0 {

arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi new file +2 -0
+	/* The RX delay is added by the PHY, the TX delay by the MAC below. */
+	phy-mode = "rgmii-rxid";

Please read.

https://elixir.bootlin.com/linux/v6.15/source/Documentation/devicetree/bindings/net/ethernet-controller.yaml#L287

arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi line 158

Quoted 8 lines
arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi new file +8 -0
+	clock_in_out = "output";
+	clocks = <&cru CLK_GMAC0_125M_SRC>, <&cru CLK_GMAC0_RMII_CRU>,
+		 <&cru PCLK_GMAC0>, <&cru ACLK_GMAC0>,
+		 <&cru CLK_GMAC0_PTP_REF>, <&cru REFCLKO25M_GMAC0_OUT>;
+	clock-names = "stmmaceth", "clk_mac_ref", "pclk_mac", "aclk_mac",
+		      "ptp_ref", "clk_mac_refout";
+	tx_delay = <0x21>;
+	rx_delay = <0x00>;

Try setting phy-mode to rgmii-id, and these delays to 0, or removing them.

Andrew

author
#5 lore raw
Quoted 2 lines

Try setting phy-mode to rgmii-id, and these delays to 0, or removing them.

You are right. The PCB does not use long clock lines, so rgmii-id is the correct description and the delays should not be in the DT. Most rk3576 boards upstream already use rgmii-id with no tx_delay/rx_delay.

I will switch to rgmii-id, let the YT8531 add both delays internally, drop tx_delay/rx_delay, and re-test the 1000 Mbit/s link on the board before I send v4.

Thanks,
Jiaxing

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

maintainer
#6 lore raw
In reply to Jiaxing Hu

Am Donnerstag, 16. Juli 2026, 11:50:59 Mitteleuropäische Sommerzeit schrieb Jiaxing Hu:

Quoted 42 lines

Add mainline support for the ArmSoM CM5, an RK3576 compute module, and its CM5-IO carrier board.

Patch 1 adds the binding, patch 2 the module dtsi and the carrier dts.

The on-module YT8531 PHY has no crystal and needs the SoC 25 MHz reference clock (clk_mac_refout). Ungating it for RGMII needs a small dwmac-rk change sent separately to netdev [1]; the clock is optional so this DTS applies without it.

Tested on a CM5-IO: the YT8531 is probed by the motorcomm driver and the link comes up at 1000 Mbit/s; RK806, HYM8563, eMMC, microSD, the USB3 hub and the PCIe root complex all probe. dtbs_check is clean.

Changes in v3:
- Remove the ES8388 codec from the file header and the i2c0 block comment. The node was dropped in v2 but the comments still named it (sashiko-bot on v2).
- Use gpios instead of gpio in the vcc_3v3_pcie fixed regulator, to match the other regulators in the file.
- Pick up Krzysztof's Acked-by on patch 1.
- The other v2 review notes need no change: the always-on plus off-in-suspend state on vdd_cpu_lit_s0 and vdd_gpu_s0 matches every rk3576 board upstream, and the eMMC full-pwr-cycle-in-suspend with no vmmc-supply is the same pattern used across rk3576. dtbs_check stays clean.

Changes in v2:
- Type-C DP alt-mode: name the altmodes child "displayport" and make svid a /bits/ 16 value; drop the undocumented svid from &usbdp_phy and add the missing mode-switch.
- Move the FUSB302 role-switch endpoint into the connector's ports; the fusb302 binding does not allow a port on the device node. Rename the node to usb-typec@22.
- Drop the ES8388 node (disabled, wrong compatible) and the unreferenced gmac0_rst, bt_reg_on and wifi_host_wake_irq pinctrls.
- Rename the wifi-poweren-gpio pinctrl node, it collided with gpio-consumer.yaml.
- Describe the PHY reset at the MDIO bus level rather than with the deprecated snps,reset-gpios; a per-PHY reset-gpios is applied only after the ID scan, too late for a PHY that boots held in reset.

Quoted 5 lines

[1] net: stmmac: dwmac-rk: enable the reference clock for output mode

Jiaxing Hu (2):
dt-bindings: arm: rockchip: Add ArmSoM CM5 and CM5-IO
arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO

As Rob said in the v2 bindings, please slow down. Additionally that is the 2nd "v3" today?

If something is a resend ... please mark it as such, i.e. [PATCH RESENT x/y] ... and provide an explanation what went wrong in the cover-letter.

Thanks
Heiko

author
#7 lore raw
Quoted 2 lines

As Rob said in the v2 bindings, please slow down.
Additionally that is the 2nd "v3" today?

Sorry, both for the pace and for the double v3. The second v3 was not
intentional: my mail provider accepted the first one with SMTP 250 but then held it without delivering, so when nothing appeared on the list I resent it. The provider released both copies hours later, so two v3 threads showed up. I have moved off that provider.

I will stop respinning and collect review first. The next version will wait, will fold in Andrew's rgmii-id feedback after a board re-test, and will be marked and explained in the cover letter.

Sorry for the noise,
Jiaxing

author
#8 lore raw

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

Add mainline support for the ArmSoM CM5, an RK3576 compute module, and its CM5-IO carrier board.

Patch 1 adds the binding, patch 2 the module dtsi and the carrier dts.

The on-module YT8531 PHY has no crystal and needs the SoC 25 MHz reference clock (clk_mac_refout). Ungating it for RGMII needs a small dwmac-rk change sent separately to netdev [1]; the clock is optional so this DTS applies without it.

Tested on a CM5-IO: the YT8531 is probed by the motorcomm driver and the link comes up at 1000 Mbit/s; RK806, HYM8563, eMMC, microSD, the USB3 hub and the PCIe root complex all probe. dtbs_check is clean.

Changes in v3:
- Remove the ES8388 codec from the file header and the i2c0 block comment. The node was dropped in v2 but the comments still named it (sashiko-bot on v2).
- Use gpios instead of gpio in the vcc_3v3_pcie fixed regulator, to match the other regulators in the file.
- The other v2 review notes need no change: the always-on plus off-in-suspend state on vdd_cpu_lit_s0 and vdd_gpu_s0 matches every rk3576 board upstream, and the eMMC full-pwr-cycle-in-suspend with no vmmc-supply is the same pattern used across rk3576. dtbs_check stays clean.

Changes in v2:
- Type-C DP alt-mode: name the altmodes child "displayport" and make svid a /bits/ 16 value; drop the undocumented svid from &usbdp_phy and add the missing mode-switch.
- Move the FUSB302 role-switch endpoint into the connector's ports; the fusb302 binding does not allow a port on the device node. Rename the node to usb-typec@22.
- Drop the ES8388 node (disabled, wrong compatible) and the unreferenced gmac0_rst, bt_reg_on and wifi_host_wake_irq pinctrls.
- Rename the wifi-poweren-gpio pinctrl node, it collided with gpio-consumer.yaml.
- Describe the PHY reset at the MDIO bus level rather than with the deprecated snps,reset-gpios; a per-PHY reset-gpios is applied only after the ID scan, too late for a PHY that boots held in reset.

[1] net: stmmac: dwmac-rk: enable the reference clock for output mode

Jiaxing Hu (2):
dt-bindings: arm: rockchip: Add ArmSoM CM5 and CM5-IO
arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO

 .../devicetree/bindings/arm/rockchip.yaml     |   7 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3576-armsom-cm5-io.dts     | 397 ++++++++++++
 .../boot/dts/rockchip/rk3576-armsom-cm5.dtsi  | 564 ++++++++++++++++++
 4 files changed, 969 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi
Signature · 7 lines
2.43.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
author
#9 lore raw

PATCH v3 1/2 dt-bindings: arm: rockchip: Add ArmSoM CM5 and CM5-IO

Add compatibles for the ArmSoM CM5, an RK3576 compute module, and its CM5-IO carrier board.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +7 -0
index 1a9dde186..5c7697f4d 100644
@@ -71,6 +71,13 @@ properties:
           - const: ariaboard,photonicat
           - const: rockchip,rk3568
 
+      - description: ArmSoM CM5 Module based boards
+        items:
+          - enum:
+              - armsom,cm5-io
+          - const: armsom,cm5
+          - const: rockchip,rk3576
+
       - description: ArmSoM Sige1 board
         items:
           - const: armsom,sige1
Signature · 7 lines
2.43.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
author
#10 lore raw

PATCH v3 2/2 arm64: dts: rockchip: Add ArmSoM CM5 and CM5-IO

In reply to Jiaxing Hu

Add the ArmSoM CM5, an RK3576 compute module (rk3576-armsom-cm5.dtsi), and its CM5-IO carrier (rk3576-armsom-cm5-io.dts). The module has the RK806 PMIC, HYM8563 RTC, eMMC, GMAC0 with an on-module MotorComm YT8531 PHY, and the SDIO bus for the on-module WiFi. The carrier adds HDMI, a GbE RJ45, two USB-A ports behind a USB3 hub, USB-C with FUSB302 and DP alt-mode, a PCIe 2.0 x1 M.2 slot, microSD, status LEDs and a 40-pin header.

The YT8531 has no crystal, so it uses the SoC 25 MHz reference output, described on the gmac node as clk_mac_refout. Its reset is described at the MDIO bus level: mdiobus releases a bus level reset before it scans for PHY IDs, whereas a per-PHY reset-gpios is only applied once the PHY has been found, which never happens while the PHY is still in reset.

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3576-armsom-cm5-io.dts     | 397 ++++++++++++
 .../boot/dts/rockchip/rk3576-armsom-cm5.dtsi  | 564 ++++++++++++++++++
 3 files changed, 962 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index cb55c6b70..3ec0b6e20 100644
@@ -165,6 +165,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5-display-vz.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5-io-expander.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-100ask-dshanpi-a1.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-armsom-cm5-io.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-armsom-sige5.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-armsom-sige5-v1.2-wifibt.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-evb1-v10.dtb
arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-io.dts new file +397 -0

397 lines not on this page · raw message

arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi new file +564 -0

564 lines not on this page · raw message

Signature · 7 lines
2.43.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
#11 lore raw
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] Silently ignored clock configuration on MDIO PHY node. --

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 <[email protected]>
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.

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi new file +0 -0
new file mode 100644

[ ... ]

arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi line 502

Quoted 11 lines

+&mdio0 {

arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi new file +10 -0
+	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?

Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5.dtsi new file +2 -0
+	};
+};
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2