Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1310131 > unrolled thread
| Started by | Caesar Wang <wxt@rock-chips.com> |
|---|---|
| First post | 2016-01-15 15:00 +0100 |
| Last post | 2016-01-17 20:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v3 7/9] ARM: dts: rockchip: add the sdmmc for kylin board Caesar Wang <wxt@rock-chips.com> - 2016-01-15 15:00 +0100
Re: [PATCH v3 7/9] ARM: dts: rockchip: add the sdmmc for kylin board Heiko Stuebner <heiko@sntech.de> - 2016-01-17 20:40 +0100
| From | Caesar Wang <wxt@rock-chips.com> |
|---|---|
| Date | 2016-01-15 15:00 +0100 |
| Subject | [PATCH v3 7/9] ARM: dts: rockchip: add the sdmmc for kylin board |
| Message-ID | <qRd50-6Sf-9@gated-at.bofh.it> |
Although We can add the sdmmc node, shouldn't enable it.
Since the sdmmc is reusing the same pin with uart2.
Unfortunately, the uart2 is used by the debug port, so that will cause
the debug information can't display on console if enabling the sdmmc.
As we have supported the sdmmc (sd card) on hardware for kylin board.
So, maybe we can have the sdmmc node in kylin dts, not to enable it.
Anyway, you only need add the okay status if someone want to enable the
sdmmc.
e.g.
if you use the adb to debug with android os.
You can add the
status = "okay" to enable the sdmmc for sd card working.
The defauly status is disabling it.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
---
Changes in v3:
- fix the commit content in sdmmc patch.
arch/arm/boot/dts/rk3036-kylin.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts
index d30a6dd..8bdbb95 100644
--- a/arch/arm/boot/dts/rk3036-kylin.dts
+++ b/arch/arm/boot/dts/rk3036-kylin.dts
@@ -335,6 +335,17 @@
pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>;
};
+&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>;
+};
+
&uart2 {
status = "okay";
};
@@ -372,6 +383,12 @@
};
};
+ sdmmc {
+ sdmmc_pwr: sdmmc-pwr {
+ rockchip,pins = <2 28 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
sleep {
global_pwroff: global-pwroff {
rockchip,pins = <2 7 RK_FUNC_1 &pcfg_pull_none>;
--
1.9.1
[toc] | [next] | [standalone]
| From | Heiko Stuebner <heiko@sntech.de> |
|---|---|
| Date | 2016-01-17 20:40 +0100 |
| Message-ID | <qS1l8-6M6-19@gated-at.bofh.it> |
| In reply to | #1310131 |
Am Freitag, 15. Januar 2016, 21:49:54 schrieb Caesar Wang: > Although We can add the sdmmc node, shouldn't enable it. > Since the sdmmc is reusing the same pin with uart2. > Unfortunately, the uart2 is used by the debug port, so that will cause > the debug information can't display on console if enabling the sdmmc. > > As we have supported the sdmmc (sd card) on hardware for kylin board. > So, maybe we can have the sdmmc node in kylin dts, not to enable it. > > Anyway, you only need add the okay status if someone want to enable the > sdmmc. > > e.g. > if you use the adb to debug with android os. > You can add the > status = "okay" to enable the sdmmc for sd card working. > The defauly status is disabling it. > > Signed-off-by: Caesar Wang <wxt@rock-chips.com> applied to my dts32 branch for 4.6 Thanks Heiko
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web