board: rockchip: Add LCKFB TaishanPi 3M
Subsystems (3)
PATCH 1/1 board: rockchip: Add LCKFB TaishanPi 3M
Add support for the LCKFB TaishanPi 3M, an RK3576 based board.
The board device tree describes the microSD card detect pin as a plain GPIO (sdmmc0_det_l) for its cd-gpios property. dw_mmc does not use cd-gpios, so the pad stays in GPIO mode and switching the bus to 4-bit high speed fails with:
CMD_SEND:6
ARG 0x80fffff1
RET -110 unable to select a mode
mmc_init: -524
Use the sdmmc0_det pinmux in the U-Boot device tree, like other Rockchip boards do, so the card detect signal reaches the SDMMC controller.
Signed-off-by Xuechao Han <[email protected]>
Cc Kever Yang <[email protected]>
Cc Quentin Schulz <[email protected]>
Cc Simon Glass <[email protected]>
Cc Jonas Karlman <[email protected]>
--- arch/arm/dts/rk3576-lckfb-tspi-3m-u-boot.dtsi | 28 ++++++++ arch/arm/mach-rockchip/rk3576/MAINTAINERS | 6 ++ configs/lckfb-tspi-3m-rk3576_defconfig | 65 +++++++++++++++++++ doc/board/rockchip/rockchip.rst | 1 + 4 files changed, 100 insertions(+) create mode 100644 arch/arm/dts/rk3576-lckfb-tspi-3m-u-boot.dtsi create mode 100644 configs/lckfb-tspi-3m-rk3576_defconfig
arch/arm/dts/rk3576-lckfb-tspi-3m-u-boot.dtsi new file +28 -0
@@ -0,0 +1,28 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2026 FragrantOrchid <[email protected]> + * + * U-Boot specific device tree changes for the LCKFB TaishanPi 3M (RK3576). + */ + +#include "rk3576-u-boot.dtsi" + +/* + * Use sdmmc0_det (SDMMC0_DETN) instead of sdmmc0_det_l, which the board device + * tree selects as a plain GPIO for its cd-gpios. dw_mmc does not read + * cd-gpios, so the pad stays in GPIO mode and the switch to 4-bit high speed + * mode fails; both entries are GPIO0_A7 with the same pull-up and only the mux + * value differs: + * + * CMD_SEND:6 + * ARG 0x80fffff1 + * RET -110 + * unable to select a mode + * mmc_init: -524 + * + * 1-bit/25 MHz still works, so the slot looks alive until the first wide bus + * data transfer. + */ +&sdmmc { + pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>; +};
arch/arm/mach-rockchip/rk3576/MAINTAINERS +6 -0
@@ -4,6 +4,12 @@ S: Maintained F: arch/arm/dts/rk3576-generic* F: configs/generic-rk3576_defconfig +LCKFB-TSPI-3M-RK3576 +M: Xuechao Han <[email protected]> +S: Maintained +N: rk3576-lckfb-tspi-3m +F: configs/lckfb-tspi-3m-rk3576_defconfig + NANOPI-M5-RK3576 M: Jonas Karlman <[email protected]> S: Maintained
configs/lckfb-tspi-3m-rk3576_defconfig new file +65 -0
65 lines not on this page · raw message
doc/board/rockchip/rockchip.rst +1 -0
@@ -150,6 +150,7 @@ List of mainline supported Rockchip boards: - FriendlyElec NanoPi M5 (nanopi-m5-rk3576) - FriendlyElec NanoPi R76S (nanopi-r76s-rk3576) - Generic RK3576 (generic-rk3576) + - LCKFB TaishanPi 3M (lckfb-tspi-3m-rk3576) - Luckfox Omni3576 (omni3576-rk3576) - Radxa ROCK 4D (rock-4d-rk3576)
Signature · 1 line
2.47.3