rockchip: rk3399-nanopi-4: Enable IO-domain driver in SPL
authorJustin Klaassen <justin@tidylabs.net>
Fri, 23 May 2025 16:53:41 +0000 (16:53 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 6 Jun 2025 09:21:54 +0000 (17:21 +0800)
commit210ab4f60df8d48abb475fd4dac7a9a74ffa6090
treeb3ccad1d1f66da4d3d558765ca8c0cb80664bd19
parent2abd7fff9ebf08d51614c58e824d184ebe550404
rockchip: rk3399-nanopi-4: Enable IO-domain driver in SPL

The NanoPi RK3399 boards support UHS-I (up to SDR104) SD cards, however
using any of these 1.8v modes results in a boot failure in SPL upon soft
reboot.

The issue is that the "vcc_sdio" regulator is left at 1.8v on reboot
and the corresponding GPIO defaults to 3.3v. This prevents the SD card
from being reinitialized and read successfully.

This change enables the RK8XX regulators and Rockchip IO-domain drivers
in SPL, which initializes "vcc_sdio" regulator to 3.0v and configures
the GPIO for the correct level on boot.

Signed-off-by: Justin Klaassen <justin@tidylabs.net>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3399-nanopi4-u-boot.dtsi
configs/nanopc-t4-rk3399_defconfig
configs/nanopi-m4-2gb-rk3399_defconfig
configs/nanopi-m4-rk3399_defconfig
configs/nanopi-m4b-rk3399_defconfig
configs/nanopi-neo4-rk3399_defconfig
configs/nanopi-r4s-rk3399_defconfig