All of lore.kernel.org
 help / color / mirror / Atom feed
From: wens@csie.org (Chen-Yu Tsai)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 7/9] ARM: dts: sun9i: Enable mmc0 on A80 Optimus Board
Date: Sat, 17 Jan 2015 13:19:32 +0800	[thread overview]
Message-ID: <1421471974-32719-8-git-send-email-wens@csie.org> (raw)
In-Reply-To: <1421471974-32719-1-git-send-email-wens@csie.org>

Enable the micro-sd slot on the A80 Optimus Board, which is connected to
mmc0. This adds the card-detect gpio and enables mmc0.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Andreas F?rber <afaerber@suse.de>
---
 arch/arm/boot/dts/sun9i-a80-optimus.dts | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts
index d4f3866a8d0b..5c9505a724d4 100644
--- a/arch/arm/boot/dts/sun9i-a80-optimus.dts
+++ b/arch/arm/boot/dts/sun9i-a80-optimus.dts
@@ -49,6 +49,7 @@
 
 /dts-v1/;
 #include "sun9i-a80.dtsi"
+#include "sunxi-common-regulators.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/pinctrl/sun4i-a10.h>
@@ -100,6 +101,23 @@
 		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
 	};
+
+	mmc0_cd_pin_optimus: mmc0_cd_pin at 0 {
+		allwinner,pins = "PH18";
+		allwinner,function = "gpio_in";
+		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+	};
+};
+
+&mmc0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc0_pins>, <&mmc0_cd_pin_optimus>;
+	vmmc-supply = <&reg_vcc3v0>;
+	bus-width = <4>;
+	cd-gpios = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* PH8 */
+	cd-inverted;
+	status = "okay";
 };
 
 &uart0 {
-- 
2.1.4

  parent reply	other threads:[~2015-01-17  5:19 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-17  5:19 [PATCH v4 0/9] ARM: sun9i: Enable MMC support on Allwinner A80 Chen-Yu Tsai
2015-01-17  5:19 ` [PATCH v4 1/9] clk: sunxi: Add mod0 and mmc module clock support for A80 Chen-Yu Tsai
2015-01-19 21:49   ` Maxime Ripard
2015-01-17  5:19 ` [PATCH v4 2/9] clk: sunxi: Add driver for A80 MMC config clocks/resets Chen-Yu Tsai
2015-01-19 21:57   ` Maxime Ripard
2015-01-20  2:13     ` Chen-Yu Tsai
2015-01-20  8:16       ` Maxime Ripard
2015-01-17  5:19 ` [PATCH v4 3/9] ARM: dts: sun9i: Add clock-indices property for bus gate clocks Chen-Yu Tsai
2015-01-19 21:59   ` Maxime Ripard
2015-01-20  1:50     ` Chen-Yu Tsai
2015-01-17  5:19 ` [PATCH v4 4/9] ARM: dts: sun9i: Add mmc config clock nodes Chen-Yu Tsai
2015-01-19 22:02   ` Maxime Ripard
2015-01-17  5:19 ` [PATCH v4 5/9] ARM: dts: sun9i: Add mmc controller nodes to the A80 dtsi Chen-Yu Tsai
2015-01-19 22:05   ` Maxime Ripard
2015-01-17  5:19 ` [PATCH v4 6/9] ARM: dts: sun9i: Convert a80 optimus board dts to label referencing Chen-Yu Tsai
2015-01-19 22:05   ` Maxime Ripard
2015-01-17  5:19 ` Chen-Yu Tsai [this message]
2015-01-19 22:06   ` [PATCH v4 7/9] ARM: dts: sun9i: Enable mmc0 on A80 Optimus Board Maxime Ripard
2015-01-17  5:19 ` [PATCH v4 8/9] ARM: dts: sun9i: Add 8 bit mmc pinmux setting for mmc2 Chen-Yu Tsai
2015-01-19 22:06   ` Maxime Ripard
2015-01-17  5:19 ` [PATCH v4 9/9] ARM: dts: sun9i: Enable mmc2 on A80 Optimus Board Chen-Yu Tsai
2015-01-19 22:07   ` Maxime Ripard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1421471974-32719-8-git-send-email-wens@csie.org \
    --to=wens@csie.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.