Skip to contentSkip to conversation

Add Radxa CM5 module and IO board dts

PATCH Superseded FUKAUMI Naoki 3 participants 10 messages Dec 2, 2025 – Dec 3, 2025

Subsystems (2)

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v5 cover Add Radxa CM5 module and IO board dts

This patch series adds initial device tree support for the Radxa CM5 SoM and accompanying IO board.

V4 -> V5:
Patch (2/3), per Jimmy:
- Alias eMMC to mmc0
- Remove unused sdio alias
- Move gmac, hdmi0 nodes to carrier board dts

Patch (3/3), per Jimmy:
- Enable hdmi0_sound and i2s5_8ch
- Remove redundant enablement of sdhci
- Enable usb_host2_xhci

- Tested HDMI audio

V3 -> V4:
- Fixed XHCI initialization bug by changing try-power-role from source to sink

V2 -> V3:
- Addressed YAML syntax error in dt binding (per Rob)
- Fixed whitespace issue in dts reported by checkpatch.pl
- Split base SoM and carrier board into separate patches
- Added further details about the SoM and carrier to the commit messages

V1 -> V2:
- Added copyright header and data sheet links
- Removed non-existent property
- Sorted alphabetically
- Removed errant whitespace
- Moved status to the end of each node
- Removed pinctrl-names property from leds (indicated by CHECK_DTBS)
- Removed delays from gmac with internal delay

- Link to v4: https://lore.kernel.org/r/[email protected]

Joseph Kogut (3):
dt-bindings: arm: rockchip: Add Radxa CM5 IO board
arm64: dts: rockchip: Add rk3588 based Radxa CM5
arm64: dts: rockchip: Add support for CM5 IO carrier

 .../devicetree/bindings/arm/rockchip.yaml     |   7 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3588s-radxa-cm5-io.dts     | 486 ++++++++++++++++++
 .../boot/dts/rockchip/rk3588s-radxa-cm5.dtsi  | 135 +++++
 4 files changed, 629 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi
Signature · 7 lines
2.43.0


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

PATCH v5 1/3 dt-bindings: arm: rockchip: Add Radxa CM5 IO board

From: Joseph Kogut <[email protected]>

Add device tree binding for the Radxa CM5 IO board.

This board is based on the rk3588s.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +7 -0
index d496421dbd87..79e99694577e 100644
@@ -907,6 +907,13 @@ properties:
           - const: radxa,cm3
           - const: rockchip,rk3566
 
+      - description: Radxa Compute Module 5 (CM5)
+        items:
+          - enum:
+              - radxa,cm5-io
+          - const: radxa,cm5
+          - const: rockchip,rk3588s
+
       - description: Radxa CM3 Industrial
         items:
           - enum:
Signature · 7 lines
2.43.0


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

PATCH v5 2/3 arm64: dts: rockchip: Add rk3588 based Radxa CM5

In reply to FUKAUMI Naoki

From: Joseph Kogut <[email protected]>

Add initial support for the Radxa Compute Module 5 (CM5). The CM5 uses a proprietary connector.

Specification:
- Rockchip RK3588
- Up to 32 GB LPDDR4X
- Up to 128 GB eMMC
- 1x HDMI TX up to 8k@60 hz
- 1x eDP TX up to 4k@60 hz
- Gigabit Ethernet PHY

---
 .../boot/dts/rockchip/rk3588s-radxa-cm5.dtsi  | 135 ++++++++++++++++++
 1 file changed, 135 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi
arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi new file +135 -0
new file mode 100644
index 000000000000..6410ea5255dc
@@ -0,0 +1,135 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2025 Joseph Kogut <[email protected]>
+ */
+
+/*
+ * CM5 data sheet
+ * https://dl.radxa.com/cm5/v2210/radxa_cm5_v2210_schematic.pdf
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
+#include <dt-bindings/usb/pd.h>
+
+/ {
+	compatible = "radxa,cm5", "rockchip,rk3588s";
+
+	aliases {
+		mmc0 = &sdhci;
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led_sys: led-0 {
+			color = <LED_COLOR_ID_BLUE>;
+			default-state = "on";
+			function = LED_FUNCTION_HEARTBEAT;
+			gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+		};
+	};
+};
+
+&cpu_b0 {
+	cpu-supply = <&vdd_cpu_big0_s0>;
+};
+
+&cpu_b1 {
+	cpu-supply = <&vdd_cpu_big0_s0>;
+};
+
+&cpu_b2 {
+	cpu-supply = <&vdd_cpu_big1_s0>;
+};
+
+&cpu_b3 {
+	cpu-supply = <&vdd_cpu_big1_s0>;
+};
+
+&cpu_l0 {
+	cpu-supply = <&vdd_cpu_lit_s0>;
+};
+
+&cpu_l1 {
+	cpu-supply = <&vdd_cpu_lit_s0>;
+};
+
+&cpu_l2 {
+	cpu-supply = <&vdd_cpu_lit_s0>;
+};
+
+&cpu_l3 {
+	cpu-supply = <&vdd_cpu_lit_s0>;
+};
+
+&gpu {
+	mali-supply = <&vdd_gpu_s0>;
+	status = "okay";
+};
+
+&i2c0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c0m2_xfer>;
+	status = "okay";
+
+	vdd_cpu_big0_s0: regulator@42 {
+		compatible = "rockchip,rk8602";
+		reg = <0x42>;
+		fcs,suspend-voltage-selector = <1>;
+		regulator-name = "vdd_cpu_big0_s0";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <550000>;
+		regulator-max-microvolt = <1050000>;
+		regulator-ramp-delay = <2300>;
+		vin-supply = <&vcc5v0_sys>;
+
+		regulator-state-mem {
+			regulator-off-in-suspend;
+		};
+	};
+
+	vdd_cpu_big1_s0: regulator@43 {
+		compatible = "rockchip,rk8602";
+		reg = <0x43>;
+		fcs,suspend-voltage-selector = <1>;
+		regulator-name = "vdd_cpu_big1_s0";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <550000>;
+		regulator-max-microvolt = <1050000>;
+		regulator-ramp-delay = <2300>;
+		vin-supply = <&vcc5v0_sys>;
+
+		regulator-state-mem {
+			regulator-off-in-suspend;
+		};
+	};
+};
+
+&mdio1 {
+	rgmii_phy1: phy@1 {
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <0x1>;
+	};
+};
+
+&pd_gpu {
+	domain-supply = <&vdd_gpu_s0>;
+};
+
+&sdhci {
+	bus-width = <8>;
+	no-sdio;
+	no-sd;
+	non-removable;
+	max-frequency = <200000000>;
+	mmc-hs400-1_8v;
+	mmc-hs400-enhanced-strobe;
+	mmc-hs200-1_8v;
+	status = "okay";
+};
+
Signature · 7 lines
2.43.0


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

PATCH v5 3/3 arm64: dts: rockchip: Add support for CM5 IO carrier

In reply to FUKAUMI Naoki

From: Joseph Kogut <[email protected]>

Specification:
- 1x HDMI
- 2x MIPI DSI
- 2x MIPI CSI
- 1x eDP
- 1x M.2 E key
- 1x USB 3.0 Host
- 1x USB 3.0 OTG
- 2x USB 2.0 Host
- Headphone jack w/ microphone
- Gigabit Ethernet w/ PoE
- microSD slot
- 40-pin expansion header
- 12V DC

---
Rebased on linux-next 20251201, no change.

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3588s-radxa-cm5-io.dts     | 486 ++++++++++++++++++
 2 files changed, 487 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index dbdda9783e93..699ed38235fe 100644
@@ -209,6 +209,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-nanopi-r6c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-odroid-m2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-orangepi-5.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-orangepi-5b.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-radxa-cm5-io.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-roc-pc.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-rock-5a.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-rock-5c.dtb
arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts new file +486 -0

486 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
#4 lore raw

Re: [RESEND2 PATCH v5 3/3] arm64: dts: rockchip: Add support for CM5 IO carrier

Hi Fukaumi

Quoted 30 lines · FUKAUMI Naoki

From: Joseph Kogut <[email protected]>

Specification:
- 1x HDMI
- 2x MIPI DSI
- 2x MIPI CSI
- 1x eDP
- 1x M.2 E key
- 1x USB 3.0 Host
- 1x USB 3.0 OTG
- 2x USB 2.0 Host
- Headphone jack w/ microphone
- Gigabit Ethernet w/ PoE
- microSD slot
- 40-pin expansion header
- 12V DC

---
Rebased on linux-next 20251201, no change.

---
  arch/arm64/boot/dts/rockchip/Makefile         |   1 +
  .../dts/rockchip/rk3588s-radxa-cm5-io.dts     | 486 ++++++++++++++++++
  2 files changed, 487 insertions(+)

create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts

arch/arm64/boot/dts/rockchip/Makefile +0 -1
index dbdda9783e93..699ed38235fe 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile

...

arch/arm64/boot/dts/rockchip/Makefile

Quoted 12 lines
arch/arm64/boot/dts/rockchip/Makefile +12 -0
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&vcc5v0_sys>;
+	};
+
+	vcc3v3_pcie: regulator-3v3-vcc-pcie {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc3v3_pcie2x1l0";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		enable-active-high;
+		regulator-boot-on;
+		regulator-always-on;

Don't set pcie slot power as boot-on/always-on unless you have special reasons. Because the power/PERST#/clock is controlled by pcie host driver to make sure the timing fit PCIe CEM spec for better compatibility.

Quoted 12 lines
arch/arm64/boot/dts/rockchip/Makefile +12 -0
+		gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
+		startup-delay-us = <50000>;
+		vin-supply = <&vcc5v0_sys>;
+	};
+
+	vcc_3v3_s0: pldo-reg4 {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_3v3_s0";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;

...

arch/arm64/boot/dts/rockchip/Makefile

Quoted 8 lines
arch/arm64/boot/dts/rockchip/Makefile +8 -0
+};
+
+&sdmmc {
+	bus-width = <4>;
+	cap-mmc-highspeed;
+	cap-sd-highspeed;
+	disable-wp;
+	max-frequency = <200000000>;

Could be removed from board's dts unless you want to lower it.

Quoted 231 lines
arch/arm64/boot/dts/rockchip/Makefile +231 -0
+	no-sdio;
+	no-mmc;
+	sd-uhs-sdr104;
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det>;
+	vmmc-supply = <&vcc_3v3_s3>;
+	vqmmc-supply = <&vccio_sd_s0>;
+	status = "okay";
+};
+
+&spi2 {
+	assigned-clocks = <&cru CLK_SPI2>;
+	assigned-clock-rates = <200000000>;
+	num-cs = <1>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
+	status = "okay";
+
+	pmic@0 {
+		compatible = "rockchip,rk806";
+		reg = <0x0>;
+		interrupt-parent = <&gpio0>;
+		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
+			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
+		spi-max-frequency = <1000000>;
+		system-power-controller;
+
+		vcc1-supply = <&vcc5v0_sys>;
+		vcc2-supply = <&vcc5v0_sys>;
+		vcc3-supply = <&vcc5v0_sys>;
+		vcc4-supply = <&vcc5v0_sys>;
+		vcc5-supply = <&vcc5v0_sys>;
+		vcc6-supply = <&vcc5v0_sys>;
+		vcc7-supply = <&vcc5v0_sys>;
+		vcc8-supply = <&vcc5v0_sys>;
+		vcc9-supply = <&vcc5v0_sys>;
+		vcc10-supply = <&vcc5v0_sys>;
+		vcc11-supply = <&vcc_2v0_pldo_s3>;
+		vcc12-supply = <&vcc5v0_sys>;
+		vcc13-supply = <&vdd2_ddr_s3>;
+		vcc14-supply = <&vdd2_ddr_s3>;
+		vcca-supply = <&vcc5v0_sys>;
+
+		gpio-controller;
+		#gpio-cells = <2>;
+
+		rk806_dvs1_null: dvs1-null-pins {
+			pins = "gpio_pwrctrl1";
+			function = "pin_fun0";
+		};
+
+		rk806_dvs2_null: dvs2-null-pins {
+			pins = "gpio_pwrctrl2";
+			function = "pin_fun0";
+		};
+
+		rk806_dvs3_null: dvs3-null-pins {
+			pins = "gpio_pwrctrl3";
+			function = "pin_fun0";
+		};
+
+		regulators {
+			vdd_gpu_s0: dcdc-reg1 {
+				regulator-name = "vdd_gpu_s0";
+				regulator-boot-on;
+				regulator-enable-ramp-delay = <400>;
+				regulator-min-microvolt = <550000>;
+				regulator-max-microvolt = <950000>;
+				regulator-ramp-delay = <12500>;
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vdd_cpu_lit_s0: dcdc-reg2 {
+				regulator-name = "vdd_cpu_lit_s0";
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <550000>;
+				regulator-max-microvolt = <950000>;
+				regulator-ramp-delay = <12500>;
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vccio_sd_s0: pldo-reg5 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-name = "vccio_sd_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vdd2_ddr_s3: dcdc-reg6 {
+				regulator-name = "vdd2_ddr_s3";
+				regulator-always-on;
+				regulator-boot-on;
+
+				regulator-state-mem {
+					regulator-on-in-suspend;
+				};
+			};
+
+			vcc_2v0_pldo_s3: dcdc-reg7 {
+				regulator-name = "vdd_2v0_pldo_s3";
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <2000000>;
+				regulator-max-microvolt = <2000000>;
+				regulator-ramp-delay = <12500>;
+
+				regulator-state-mem {
+					regulator-on-in-suspend;
+					regulator-suspend-microvolt = <2000000>;
+				};
+			};
+
+			vcc_3v3_s3: dcdc-reg8 {
+				regulator-name = "vcc_3v3_s3";
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+
+				regulator-state-mem {
+					regulator-on-in-suspend;
+					regulator-suspend-microvolt = <3300000>;
+				};
+			};
+		};
+	};
+};
+
+&u2phy0 {
+	status = "okay";
+};
+
+&u2phy0_otg {
+	status = "okay";
+};
+
+&u2phy2 {
+	status = "okay";
+};
+
+&u2phy2_host {
+	status = "okay";
+};
+
+&u2phy3 {
+	status = "okay";
+};
+
+&u2phy3_host {
+	status = "okay";
+};
+
+&uart2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart2m0_xfer>;
+	status = "okay";
+};
+
+&usb_host0_ehci {
+	status = "okay";
+};
+
+&usb_host0_ohci {
+	status = "okay";
+};
+
+&usb_host0_xhci {
+	dr_mode = "otg";
+	usb-role-switch;
+	status = "okay";
+
+	port {
+		usb_host0_xhci_role_switch: endpoint {
+			remote-endpoint = <&usbc0_role_switch>;
+		};
+	};
+};
+
+&usb_host1_ehci {
+	status = "okay";
+};
+
+&usb_host1_ohci {
+	status = "okay";
+};
+
+&usb_host2_xhci {
+	status = "okay";
+};
+
+&usbdp_phy0 {
+	mode-switch;
+	orientation-switch;
+	sbu1-dc-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
+	sbu2-dc-gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
+	status = "okay";
+
+	port {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		usbdp_phy0_orientation_switch: endpoint@0 {
+			reg = <0>;
+			remote-endpoint = <&usbc0_orientation_switch>;
+		};
+
+		usbdp_phy0_dp_altmode_mux: endpoint@1 {
+			reg = <1>;
+			remote-endpoint = <&usbc0_dp_altmode_mux>;
+		};
+	};
+};
+
+&vop {
+	status = "okay";
+};
+

arch/arm64/boot/dts/rockchip/Makefile

Quoted 10 lines
arch/arm64/boot/dts/rockchip/Makefile +10 -0
+&vop_mmu {
+	status = "okay";
+};
+
+&vp0 {
+	vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
+		reg = <ROCKCHIP_VOP2_EP_HDMI0>;
+		remote-endpoint = <&hdmi0_in_vp0>;
+	};
+};

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

#5 lore raw

Re: [RESEND2 PATCH v5 3/3] arm64: dts: rockchip: Add support for CM5 IO carrier

Hi Shawn,

Thanks for your review!

I'll reflect your suggestions in v6.

Best regards,

--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.

Quoted 323 lines · Shawn Lin

Hi Fukaumi

Quoted 30 lines · FUKAUMI Naoki

From: Joseph Kogut <[email protected]>

Specification:
- 1x HDMI
- 2x MIPI DSI
- 2x MIPI CSI
- 1x eDP
- 1x M.2 E key
- 1x USB 3.0 Host
- 1x USB 3.0 OTG
- 2x USB 2.0 Host
- Headphone jack w/ microphone
- Gigabit Ethernet w/ PoE
- microSD slot
- 40-pin expansion header
- 12V DC

---
Rebased on linux-next 20251201, no change.
---
  arch/arm64/boot/dts/rockchip/Makefile         |   1 + .../dts/rockchip/rk3588s-radxa-cm5-io.dts     | 486 ++++++++++++++++++

  2 files changed, 487 insertions(+)

  create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5- io.dts

arch/arm64/boot/ dts/rockchip/Makefile renamed from arch/arm64/boot/dts/rockchip/Makefile +0 -1
index dbdda9783e93..699ed38235fe 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile

...

Quoted 4 lines

+        regulator-max-microvolt = <5000000>;
+        vin-supply = <&vcc5v0_sys>;
+    };
+

Quoted 8 lines

+    vcc3v3_pcie: regulator-3v3-vcc-pcie {
+        compatible = "regulator-fixed";
+        regulator-name = "vcc3v3_pcie2x1l0";
+        regulator-min-microvolt = <3300000>;
+        regulator-max-microvolt = <3300000>;
+        enable-active-high;
+        regulator-boot-on;
+        regulator-always-on;

Don't set pcie slot power as boot-on/always-on unless you have special reasons. Because the power/PERST#/clock is controlled by pcie host driver to make sure the timing fit PCIe CEM spec for better compatibility.

Quoted 12 lines

+        gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>; +        startup-delay-us = <50000>;
+        vin-supply = <&vcc5v0_sys>;
+    };
+
+    vcc_3v3_s0: pldo-reg4 {
+        compatible = "regulator-fixed";
+        regulator-name = "vcc_3v3_s0";
+        regulator-always-on;
+        regulator-boot-on;
+        regulator-min-microvolt = <3300000>; +        regulator-max-microvolt = <3300000>;

...

arch/arm64/boot/ dts/rockchip/Makefile

Quoted 8 lines
arch/arm64/boot/ dts/rockchip/Makefile renamed from arch/arm64/boot/dts/rockchip/Makefile +8 -0
+};
+
+&sdmmc {
+    bus-width = <4>;
+    cap-mmc-highspeed;
+    cap-sd-highspeed;
+    disable-wp;
+    max-frequency = <200000000>;

Could be removed from board's dts unless you want to lower it.

Quoted 241 lines

+    no-sdio;
+    no-mmc;
+    sd-uhs-sdr104;
+    pinctrl-names = "default";
+    pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det>; +    vmmc-supply = <&vcc_3v3_s3>;
+    vqmmc-supply = <&vccio_sd_s0>;
+    status = "okay";

arch/arm64/boot/ dts/rockchip/Makefile renamed from arch/arm64/boot/dts/rockchip/Makefile +233 -0
+};
+
+&spi2 {
+    assigned-clocks = <&cru CLK_SPI2>;
+    assigned-clock-rates = <200000000>;
+    num-cs = <1>;
+    pinctrl-names = "default";
+    pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
+    status = "okay";
+
+    pmic@0 {
+        compatible = "rockchip,rk806";
+        reg = <0x0>;
+        interrupt-parent = <&gpio0>;
+        interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
+        pinctrl-names = "default";
+        pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
+                <&rk806_dvs2_null>, <&rk806_dvs3_null>;
+        spi-max-frequency = <1000000>;
+        system-power-controller;
+
+        vcc1-supply = <&vcc5v0_sys>;
+        vcc2-supply = <&vcc5v0_sys>;
+        vcc3-supply = <&vcc5v0_sys>;
+        vcc4-supply = <&vcc5v0_sys>;
+        vcc5-supply = <&vcc5v0_sys>;
+        vcc6-supply = <&vcc5v0_sys>;
+        vcc7-supply = <&vcc5v0_sys>;
+        vcc8-supply = <&vcc5v0_sys>;
+        vcc9-supply = <&vcc5v0_sys>;
+        vcc10-supply = <&vcc5v0_sys>;
+        vcc11-supply = <&vcc_2v0_pldo_s3>;
+        vcc12-supply = <&vcc5v0_sys>;
+        vcc13-supply = <&vdd2_ddr_s3>;
+        vcc14-supply = <&vdd2_ddr_s3>;
+        vcca-supply = <&vcc5v0_sys>;
+
+        gpio-controller;
+        #gpio-cells = <2>;
+
+        rk806_dvs1_null: dvs1-null-pins {
+            pins = "gpio_pwrctrl1";
+            function = "pin_fun0";
+        };
+
+        rk806_dvs2_null: dvs2-null-pins {
+            pins = "gpio_pwrctrl2";
+            function = "pin_fun0";
+        };
+
+        rk806_dvs3_null: dvs3-null-pins {
+            pins = "gpio_pwrctrl3";
+            function = "pin_fun0";
+        };
+
+        regulators {
+            vdd_gpu_s0: dcdc-reg1 {
+                regulator-name = "vdd_gpu_s0";
+                regulator-boot-on;
+                regulator-enable-ramp-delay = <400>;
+                regulator-min-microvolt = <550000>;
+                regulator-max-microvolt = <950000>;
+                regulator-ramp-delay = <12500>;
+
+                regulator-state-mem {
+                    regulator-off-in-suspend;
+                };
+            };
+
+            vdd_cpu_lit_s0: dcdc-reg2 {
+                regulator-name = "vdd_cpu_lit_s0";
+                regulator-always-on;
+                regulator-boot-on;
+                regulator-min-microvolt = <550000>;
+                regulator-max-microvolt = <950000>;
+                regulator-ramp-delay = <12500>;
+
+                regulator-state-mem {
+                    regulator-off-in-suspend;
+                };
+            };
+
+            vccio_sd_s0: pldo-reg5 {
+                regulator-always-on;
+                regulator-boot-on;
+                regulator-min-microvolt = <1800000>;
+                regulator-max-microvolt = <3300000>;
+                regulator-name = "vccio_sd_s0";
+
+                regulator-state-mem {
+                    regulator-off-in-suspend;
+                };
+            };
+
+            vdd2_ddr_s3: dcdc-reg6 {
+                regulator-name = "vdd2_ddr_s3";
+                regulator-always-on;
+                regulator-boot-on;
+
+                regulator-state-mem {
+                    regulator-on-in-suspend;
+                };
+            };
+
+            vcc_2v0_pldo_s3: dcdc-reg7 {
+                regulator-name = "vdd_2v0_pldo_s3";
+                regulator-always-on;
+                regulator-boot-on;
+                regulator-min-microvolt = <2000000>;
+                regulator-max-microvolt = <2000000>;
+                regulator-ramp-delay = <12500>;
+
+                regulator-state-mem {
+                    regulator-on-in-suspend;
+                    regulator-suspend-microvolt = <2000000>;
+                };
+            };
+
+            vcc_3v3_s3: dcdc-reg8 {
+                regulator-name = "vcc_3v3_s3";
+                regulator-always-on;
+                regulator-boot-on;
+                regulator-min-microvolt = <3300000>;
+                regulator-max-microvolt = <3300000>;
+
+                regulator-state-mem {
+                    regulator-on-in-suspend;
+                    regulator-suspend-microvolt = <3300000>;
+                };
+            };
+        };
+    };
+};
+
+&u2phy0 {
+    status = "okay";
+};
+
+&u2phy0_otg {
+    status = "okay";
+};
+
+&u2phy2 {
+    status = "okay";
+};
+
+&u2phy2_host {
+    status = "okay";
+};
+
+&u2phy3 {
+    status = "okay";
+};
+
+&u2phy3_host {
+    status = "okay";
+};
+
+&uart2 {
+    pinctrl-names = "default";
+    pinctrl-0 = <&uart2m0_xfer>;
+    status = "okay";
+};
+
+&usb_host0_ehci {
+    status = "okay";
+};
+
+&usb_host0_ohci {
+    status = "okay";
+};
+
+&usb_host0_xhci {
+    dr_mode = "otg";
+    usb-role-switch;
+    status = "okay";
+
+    port {
+        usb_host0_xhci_role_switch: endpoint {
+            remote-endpoint = <&usbc0_role_switch>;
+        };
+    };
+};
+
+&usb_host1_ehci {
+    status = "okay";
+};
+
+&usb_host1_ohci {
+    status = "okay";
+};
+
+&usb_host2_xhci {
+    status = "okay";
+};
+
+&usbdp_phy0 {
+    mode-switch;
+    orientation-switch;
+    sbu1-dc-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
+    sbu2-dc-gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
+    status = "okay";
+
+    port {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        usbdp_phy0_orientation_switch: endpoint@0 {
+            reg = <0>;
+            remote-endpoint = <&usbc0_orientation_switch>;
+        };
+
+        usbdp_phy0_dp_altmode_mux: endpoint@1 {
+            reg = <1>;
+            remote-endpoint = <&usbc0_dp_altmode_mux>;
+        };
+    };
+};
+
+&vop {
+    status = "okay";
+};
+
+&vop_mmu {
+    status = "okay";
+};
+
+&vp0 {
+    vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
+        reg = <ROCKCHIP_VOP2_EP_HDMI0>;
+        remote-endpoint = <&hdmi0_in_vp0>;
+    };
+};
#6 lore raw
In reply to FUKAUMI Naoki

Hi all,

I sincerely hope the following will be helpful in your review.
https://github.com/RadxaNaoki/linux/blob/cm5-io-v999-20251201/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi
https://github.com/RadxaNaoki/linux/blob/cm5-io-v999-20251201/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts

Also, if you have a CM5 IO Board and require U-Boot, here you go:
https://github.com/RadxaNaoki/u-boot/tree/cm5-io-v2025.10

Best regards,

--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.

Quoted 50 lines · FUKAUMI Naoki

This patch series adds initial device tree support for the Radxa CM5 SoM and accompanying IO board.

V4 -> V5:
Patch (2/3), per Jimmy:
- Alias eMMC to mmc0
- Remove unused sdio alias
- Move gmac, hdmi0 nodes to carrier board dts

Patch (3/3), per Jimmy:
- Enable hdmi0_sound and i2s5_8ch
- Remove redundant enablement of sdhci
- Enable usb_host2_xhci

- Tested HDMI audio

V3 -> V4:
- Fixed XHCI initialization bug by changing try-power-role from source to sink

V2 -> V3:
- Addressed YAML syntax error in dt binding (per Rob)
- Fixed whitespace issue in dts reported by checkpatch.pl
- Split base SoM and carrier board into separate patches
- Added further details about the SoM and carrier to the commit messages

V1 -> V2:
- Added copyright header and data sheet links
- Removed non-existent property
- Sorted alphabetically
- Removed errant whitespace
- Moved status to the end of each node
- Removed pinctrl-names property from leds (indicated by CHECK_DTBS)
- Removed delays from gmac with internal delay

- Link to v4: https://lore.kernel.org/r/[email protected]

Joseph Kogut (3):
dt-bindings: arm: rockchip: Add Radxa CM5 IO board
arm64: dts: rockchip: Add rk3588 based Radxa CM5
arm64: dts: rockchip: Add support for CM5 IO carrier

  .../devicetree/bindings/arm/rockchip.yaml     |   7 +
  arch/arm64/boot/dts/rockchip/Makefile         |   1 +
  .../dts/rockchip/rk3588s-radxa-cm5-io.dts     | 486 ++++++++++++++++++
  .../boot/dts/rockchip/rk3588s-radxa-cm5.dtsi  | 135 +++++
  4 files changed, 629 insertions(+)

create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi

#7 lore raw
Quoted 6 lines · FUKAUMI Naoki

Hi all,

I sincerely hope the following will be helpful in your review.
https://github.com/RadxaNaoki/linux/blob/cm5-io-v999-20251201/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi
https://github.com/RadxaNaoki/linux/blob/cm5-io-v999-20251201/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts

Could you elaborate on why you're linking to the "v999" branch? The content of that branch doesn't match the contents of this patch series (i.e. RESEND 2 of v5). The "v5" branch looks closer to this submission.
https://github.com/RadxaNaoki/linux/blob/cm5-io-v5-20251201

Comments on the "v999" branch...it does have the improvements:
- that allows the usage of the Radxa eMMC to uSD adapter
- defines the gmac1 in the SoM dtsi, but only enables the gmac1 in the IO board's dts.

Quoted 6 lines

Best regards,

--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.

Jimmy

#8 lore raw

Hi Jimmy,

Quoted 8 lines · Jimmy Hon
Quoted 6 lines · FUKAUMI Naoki

Hi all,

I sincerely hope the following will be helpful in your review.
https://github.com/RadxaNaoki/linux/blob/cm5-io-v999-20251201/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi
https://github.com/RadxaNaoki/linux/blob/cm5-io-v999-20251201/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts

Could you elaborate on why you're linking to the "v999" branch? The

When you review something (e.g., v5), you might find it helpful to refer to another similar thing (e.g., v999).

Quoted 6 lines

content of that branch doesn't match the contents of this patch series (i.e. RESEND 2 of v5). The "v5" branch looks closer to this submission.
https://github.com/RadxaNaoki/linux/blob/cm5-io-v5-20251201

Comments on the "v999" branch...it does have the improvements:

You do not need to review v999, as it is not part of this patch series (it is Joseph's work). Please only review v5 and subsequent versions.

Quoted 3 lines

- that allows the usage of the Radxa eMMC to uSD adapter
- defines the gmac1 in the SoM dtsi, but only enables the gmac1 in the IO board's dts.

Thanks anyway.

Best regards,

--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.

Quoted 9 lines
Quoted 6 lines

Best regards,

--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.

Jimmy

#9 lore raw
Quoted 14 lines · FUKAUMI Naoki

Hi Jimmy,

Quoted 8 lines · Jimmy Hon
Quoted 6 lines · FUKAUMI Naoki

Hi all,

I sincerely hope the following will be helpful in your review.
   https://github.com/RadxaNaoki/linux/blob/cm5-io-v999-20251201/ arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi
   https://github.com/RadxaNaoki/linux/blob/cm5-io-v999-20251201/ arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts

Could you elaborate on why you're linking to the "v999" branch? The

When you review something (e.g., v5), you might find it helpful to refer to another similar thing (e.g., v999).

Quoted 8 lines
Quoted 6 lines

content of that branch doesn't match the contents of this patch series (i.e. RESEND 2 of v5). The "v5" branch looks closer to this submission.
https://github.com/RadxaNaoki/linux/blob/cm5-io-v5-20251201

Comments on the "v999" branch...it does have the improvements:

You do not need to review v999, as it is not part of this patch series (it is Joseph's work). Please only review v5 and subsequent versions.

"it" before "is Joseph's work" was unclear... I meant "this patch series is Joseph's work".

Quoted 5 lines
Quoted 3 lines

- that allows the usage of the Radxa eMMC to uSD adapter
- defines the gmac1 in the SoM dtsi, but only enables the gmac1 in the IO board's dts.

Thanks anyway.

I'll reflect your suggestion in v6.
https://lore.kernel.org/linux-rockchip/CALWfF7+G6MRvuSm8a-a0KcPduXz=sYsJT0bB300rAqmtt2w-cg@mail.gmail.com/

Quoted 16 lines

Best regards,

Signature · 2 lines
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.
Quoted 9 lines
Quoted 6 lines

Best regards,

Signature · 2 lines
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.

Jimmy