aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-05-02 11:57:28 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2014-05-04 23:58:56 -0400
commitc621183c203affa526c15e46432c24f31afed997 (patch)
tree4f40a7e8ac1085ecea203c7f1a133c5defd5ac0e /arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
parent11fbedf4dd960db39b40aa59253bb7375df54241 (diff)
ARM: dts: sun7i: Enable mmc controller on various A20 boards
The cd pin settings have been taken from the original firmware fex files, and have been confirmed to work on the actual boards. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts')
-rw-r--r--arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
index eeadf76362fa..1bfef12cf9d1 100644
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
@@ -31,6 +31,24 @@
31 status = "okay"; 31 status = "okay";
32 }; 32 };
33 33
34 mmc0: mmc@01c0f000 {
35 pinctrl-names = "default";
36 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
37 bus-width = <4>;
38 cd-gpios = <&pio 7 1 0>; /* PH1 */
39 cd-inverted;
40 status = "okay";
41 };
42
43 mmc3: mmc@01c12000 {
44 pinctrl-names = "default";
45 pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>;
46 bus-width = <4>;
47 cd-gpios = <&pio 7 11 0>; /* PH11 */
48 cd-inverted;
49 status = "okay";
50 };
51
34 usbphy: phy@01c13400 { 52 usbphy: phy@01c13400 {
35 usb1_vbus-supply = <&reg_usb1_vbus>; 53 usb1_vbus-supply = <&reg_usb1_vbus>;
36 usb2_vbus-supply = <&reg_usb2_vbus>; 54 usb2_vbus-supply = <&reg_usb2_vbus>;
@@ -65,6 +83,13 @@
65 }; 83 };
66 84
67 pinctrl@01c20800 { 85 pinctrl@01c20800 {
86 mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
87 allwinner,pins = "PH11";
88 allwinner,function = "gpio_in";
89 allwinner,drive = <0>;
90 allwinner,pull = <1>;
91 };
92
68 led_pins_olinuxino: led_pins@0 { 93 led_pins_olinuxino: led_pins@0 {
69 allwinner,pins = "PH2"; 94 allwinner,pins = "PH2";
70 allwinner,function = "gpio_out"; 95 allwinner,function = "gpio_out";