1c17bc638fd462358807b718fd269e0de07b18b5
[openwrt/openwrt.git] /
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
5
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
8
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>
12 ---
13 arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts | 13 ++++++++++++-
14 1 file changed, 12 insertions(+), 1 deletion(-)
15
16 --- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
17 +++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
18 @@ -160,6 +160,17 @@
19 vin-supply = <&vcc5v0_sys>;
20 };
21
22 + vcc3v3_sd_s0: vcc3v3-sd-s0-regulator {
23 + compatible = "regulator-fixed";
24 + enable-active-low;
25 + gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_LOW>;
26 + regulator-boot-on;
27 + regulator-max-microvolt = <3300000>;
28 + regulator-min-microvolt = <3300000>;
29 + regulator-name = "vcc3v3_sd_s0";
30 + vin-supply = <&vcc_3v3_s3>;
31 + };
32 +
33 vdd_4g_3v3: vdd-4g-3v3-regulator {
34 compatible = "regulator-fixed";
35 enable-active-high;
36 @@ -560,7 +571,7 @@
37 no-mmc;
38 no-sdio;
39 sd-uhs-sdr104;
40 - vmmc-supply = <&vcc_3v3_s3>;
41 + vmmc-supply = <&vcc3v3_sd_s0>;
42 vqmmc-supply = <&vccio_sd_s0>;
43 status = "okay";
44 };