mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jacob Chen <jacob-chen@iotwrt.com>
To: heiko@sntech.de
Cc: andy.yan@rock-chips.com, linux-gpio@vger.kernel.org,
	linux-rockchip@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Jacob Chen <jacob2.chen@rock-chips.com>
Subject: [PATCH 2/2] ARM: dts: rockchip: enable sdmmc for rk1108-evb
Date: Sun, 13 Nov 2016 16:13:19 +0800	[thread overview]
Message-ID: <1479024799-29198-2-git-send-email-jacob-chen@iotwrt.com> (raw)
In-Reply-To: <1479024799-29198-1-git-send-email-jacob-chen@iotwrt.com>

From: Jacob Chen <jacob2.chen@rock-chips.com>

This patch add sdmmc support for rk1108-evb, now I can load the rootfs
from sdmmc.

Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
---
 arch/arm/boot/dts/rk1108-evb.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/rk1108-evb.dts b/arch/arm/boot/dts/rk1108-evb.dts
index 3956cff..cea26e5 100644
--- a/arch/arm/boot/dts/rk1108-evb.dts
+++ b/arch/arm/boot/dts/rk1108-evb.dts
@@ -56,6 +56,18 @@
 	};
 };
 
+&sdmmc {
+	bus-width = <4>;
+	cap-mmc-highspeed;
+	cap-sd-highspeed;
+	card-detect-delay = <200>;
+	disable-wp;
+	num-slots = <1>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
+	status = "okay";
+};
+
 &uart0 {
 	status = "okay";
 };
@@ -67,3 +79,12 @@
 &uart2 {
 	status = "okay";
 };
+
+&pinctrl {
+
+	sdmmc {
+		sdmmc_pwr: sdmmc-pwr {
+			rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>;
+		};
+	};
+};
-- 
2.7.4

  reply	other threads:[~2016-11-13  8:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-13  8:13 [PATCH 1/2] ARM: dts: rockchip: add the sdmmc pinctrl for rk1108 Jacob Chen
2016-11-13  8:13 ` Jacob Chen [this message]
2016-11-16 12:28   ` [PATCH 2/2] ARM: dts: rockchip: enable sdmmc for rk1108-evb Heiko Stuebner
2016-11-13  8:18 ` [PATCH 1/2] ARM: dts: rockchip: add the sdmmc pinctrl for rk1108 陈豪
2016-11-16 12:42 ` Heiko Stuebner

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=1479024799-29198-2-git-send-email-jacob-chen@iotwrt.com \
    --to=jacob-chen@iotwrt.com \
    --cc=andy.yan@rock-chips.com \
    --cc=heiko@sntech.de \
    --cc=jacob2.chen@rock-chips.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@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

all inboxes | Powered by JetHome®