diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-05-21 10:23:20 +0200 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-05-22 10:49:21 +0200 |
commit | ece99c4ec89759bae5f3434c4a13e748437a84ca (patch) | |
tree | 82834e403b5829f68ae35cd2a17f7f8d52d8e4e5 /arch/arm/boot/dts/sun6i-a31-colombus.dts | |
parent | ARM: sun6i: Fix OHCI2 node name (diff) | |
download | linux-ece99c4ec89759bae5f3434c4a13e748437a84ca.tar.xz linux-ece99c4ec89759bae5f3434c4a13e748437a84ca.zip |
ARM: sun6i: Add MMC0 controller to the Colombus board
The Colombus has a full size SD slot wired to the MMC0 controller. In order to
work, the MMC lines have to have the pull-ups enabled though.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm/boot/dts/sun6i-a31-colombus.dts')
-rw-r--r-- | arch/arm/boot/dts/sun6i-a31-colombus.dts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun6i-a31-colombus.dts b/arch/arm/boot/dts/sun6i-a31-colombus.dts index 548f6677022c..546cf6eff5c7 100644 --- a/arch/arm/boot/dts/sun6i-a31-colombus.dts +++ b/arch/arm/boot/dts/sun6i-a31-colombus.dts @@ -24,6 +24,16 @@ }; soc@01c00000 { + mmc0: mmc@01c0f000 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_colombus>; + vmmc-supply = <®_vcc3v0>; + bus-width = <4>; + cd-gpios = <&pio 0 8 0>; /* PA8 */ + cd-inverted; + status = "okay"; + }; + usbphy: phy@01c19400 { usb2_vbus-supply = <®_usb2_vbus>; status = "okay"; @@ -34,6 +44,17 @@ }; pio: pinctrl@01c20800 { + mmc0_pins_a: mmc0@0 { + allwinner,pull = <1>; + }; + + mmc0_cd_pin_colombus: mmc0_cd_pin@0 { + allwinner,pins = "PA8"; + allwinner,function = "gpio_in"; + allwinner,drive = <0>; + allwinner,pull = <1>; + }; + usb2_vbus_pin_colombus: usb2_vbus_pin@0 { allwinner,pins = "PH24"; allwinner,function = "gpio_out"; |