]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ARM: dts: imx6qdl-kontron-samx6i: add SDIO_PWR_EN support
authorMichael Walle <mwalle@kernel.org>
Mon, 17 Jun 2024 09:13:36 +0000 (11:13 +0200)
committerShawn Guo <shawnguo@kernel.org>
Thu, 27 Jun 2024 07:24:55 +0000 (15:24 +0800)
The module can enable/disable the SD card power supply and has
it's dedicated pin SDIO_PWR_EN for that reason. This is esp.
useful to be able to reset the SD card if it was in an UHS mode.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi

index 4d3cd338a707306b65eaaf3278ddf6b02bd92fb8..b0fa07ade76d9b4215a9cb3d8b08cf80db5580ad 100644 (file)
                vin-supply = <&reg_smarc_suppy>;
        };
 
+       reg_sdio: regulator-sdio {
+               compatible = "regulator-fixed";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_reg_sdio>;
+               regulator-name = "V_3V3_SD";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               gpio = <&gpio1 29 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+               off-on-delay-us = <20000>;
+       };
+
        reg_smarc_lcdbklt: regulator-smarc-lcdbklt {
                compatible = "regulator-fixed";
                pinctrl-names = "default";
                >;
        };
 
+       pinctrl_reg_sdio: reg-sdiogrp {
+               fsl,pins = <
+                       MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0 /* SDIO_PWR_EN */
+               >;
+       };
+
        pinctrl_uart1: uart1grp {
                fsl,pins = <
                        MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
 
                        MX6QDL_PAD_NANDF_CS1__GPIO6_IO14 0x1b0b0 /* CD */
                        MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b0 /* WP */
-                       MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0 /* PWR_EN */
                >;
        };
 
        pinctrl-0 = <&pinctrl_usdhc3>;
        cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
        wp-gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
+       vmmc-supply = <&reg_sdio>;
        no-1-8-v;
 };