]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: imx6qdl-udoo: Properly describe the SD card detect
authorFabio Estevam <festevam@gmail.com>
Sat, 18 Dec 2021 21:10:21 +0000 (18:10 -0300)
committerTom Rini <trini@konsulko.com>
Sat, 8 Jan 2022 16:16:03 +0000 (11:16 -0500)
GPIO7_IO00 is used as SD card detect.

Properly describe this in the devicetree.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
arch/arm/dts/imx6qdl-udoo.dtsi

index d07d8f83456d241a288be60ce729579b9dded12f..2d0d102661bdca3091bc35d4afe3b1003afe7868 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  */
-
+#include <dt-bindings/gpio/gpio.h>
 / {
        aliases {
                backlight = &backlight;
                                MX6QDL_PAD_SD3_DAT1__SD3_DATA1          0x17059
                                MX6QDL_PAD_SD3_DAT2__SD3_DATA2          0x17059
                                MX6QDL_PAD_SD3_DAT3__SD3_DATA3          0x17059
+                               MX6QDL_PAD_SD3_DAT5__GPIO7_IO00         0x1b0b0
                        >;
                };
 
 &usdhc3 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usdhc3>;
-       non-removable;
+       cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
        status = "okay";
 };