e9e209be29146183e819ddc3ceb351d821e17a64
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 173-4-dt-sun4i-fixup-mmc.patch
1 From 11347c2a116f36b95d6cc3b315a1f269da6d42a0 Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Mon, 17 Feb 2014 17:20:21 +0100
4 Subject: [PATCH] ARM: sun4i: dt: Fixup mmc bindings
5
6 1) Now that we're no longer overriding the caps set by mmc_of_parse we need
7 to set cd-inverted for our card detection to work.
8
9 2) Now that we no longer claim UHS modes support we will never use any DDR
10 modes, so drive-strength 2 is enough for the mmc data pins.
11
12 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 ---
14 arch/arm/boot/dts/sun4i-a10.dtsi | 6 +++++-
15 1 file changed, 5 insertions(+), 1 deletion(-)
16
17 diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
18 index a8e0df3..ba05e6e 100644
19 --- a/arch/arm/boot/dts/sun4i-a10.dtsi
20 +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
21 @@ -345,6 +345,7 @@
22 clock-names = "ahb", "mod";
23 interrupts = <32>;
24 bus-width = <4>;
25 + cd-inverted;
26 status = "disabled";
27 };
28
29 @@ -355,6 +356,7 @@
30 clock-names = "ahb", "mod";
31 interrupts = <33>;
32 bus-width = <4>;
33 + cd-inverted;
34 status = "disabled";
35 };
36
37 @@ -365,6 +367,7 @@
38 clock-names = "ahb", "mod";
39 interrupts = <34>;
40 bus-width = <4>;
41 + cd-inverted;
42 status = "disabled";
43 };
44
45 @@ -375,6 +378,7 @@
46 clock-names = "ahb", "mod";
47 interrupts = <35>;
48 bus-width = <4>;
49 + cd-inverted;
50 status = "disabled";
51 };
52
53 @@ -460,7 +464,7 @@
54 mmc0_pins_a: mmc0@0 {
55 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
56 allwinner,function = "mmc0";
57 - allwinner,drive = <3>;
58 + allwinner,drive = <2>;
59 allwinner,pull = <0>;
60 };
61
62 --
63 1.8.5.5
64