[parent not found: <1406665916-23396-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>]
* [PATCH 1/5] ARM: dts: Add emmc and sdmmc to the rk3288 device tree
[not found] ` <1406665916-23396-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
@ 2014-07-29 20:31 ` Doug Anderson
0 siblings, 0 replies; 7+ messages in thread
From: Doug Anderson @ 2014-07-29 20:31 UTC (permalink / raw)
To: Heiko Stuebner, Seungwon Jeon, Jaehoon Chung, Chris Ball,
Ulf Hansson
Cc: Addy Ke, Kever Yang, Sonny Rao,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-mmc-u79uwXL29TY76Z2rM5mHXA, Doug Anderson,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
This adds support for the sdmmc and emmc ports on the rk3288 using the
currently posted driver from Addy at:
https://patchwork.kernel.org/patch/4520631/
Note:
* This is not baesd on Jaehoon's patch series removing the slot node,
but it does use new syntax like putting the bus width at the top
level and using the new cap-mmc-highspeed / cap-sd-highspeed. A
future patch will modify this one to remove the slot node.
Signed-off-by: Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
---
arch/arm/boot/dts/rk3288.dtsi | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index 3ef8951..fd77a65 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -78,6 +78,28 @@
clock-frequency = <24000000>;
};
+ sdmmc: dwmmc@ff0c0000 {
+ compatible = "rockchip,rk3288-dw-mshc";
+ clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
+ clock-names = "biu", "ciu";
+ fifo-depth = <0x100>;
+ interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0xff0c0000 0x4000>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
+ emmc: dwmmc@ff0f0000 {
+ compatible = "rockchip,rk3288-dw-mshc";
+ clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
+ clock-names = "biu", "ciu";
+ fifo-depth = <0x100>;
+ interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
+ reg = <0xff0f0000 0x4000>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
i2c1: i2c@ff140000 {
compatible = "rockchip,rk3288-i2c";
reg = <0xff140000 0x1000>;
--
2.0.0.526.g5318336
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/5] ARM: dts: Enable emmc and sdmmc on the rk3288-evb boards
2014-07-29 20:31 [PATCH 0/5] Add eMMC and SD card support for rk3288-evb Doug Anderson
[not found] ` <1406665916-23396-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
@ 2014-07-29 20:31 ` Doug Anderson
2014-07-29 20:31 ` [PATCH 3/5] ARM: dts: Enable DDR50 mode on the eMMC Doug Anderson
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Doug Anderson @ 2014-07-29 20:31 UTC (permalink / raw)
To: Heiko Stuebner, Seungwon Jeon, Jaehoon Chung, Chris Ball,
Ulf Hansson
Cc: Addy Ke, Kever Yang, Sonny Rao, linux-arm-kernel, linux-mmc,
Doug Anderson, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, linux, devicetree, linux-kernel
This adds support for the sdmmc and emmc ports on the rk3288 using the
currently posted driver from Addy at:
https://patchwork.kernel.org/patch/4520631/
This enables basic SD and eMMC support. Things are not yet running at
the fastest speed and we don't have the regulators specified, but we
can at least use the eMMC and SD cards now.
A few notes:
* Doesn't enable DDR mode from eMMC since it didn't work on Addy's
patch. A future patch enables it.
* This is not baesd on Jaehoon's patch series removing the slot node,
but it does use new syntax like putting the bus width at the top
level and using the new cap-mmc-highspeed / cap-sd-highspeed. A
future patch will modify this one to remove the slot node.
Signed-off-by: Doug Anderson <dianders@chromium.org>
---
arch/arm/boot/dts/rk3288-evb.dtsi | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi
index 749e20d..e44e34f 100644
--- a/arch/arm/boot/dts/rk3288-evb.dtsi
+++ b/arch/arm/boot/dts/rk3288-evb.dtsi
@@ -37,6 +37,38 @@
};
};
+&emmc {
+ broken-cd;
+ bus-width = <8>;
+ cap-mmc-highspeed;
+ non-removable;
+ num-slots = <1>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
+ status = "okay";
+
+ slot@0 {
+ reg = <0>;
+ disable-wp;
+ };
+};
+
+&sdmmc {
+ bus-width = <4>;
+ cap-mmc-highspeed;
+ cap-sd-highspeed;
+ card-detect-delay = <200>;
+ num-slots = <1>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
+ status = "okay";
+
+ slot@0 {
+ reg = <0>;
+ disable-wp; /* wp not hooked up */
+ };
+};
+
&i2c0 {
status = "okay";
};
--
2.0.0.526.g5318336
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/5] ARM: dts: Enable DDR50 mode on the eMMC
2014-07-29 20:31 [PATCH 0/5] Add eMMC and SD card support for rk3288-evb Doug Anderson
[not found] ` <1406665916-23396-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-07-29 20:31 ` [PATCH 2/5] ARM: dts: Enable emmc and sdmmc on the rk3288-evb boards Doug Anderson
@ 2014-07-29 20:31 ` Doug Anderson
2014-07-29 20:31 ` [PATCH 4/5] ARM: dts: Take the mmc slot node out of rk3288-evb Doug Anderson
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Doug Anderson @ 2014-07-29 20:31 UTC (permalink / raw)
To: Heiko Stuebner, Seungwon Jeon, Jaehoon Chung, Chris Ball,
Ulf Hansson
Cc: Addy Ke, Kever Yang, Sonny Rao, linux-arm-kernel, linux-mmc,
Doug Anderson, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, linux, devicetree, linux-kernel
DDR50 mode now works on the rockchip driver, so enable it.
NOTE: if Addy spins (mmc: dw_mmc: add support for RK3288) before it
lands then we could squash this into my (ARM: dts: Enable emmc and
sdmmc on the rk3288-evb boards).
Signed-off-by: Doug Anderson <dianders@chromium.org>
---
arch/arm/boot/dts/rk3288-evb.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi
index e44e34f..ec580fa 100644
--- a/arch/arm/boot/dts/rk3288-evb.dtsi
+++ b/arch/arm/boot/dts/rk3288-evb.dtsi
@@ -41,6 +41,7 @@
broken-cd;
bus-width = <8>;
cap-mmc-highspeed;
+ mmc-ddr-1_8v;
non-removable;
num-slots = <1>;
pinctrl-names = "default";
--
2.0.0.526.g5318336
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/5] ARM: dts: Take the mmc slot node out of rk3288-evb
2014-07-29 20:31 [PATCH 0/5] Add eMMC and SD card support for rk3288-evb Doug Anderson
` (2 preceding siblings ...)
2014-07-29 20:31 ` [PATCH 3/5] ARM: dts: Enable DDR50 mode on the eMMC Doug Anderson
@ 2014-07-29 20:31 ` Doug Anderson
2014-07-29 20:31 ` [PATCH 5/5] ARM: dts: mmc slot node gone on rk3288 => no more address / size cells Doug Anderson
2014-07-29 20:42 ` [PATCH 0/5] Add eMMC and SD card support for rk3288-evb Arnd Bergmann
5 siblings, 0 replies; 7+ messages in thread
From: Doug Anderson @ 2014-07-29 20:31 UTC (permalink / raw)
To: Heiko Stuebner, Seungwon Jeon, Jaehoon Chung, Chris Ball,
Ulf Hansson
Cc: Addy Ke, Kever Yang, Sonny Rao, linux-arm-kernel, linux-mmc,
Doug Anderson, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, linux, devicetree, linux-kernel
In Jaehoon's (mmc: dw_mmc: replace "disable-wp" from slot's quirk to
host's quirk) the slot node is no longer used. Remove it.
Note that if Jaehoon's patch lands before my (ARM: dts: Enable emmc
and sdmmc on the rk3288-evb boards) then this could be squashed into
the later.
Signed-off-by: Doug Anderson <dianders@chromium.org>
---
arch/arm/boot/dts/rk3288-evb.dtsi | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi
index ec580fa..b69008f 100644
--- a/arch/arm/boot/dts/rk3288-evb.dtsi
+++ b/arch/arm/boot/dts/rk3288-evb.dtsi
@@ -41,17 +41,13 @@
broken-cd;
bus-width = <8>;
cap-mmc-highspeed;
+ disable-wp;
mmc-ddr-1_8v;
non-removable;
num-slots = <1>;
pinctrl-names = "default";
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
status = "okay";
-
- slot@0 {
- reg = <0>;
- disable-wp;
- };
};
&sdmmc {
@@ -59,15 +55,11 @@
cap-mmc-highspeed;
cap-sd-highspeed;
card-detect-delay = <200>;
+ disable-wp; /* wp not hooked up */
num-slots = <1>;
pinctrl-names = "default";
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
status = "okay";
-
- slot@0 {
- reg = <0>;
- disable-wp; /* wp not hooked up */
- };
};
&i2c0 {
--
2.0.0.526.g5318336
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 5/5] ARM: dts: mmc slot node gone on rk3288 => no more address / size cells
2014-07-29 20:31 [PATCH 0/5] Add eMMC and SD card support for rk3288-evb Doug Anderson
` (3 preceding siblings ...)
2014-07-29 20:31 ` [PATCH 4/5] ARM: dts: Take the mmc slot node out of rk3288-evb Doug Anderson
@ 2014-07-29 20:31 ` Doug Anderson
2014-07-29 20:42 ` [PATCH 0/5] Add eMMC and SD card support for rk3288-evb Arnd Bergmann
5 siblings, 0 replies; 7+ messages in thread
From: Doug Anderson @ 2014-07-29 20:31 UTC (permalink / raw)
To: Heiko Stuebner, Seungwon Jeon, Jaehoon Chung, Chris Ball,
Ulf Hansson
Cc: Addy Ke, Kever Yang, Sonny Rao, linux-arm-kernel, linux-mmc,
Doug Anderson, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, linux, devicetree, linux-kernel
We've removed the slot node from all rk3288 device trees, so we no
longer need address-cells or size-cells.
If Jaehoon's (mmc: dw_mmc: replace "disable-wp" from slot's quirk to
host's quirk) patch lands before my (ARM: dts: Add emmc and sdmmc to
the rk3288 device tree) then this could be squashed into the later
patch.
Signed-off-by: Doug Anderson <dianders@chromium.org>
---
arch/arm/boot/dts/rk3288.dtsi | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index fd77a65..d2d0086 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -85,8 +85,6 @@
fifo-depth = <0x100>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
reg = <0xff0c0000 0x4000>;
- #address-cells = <1>;
- #size-cells = <0>;
};
emmc: dwmmc@ff0f0000 {
@@ -96,8 +94,6 @@
fifo-depth = <0x100>;
interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
reg = <0xff0f0000 0x4000>;
- #address-cells = <1>;
- #size-cells = <0>;
};
i2c1: i2c@ff140000 {
--
2.0.0.526.g5318336
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/5] Add eMMC and SD card support for rk3288-evb
2014-07-29 20:31 [PATCH 0/5] Add eMMC and SD card support for rk3288-evb Doug Anderson
` (4 preceding siblings ...)
2014-07-29 20:31 ` [PATCH 5/5] ARM: dts: mmc slot node gone on rk3288 => no more address / size cells Doug Anderson
@ 2014-07-29 20:42 ` Arnd Bergmann
5 siblings, 0 replies; 7+ messages in thread
From: Arnd Bergmann @ 2014-07-29 20:42 UTC (permalink / raw)
To: Doug Anderson
Cc: Heiko Stuebner, Seungwon Jeon, Jaehoon Chung, Chris Ball,
Ulf Hansson, Addy Ke, Kever Yang, Sonny Rao, linux-arm-kernel,
linux-mmc, mark.rutland, devicetree, linux, pawel.moll,
ijc+devicetree, linux-kernel, robh+dt, galak
On Tuesday 29 July 2014 13:31:51 Doug Anderson wrote:
> This series adds basic eMMC and SD card support for the rk3288-evb
> board based on Addy's posted dw_mmc patch from:
> https://patchwork.kernel.org/patch/4520631/
>
> The series is a little tricky because:
> * Addy's patch has a bug w/ DDR50 (see my response there), so I've
> posted the original support without DDR50 and then a fix (that could
> be squashed) enabling DDR50.
> * Jaehoon has some outstanding patches to remove the slot node. Since
> those haven't landed yet, I've posted my original patch with the
> slot node and then some future patches that can land with Jaehoon's
> patches.
>
> Note that we don't have regulators specified yet (no regulator driver
> for rk808-based board). We also don't yet support UHS modes (which
> require regulator support plus dw_mmc driver support for tuning).
> Those features can come later.
Looks good to me,
Acked-by: Arnd Bergmann <arnd@arndb.de>
I wonder whether something can be done to generalize the tuning
support. Is this just about the clock phase, or something else?
Arnd
^ permalink raw reply [flat|nested] 7+ messages in thread