arm64: dts: rockchip: rv1126b-evb2-v10: Add sdmmc0 support for sdcard

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: Id39f6de11573bbde5203987a6ae7f0276a64e8bd
This commit is contained in:
Ziyuan Xu
2025-03-23 17:19:44 +08:00
committed by Tao Huang
parent 618c48f278
commit c8fa47de9d

View File

@@ -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>;
};