From c8fa47de9d2e23933976d431c427e31c920b5c6e Mon Sep 17 00:00:00 2001 From: Ziyuan Xu Date: Sun, 23 Mar 2025 17:19:44 +0800 Subject: [PATCH] arm64: dts: rockchip: rv1126b-evb2-v10: Add sdmmc0 support for sdcard Signed-off-by: Ziyuan Xu Change-Id: Id39f6de11573bbde5203987a6ae7f0276a64e8bd --- .../boot/dts/rockchip/rv1126b-evb2-v10.dts | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rv1126b-evb2-v10.dts b/arch/arm64/boot/dts/rockchip/rv1126b-evb2-v10.dts index 2c89d44e826c..a974c4aabb67 100644 --- a/arch/arm64/boot/dts/rockchip/rv1126b-evb2-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rv1126b-evb2-v10.dts @@ -134,6 +134,30 @@ vin-supply = <&vccsys_stb>; }; + vcc_sd: vcc-sd { + compatible = "regulator-fixed"; + gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>; + regulator-name = "vcc_sd"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-low; + vin-supply = <&vcc_3v3>; + }; + + vccio_sd: vccio-sd { + compatible = "regulator-gpio"; + regulator-boot-on; + regulator-name = "vccio_sd"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_volt>; + gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; + vin-supply = <&vccsys_stb>; + states = <1800000 0x0 + 3300000 0x1>; + }; + vdd_log: vdd-log { compatible = "pwm-regulator"; pwms = <&pwm0_8ch_2 0 25000 1>; @@ -203,6 +227,13 @@ }; &pinctrl { + sdmmc { + /omit-if-no-ref/ + sdmmc_volt: sdmmc-volt { + rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + usb { vcc5v0_host_en: vcc5v0-host-en { rockchip,pins = <0 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; @@ -234,6 +265,20 @@ reset-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>; }; +&sdmmc0 { + max-frequency = <200000000>; + no-sdio; + no-mmc; + bus-width = <4>; + cap-mmc-highspeed; + cap-sd-highspeed; + disable-wp; + sd-uhs-sdr104; + vmmc-supply = <&vcc_sd>; + vqmmc-supply = <&vccio_sd>; + status = "okay"; +}; + &usb2phy_host { phy-supply = <&vcc5v0_host>; };