ARM: dts: add eMMC reset line for exynos4412-odroid-common
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 4 Feb 2015 15:35:58 +0000 (00:35 +0900)
committerKukjin Kim <kgene@kernel.org>
Thu, 26 Feb 2015 19:44:55 +0000 (04:44 +0900)
This patch adds reset-gpios property to the eMMC slot, so the MMC driver
is able to properly reset eMMC card on system restart and thus fixes
system hang on software reboot.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/boot/dts/exynos4412-odroid-common.dtsi

index de80b5bba20454b3e504fd26228d581bcb725190..3c5a7ab23c6bf11504ca1b96d49c68673d0fef68 100644 (file)
                };
        };
 
+       emmc_pwrseq: pwrseq {
+               pinctrl-0 = <&sd1_cd>;
+               pinctrl-names = "default";
+               compatible = "mmc-pwrseq-emmc";
+               reset-gpios = <&gpk1 2 1>;
+       };
+
        mmc@12550000 {
                pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
                pinctrl-names = "default";
                vmmc-supply = <&ldo20_reg &buck8_reg>;
+               mmc-pwrseq = <&emmc_pwrseq>;
                status = "okay";
 
                num-slots = <1>;
        };
 };
 
+/* RSTN signal for eMMC */
+&sd1_cd {
+       samsung,pin-pud = <0>;
+       samsung,pin-drv = <0>;
+};
+
 &pinctrl_1 {
        gpio_power_key: power_key {
                samsung,pins = "gpx1-3";