OSDN Git Service

ARM: dts: socfpga: Add SD card detect
authorDinh Nguyen <dinguyen@opensource.altera.com>
Thu, 14 Aug 2014 15:21:48 +0000 (10:21 -0500)
committerDinh Nguyen <dinguyen@opensource.altera.com>
Thu, 4 Sep 2014 15:15:51 +0000 (10:15 -0500)
Revision D of the SOCFGPA devkit has a GPIO line used for SD/MMC card detect.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Acked-by: Pavel Machek <pavel@denx.de>
arch/arm/boot/dts/socfpga_cyclone5.dtsi
arch/arm/boot/dts/socfpga_cyclone5_socdk.dts

index 1ee03c4..33cad8b 100644 (file)
@@ -28,7 +28,7 @@
                        };
                };
 
-               dwmmc0@ff704000 {
+               mmc0: dwmmc0@ff704000 {
                        num-slots = <1>;
                        broken-cd;
                        bus-width = <4>;
index 45de151..d7296a5 100644 (file)
        };
 };
 
+&mmc0 {
+       cd-gpios = <&gpio1 18 0>;
+};
+
 &usb1 {
        status = "okay";
 };