ARM: dts: imx7d-sdb: Describe the SD card regulator
authorFabio Estevam <festevam@denx.de>
Sat, 27 May 2023 16:06:33 +0000 (13:06 -0300)
committerShawn Guo <shawnguo@kernel.org>
Sun, 4 Jun 2023 12:09:01 +0000 (20:09 +0800)
Improve the devicetree description by adding the SD card regulator
that is controlled via GPIO5_2.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7d-sdb.dts

index 25681c4..c898d66 100644 (file)
                };
        };
 
+       reg_sd1_vmmc: regulator-sd1-vmmc {
+               compatible = "regulator-fixed";
+               regulator-name = "VDD_SD1";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+               startup-delay-us = <200000>;
+               off-on-delay-us = <20000>;
+       };
+
        reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
                compatible = "regulator-fixed";
                regulator-name = "usb_otg1_vbus";
        pinctrl-0 = <&pinctrl_usdhc1>;
        cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
        wp-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
+       vmmc-supply = <&reg_sd1_vmmc>;
        wakeup-source;
        keep-power-in-suspend;
        status = "okay";