]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: OMAP5: uevm: add µSD card detect
authorH. Nikolaus Schaller <hns@goldelico.com>
Mon, 15 May 2017 08:31:16 +0000 (10:31 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 16 May 2017 16:46:28 +0000 (09:46 -0700)
If we have Linux installed in eMMC we can boot without
µSD card, but inserting one is not recognised.

The reason is that the card detect gpio (gpio5_152)
is not configured and attached to the mmc1 interface
driver and the mmc driver does not poll by default.

Hence we add pinmux and gpio setup for the SDCARD_NCD
signal.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap5-uevm.dts

index 0d42c46f13e7e37534d8149345690d3a3e9d837f..ec2c8baef62ac00bf40b7ae1d28da2eab3a327d0 100644 (file)
        };
 };
 
+&mmc1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&mmc1_pins>;
+
+       cd-gpios = <&gpio5 24 GPIO_ACTIVE_LOW>; /* gpio5_152 */
+};
+
 &omap5_pmx_core {
        evm_keys_pins: pinmux_evm_keys_gpio_pins {
                pinctrl-single,pins = <
                        OMAP5_IOPAD(0x1c8, PIN_INPUT | MUX_MODE0)               /* i2c5_sda */
                >;
        };
+
+       mmc1_pins: pinmux_mmc1_pins {
+               pinctrl-single,pins = <
+                       OMAP5_IOPAD(0x1d4, PIN_INPUT_PULLUP | MUX_MODE6)        /* gpio5_152 */
+               >;
+       };
 };
 
 &tpd12s015 {