MLK-22466 ARM64: dts: fsl-imx8dxl-phantom-mek.dtsi: add sd cd and wp support
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 20 Aug 2019 12:32:11 +0000 (20:32 +0800)
committerHaibo Chen <haibo.chen@nxp.com>
Wed, 21 Aug 2019 08:58:29 +0000 (16:58 +0800)
Add card detect and write protect support for the sd slot on imx8dxl-phantom-mek
board.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8dxl-phantom-mek.dtsi

index b04adff..f03774b 100755 (executable)
 
                pinctrl_usdhc2_gpio: usdhc2gpiogrp {
                        fsl,pins = <
-                               SC_P_USDHC1_RESET_B_CONN_USDHC1_RESET_B 0x00000021
-                               SC_P_USDHC1_WP_CONN_USDHC1_WP                   0x00000021
-                               SC_P_USDHC1_CD_B_CONN_USDHC1_CD_B               0x00000021
+                               SC_P_USDHC1_RESET_B_LSIO_GPIO4_IO19     0x00000021
+                               SC_P_USDHC1_WP_LSIO_GPIO4_IO21          0x00000021
+                               SC_P_USDHC1_CD_B_LSIO_GPIO4_IO22        0x00000021
                        >;
                };
 
        pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
        pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
        bus-width = <4>;
+       cd-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
+       wp-gpios = <&gpio4 21 GPIO_ACTIVE_HIGH>;
        vmmc-supply = <&reg_usdhc2_vmmc>;
        status = "okay";
 };