summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-05-02 17:57:22 +0200
committerMaxime Ripard <maxime.ripard@free-electrons.com>2014-05-05 05:52:54 +0200
commit31064bbd6dc3d49fe18f97d81e6ef2cb0358c9c8 (patch)
tree912ee77a1108c93d65e25bda7d68f5096f2924a4 /arch/arm/boot/dts/sun5i-a13-olinuxino.dts
parentARM: dts: sun5i: Add mmc controller nodes (diff)
downloadlinux-31064bbd6dc3d49fe18f97d81e6ef2cb0358c9c8.tar.xz
linux-31064bbd6dc3d49fe18f97d81e6ef2cb0358c9c8.zip
ARM: dts: sun5i: Enable mmc controller on various A10s and A13 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/sun5i-a13-olinuxino.dts')
-rw-r--r--arch/arm/boot/dts/sun5i-a13-olinuxino.dts16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
index 7a9187bbeb28..51a943837cb2 100644
--- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
+++ b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
@@ -20,6 +20,15 @@
compatible = "olimex,a13-olinuxino", "allwinner,sun5i-a13";
soc@01c00000 {
+ mmc0: mmc@01c0f000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino>;
+ bus-width = <4>;
+ cd-gpios = <&pio 6 0 0>; /* PG0 */
+ cd-inverted;
+ status = "okay";
+ };
+
usbphy: phy@01c13400 {
usb1_vbus-supply = <&reg_usb1_vbus>;
status = "okay";
@@ -34,6 +43,13 @@
};
pinctrl@01c20800 {
+ mmc0_cd_pin_olinuxino: mmc0_cd_pin@0 {
+ allwinner,pins = "PG0";
+ allwinner,function = "gpio_in";
+ allwinner,drive = <0>;
+ allwinner,pull = <1>;
+ };
+
led_pins_olinuxino: led_pins@0 {
allwinner,pins = "PG9";
allwinner,function = "gpio_out";