[RFC] arm64: dts: rockchip: rk3576-lckfb-tspi-3m: sdmmc0_det_l question

From: 220110626hanxuechao

Date: Sun Nov 22 2026 - 00:51:56 EST


Hi Heiko, Liu Changjie,

I have a question about the SD card detect configuration of the LCKFB
Taishan Pi 3M.

The &sdmmc node uses the board-specific sdmmc0_det_l group:

sdmmc {
sdmmc0_det_l: sdmmc0-det-l {
rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
};
};

which muxes GPIO0_A7 as a GPIO, matching

cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;

The SoC dtsi already provides sdmmc0_det for the same pin, using the
SDMMC0_DETn function instead:

sdmmc0_det: sdmmc0-det {
rockchip,pins = <0 RK_PA7 1 &pcfg_pull_up>;
};

and other RK3576 boards use it together with cd-gpios, for example
rk3576-evb1-v10.dts and rk3576-evb2-v10.dts. Both groups configure the
same pin with the same pull-up; only the pin function differs.

I tested the node below on a Taishan Pi 3M with mainline v7.4-rc2,
i.e. with sdmmc0_det instead of sdmmc0_det_l and cd-gpios unchanged,
and card insertion and removal are still detected correctly:

&sdmmc {
bus-width = <4>;
cap-sd-highspeed;
cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
disable-wp;
max-frequency = <50000000>;
no-mmc;
no-sdio;
pinctrl-names = "default";
/* GPIO0_B6/SDMMC0_PWREN is not connected on this board. */
pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>;
vmmc-supply = <&vcc_3v3_s0>;
vqmmc-supply = <&vccio_sd_s0>;
status = "okay";
};

Could you explain the reasoning behind using sdmmc0_det_l instead of
sdmmc0_det here? Card detection also works with sdmmc0_det in my
testing, so I would like to understand whether the board-specific
group is required or just a preference.

Thanks,
Xuechao Han