1 From 6cb02674a061e4ef4f437ab60c91038d4c0d85ef Mon Sep 17 00:00:00 2001
2 From: John Clark <inindev@gmail.com>
3 Date: Tue, 2 Jan 2024 02:40:53 +0000
4 Subject: [PATCH] arm64: dts: rockchip: fix nanopc-t6 sdmmc regulator
6 sdmmc on the nanopc-t6 is powered by vcc3v3_sd_s0, not vcc_3v3_s3
7 add the vcc3v3_sd_s0 regulator, and control it with gpio4_a5
9 Signed-off-by: John Clark <inindev@gmail.com>
10 Link: https://lore.kernel.org/r/20240102024054.1030313-1-inindev@gmail.com
11 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
13 arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts | 13 ++++++++++++-
14 1 file changed, 12 insertions(+), 1 deletion(-)
16 --- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
17 +++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
19 vin-supply = <&vcc5v0_sys>;
22 + vcc3v3_sd_s0: vcc3v3-sd-s0-regulator {
23 + compatible = "regulator-fixed";
25 + gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_LOW>;
27 + regulator-max-microvolt = <3300000>;
28 + regulator-min-microvolt = <3300000>;
29 + regulator-name = "vcc3v3_sd_s0";
30 + vin-supply = <&vcc_3v3_s3>;
33 vdd_4g_3v3: vdd-4g-3v3-regulator {
34 compatible = "regulator-fixed";
40 - vmmc-supply = <&vcc_3v3_s3>;
41 + vmmc-supply = <&vcc3v3_sd_s0>;
42 vqmmc-supply = <&vccio_sd_s0>;