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

FUKAUMI Naoki naoki at radxa.com
Wed Dec 3 01:04:58 PST 2025


Hi Shawn,

Thanks for your review!

I'll reflect your suggestions in v6.

Best regards,

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

On 12/2/25 18:00, Shawn Lin wrote:
> Hi Fukaumi
> 
> 在 2025/12/02 星期二 16:40, FUKAUMI Naoki 写道:
>> From: Joseph Kogut <joseph.kogut at gmail.com>
>>
>> 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
>>
>> Signed-off-by: Joseph Kogut <joseph.kogut at gmail.com>
>> Signed-off-by: FUKAUMI Naoki <naoki at radxa.com>
>> ---
>> 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
>>
>> diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/ 
>> dts/rockchip/Makefile
>> index dbdda9783e93..699ed38235fe 100644
>> --- a/arch/arm64/boot/dts/rockchip/Makefile
> 
> ...
> 
>> +        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.
> 
>> +        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>;
> 
> ...
> 
>> +};
>> +
>> +&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.
> 
>> +    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 at 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 at 0 {
>> +            reg = <0>;
>> +            remote-endpoint = <&usbc0_orientation_switch>;
>> +        };
>> +
>> +        usbdp_phy0_dp_altmode_mux: endpoint at 1 {
>> +            reg = <1>;
>> +            remote-endpoint = <&usbc0_dp_altmode_mux>;
>> +        };
>> +    };
>> +};
>> +
>> +&vop {
>> +    status = "okay";
>> +};
>> +
>> +&vop_mmu {
>> +    status = "okay";
>> +};
>> +
>> +&vp0 {
>> +    vp0_out_hdmi0: endpoint at ROCKCHIP_VOP2_EP_HDMI0 {
>> +        reg = <ROCKCHIP_VOP2_EP_HDMI0>;
>> +        remote-endpoint = <&hdmi0_in_vp0>;
>> +    };
>> +};
> 
> 




More information about the Linux-rockchip mailing list