diff mbox

[v8,14/17] ARM: dts: sun6i: Enable the mmc controller on the m9

Message ID 1398164497-14212-15-git-send-email-hdegoede@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Hans de Goede April 22, 2014, 11:01 a.m. UTC
Tested on a Mele A1000G Quad.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 arch/arm/boot/dts/sun6i-a31-m9.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Comments

Maxime Ripard April 23, 2014, 9:51 a.m. UTC | #1
On Tue, Apr 22, 2014 at 01:01:34PM +0200, Hans de Goede wrote:
> Tested on a Mele A1000G Quad.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

This patch can be merged with the previous one.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/sun6i-a31-m9.dts b/arch/arm/boot/dts/sun6i-a31-m9.dts
index c95ee77..a188721 100644
--- a/arch/arm/boot/dts/sun6i-a31-m9.dts
+++ b/arch/arm/boot/dts/sun6i-a31-m9.dts
@@ -21,6 +21,22 @@ 
 	};
 
 	soc@01c00000 {
+		mmc0: mmc@01c0f000 {
+			pinctrl-names = "default";
+			pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_m9>;
+			cd-gpios = <&pio 7 22 0>; /* PH22 */
+			status = "okay";
+		};
+
+		pio: pinctrl@01c20800 {
+			mmc0_cd_pin_m9: mmc0_cd_pin@0 {
+				allwinner,pins = "PH22";
+				allwinner,function = "gpio_in";
+				allwinner,drive = <0>;
+				allwinner,pull = <1>;
+			};
+		};
+
 		uart0: serial@01c28000 {
 			pinctrl-names = "default";
 			pinctrl-0 = <&uart0_pins_a>;