ARM: dts: am43x-epos-evm: add SD card hotplug support
authorBalaji T K <balajitk@ti.com>
Mon, 3 Mar 2014 14:50:20 +0000 (20:20 +0530)
committerTony Lindgren <tony@atomide.com>
Wed, 5 Mar 2014 19:53:36 +0000 (11:53 -0800)
Add card detect gpio for SD card slot and include dt gpio header.

Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am4372.dtsi
arch/arm/boot/dts/am43x-epos-evm.dts

index b687869b82982e0c94c846b393fc3e26dbef03c6..36d523a268314d3e1948dd894ae6b07141ac946e 100644 (file)
@@ -8,6 +8,7 @@
  * kind, whether express or implied.
  */
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 
 #include "skeleton.dtsi"
index a3a53ce84f1619dfca675c43ea9d699aa44e949f..167dbc8494deef2ba3bd9c63a7bf20afe9ddb21f 100644 (file)
                                0x19c (PIN_OUTPUT | MUX_MODE3)          /* mcasp0_ahclkr.spi1_cs0 */
                        >;
                };
+
+               mmc1_pins: pinmux_mmc1_pins {
+                       pinctrl-single,pins = <
+                               0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
+                       >;
+               };
        };
 
        matrix_keypad: matrix_keypad@0 {
        status = "okay";
        vmmc-supply = <&vmmcsd_fixed>;
        bus-width = <4>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&mmc1_pins>;
+       cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
 };
 
 &mac {