ARM: dts: imx6qdl-hummingboard: add SD card regulator
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 28 Nov 2017 15:02:51 +0000 (15:02 +0000)
committerShawn Guo <shawnguo@kernel.org>
Tue, 26 Dec 2017 08:15:44 +0000 (16:15 +0800)
Add the SD card regulator, which allows the SD card power to be switched
on/off.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-hummingboard.dtsi

index 84e6392..1b33cd6 100644 (file)
                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 {
                compatible = "regulator-fixed";
                enable-active-high;
                                MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
                        >;
                };
+               pinctrl_hummingboard_vmmc: hummingboard-vmmc {
+                       fsl,pins = <
+                               MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0
+                       >;
+               };
        };
 };
 
                &pinctrl_hummingboard_usdhc2_aux
                &pinctrl_hummingboard_usdhc2
        >;
-       vmmc-supply = <&reg_3p3v>;
+       vmmc-supply = <&v_sd>;
        cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
        status = "okay";
 };