ARM: dts: exynos: Add pin configuration for SD write protect on Odroid XU3/XU4/HC1
authorAnand Moon <linux.amoon@gmail.com>
Thu, 27 Sep 2018 14:07:36 +0000 (14:07 +0000)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 13 Nov 2018 19:54:23 +0000 (20:54 +0100)
Add SD card write-protect pin configuration to be sure that it will be
properly pulled down to indicate write access.

Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos5420-pinctrl.dtsi
arch/arm/boot/dts/exynos5422-odroid-core.dtsi

index dda8ca2..b82af7c 100644 (file)
                samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
                samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
        };
+
+       sd2_wp: sd2-wp {
+               samsung,pins = "gpc4-0";
+               samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
+               samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
+               samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
+       };
 };
 
 &pinctrl_2 {
index 916dec4..60e91b9 100644 (file)
        samsung,dw-mshc-sdr-timing = <0 4>;
        samsung,dw-mshc-ddr-timing = <0 2>;
        pinctrl-names = "default";
-       pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
+       pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_wp &sd2_bus1 &sd2_bus4>;
        bus-width = <4>;
        cap-sd-highspeed;
        max-frequency = <200000000>;