Commit bf504ca7 authored by Russell King's avatar Russell King Committed by Shawn Guo

ARM: dts: imx6qdl-hummingboard: add SD card regulator

Add the SD card regulator, which allows the SD card power to be switched
on/off.
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 41cc29d2
...@@ -59,6 +59,19 @@ reg_3p3v: 3p3v { ...@@ -59,6 +59,19 @@ reg_3p3v: 3p3v {
regulator-always-on; regulator-always-on;
}; };
v_sd: regulator-v-sd {
compatible = "regulator-fixed";
gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hummingboard_vmmc>;
regulator-boot-on;
regulator-max-microvolt = <3300000>;
regulator-min-microvolt = <3300000>;
regulator-name = "v_sd";
startup-delay-us = <1000>;
vin-supply = <&reg_3p3v>;
};
reg_usbh1_vbus: usb-h1-vbus { reg_usbh1_vbus: usb-h1-vbus {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
enable-active-high; enable-active-high;
...@@ -241,6 +254,11 @@ MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 ...@@ -241,6 +254,11 @@ MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
>; >;
}; };
pinctrl_hummingboard_vmmc: hummingboard-vmmc {
fsl,pins = <
MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0
>;
};
}; };
}; };
...@@ -292,7 +310,7 @@ &usdhc2 { ...@@ -292,7 +310,7 @@ &usdhc2 {
&pinctrl_hummingboard_usdhc2_aux &pinctrl_hummingboard_usdhc2_aux
&pinctrl_hummingboard_usdhc2 &pinctrl_hummingboard_usdhc2
>; >;
vmmc-supply = <&reg_3p3v>; vmmc-supply = <&v_sd>;
cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
status = "okay"; status = "okay";
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment