From: wens@csie.org (Chen-Yu Tsai)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 09/11] ARM: dts: sun9i: Enable mmc0 on A80 Optimus Board
Date: Thu, 18 Dec 2014 15:00:56 +0800 [thread overview]
Message-ID: <1418886058-8145-10-git-send-email-wens@csie.org> (raw)
In-Reply-To: <1418886058-8145-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.
This patch also adds a 3V fixed regulator, which is the default I/O
voltage level.
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 506948f..4c94aff 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"
/ {
model = "Merrii A80 Optimus Board";
@@ -59,6 +60,16 @@
};
soc {
+ mmc0: mmc at 01c0f000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc0_pins>, <&mmc0_cd_pin_optimus>;
+ vmmc-supply = <®_vcc3v0>;
+ bus-width = <4>;
+ cd-gpios = <&pio 7 18 0>; /* PH8 */
+ cd-inverted;
+ status = "okay";
+ };
+
pio: pinctrl at 06000800 {
i2c3_pins_a: i2c3 at 0 {
/* Enable internal pull-up */
@@ -72,6 +83,13 @@
allwinner,pull = <0>;
};
+ mmc0_cd_pin_optimus: mmc0_cd_pin at 0 {
+ allwinner,pins = "PH18";
+ allwinner,function = "gpio_in";
+ allwinner,drive = <0>;
+ allwinner,pull = <1>;
+ };
+
uart4_pins_a: uart4 at 0 {
/* Enable internal pull-up */
allwinner,pull = <1>;
--
2.1.3
next prev parent reply other threads:[~2014-12-18 7:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-18 7:00 [PATCH v2 00/11] ARM: sun9i: Enable MMC support on Allwinner A80 Chen-Yu Tsai
2014-12-18 7:00 ` [PATCH v2 01/11] clk: sunxi: Add mod0 and mmc module clock support for A80 Chen-Yu Tsai
2014-12-19 18:02 ` Maxime Ripard
2014-12-20 12:43 ` Chen-Yu Tsai
2015-01-08 9:38 ` Maxime Ripard
2015-01-12 2:39 ` [linux-sunxi] " Chen-Yu Tsai
2015-01-12 2:54 ` Chen-Yu Tsai
2015-01-12 15:19 ` Maxime Ripard
2014-12-18 7:00 ` [PATCH v2 02/11] ARM: dts: sun9i: Add mmc module clock nodes " Chen-Yu Tsai
2014-12-18 7:00 ` [PATCH v2 03/11] clk: sunxi: Add driver for A80 MMC config clocks/resets Chen-Yu Tsai
2014-12-19 18:08 ` Maxime Ripard
2014-12-22 2:15 ` Chen-Yu Tsai
2015-01-08 9:39 ` Maxime Ripard
2014-12-18 7:00 ` [PATCH v2 04/11] ARM: dts: sun9i: Add clock-indices property for bus gate clocks Chen-Yu Tsai
2014-12-18 7:00 ` [PATCH v2 05/11] ARM: dts: sun9i: Add mmc config clock nodes Chen-Yu Tsai
2014-12-18 7:00 ` [PATCH v2 06/11] ARM: dts: sunxi: Use label to reference pio in sunxi-common-regulators Chen-Yu Tsai
2014-12-18 7:00 ` [PATCH v2 07/11] ARM: dts: sun9i: Add mmc controller nodes to the A80 dtsi Chen-Yu Tsai
2014-12-18 7:00 ` [PATCH v2 08/11] ARM: dts: sun9i: Add pinmux setting for mmc0 Chen-Yu Tsai
2014-12-18 7:00 ` Chen-Yu Tsai [this message]
2014-12-18 7:00 ` [PATCH v2 10/11] ARM: dts: sun9i: Add 8 bit mmc pinmux setting for mmc2 Chen-Yu Tsai
2014-12-18 7:00 ` [PATCH v2 11/11] ARM: dts: sun9i: Enable mmc2 on A80 Optimus Board Chen-Yu Tsai
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=1418886058-8145-10-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).