* [PATCH v2 1/4] ARM: dts: Add emmc and sdmmc to the rk3288 device tree
2014-07-31 16:13 [PATCH v2 0/4] Add eMMC and SD card support for rk3288-evb Doug Anderson
@ 2014-07-31 16:13 ` Doug Anderson
2014-07-31 16:13 ` [PATCH v2 2/4] ARM: dts: Enable emmc and sdmmc on the rk3288-evb boards Doug Anderson
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Doug Anderson @ 2014-07-31 16:13 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,
Arnd Bergmann, 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/4653631/
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@chromium.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
---
Changes in v2:
- New patchwork link for Addy's patch
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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 2/4] ARM: dts: Enable emmc and sdmmc on the rk3288-evb boards
2014-07-31 16:13 [PATCH v2 0/4] Add eMMC and SD card support for rk3288-evb Doug Anderson
2014-07-31 16:13 ` [PATCH v2 1/4] ARM: dts: Add emmc and sdmmc to the rk3288 device tree Doug Anderson
@ 2014-07-31 16:13 ` Doug Anderson
2014-07-31 23:44 ` Doug Anderson
2014-07-31 16:13 ` [PATCH v2 3/4] ARM: dts: Take the mmc slot node out of rk3288-evb Doug Anderson
2014-07-31 16:13 ` [PATCH v2 4/4] ARM: dts: mmc slot node gone on rk3288 => no more address / size cells Doug Anderson
3 siblings, 1 reply; 6+ messages in thread
From: Doug Anderson @ 2014-07-31 16:13 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,
Arnd Bergmann, 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/4653631/
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:
* 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>
Acked-by: Arnd Bergmann <arnd@arndb.de>
---
Changes in v2:
- Squashed in the DDR50 mode since Addy spun his patch.
- New patchwork link for Addy's patch
arch/arm/boot/dts/rk3288-evb.dtsi | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi
index 749e20d..ec580fa 100644
--- a/arch/arm/boot/dts/rk3288-evb.dtsi
+++ b/arch/arm/boot/dts/rk3288-evb.dtsi
@@ -37,6 +37,39 @@
};
};
+&emmc {
+ broken-cd;
+ bus-width = <8>;
+ cap-mmc-highspeed;
+ 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 {
+ 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] 6+ messages in thread
* Re: [PATCH v2 2/4] ARM: dts: Enable emmc and sdmmc on the rk3288-evb boards
2014-07-31 16:13 ` [PATCH v2 2/4] ARM: dts: Enable emmc and sdmmc on the rk3288-evb boards Doug Anderson
@ 2014-07-31 23:44 ` Doug Anderson
0 siblings, 0 replies; 6+ messages in thread
From: Doug Anderson @ 2014-07-31 23:44 UTC (permalink / raw)
To: Heiko Stuebner, Seungwon Jeon, Jaehoon Chung, Chris Ball,
Ulf Hansson
Cc: Addy Ke, Kever Yang, Sonny Rao,
linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org,
Arnd Bergmann, Doug Anderson, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Hi,
On Thu, Jul 31, 2014 at 9:13 AM, Doug Anderson <dianders@chromium.org> wrote:
> 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/4653631/
>
> 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:
> * 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>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
> ---
> Changes in v2:
> - Squashed in the DDR50 mode since Addy spun his patch.
> - New patchwork link for Addy's patch
>
> arch/arm/boot/dts/rk3288-evb.dtsi | 33 +++++++++++++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
>
> diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi
> index 749e20d..ec580fa 100644
> --- a/arch/arm/boot/dts/rk3288-evb.dtsi
> +++ b/arch/arm/boot/dts/rk3288-evb.dtsi
> @@ -37,6 +37,39 @@
> };
> };
>
> +&emmc {
> + broken-cd;
> + bus-width = <8>;
> + cap-mmc-highspeed;
> + mmc-ddr-1_8v;
Strangely DDR mode started failing all of a sudden for me. Even going
back to old git hashes made things fail. ...I'd be curious to know if
DDR mode is working for others.
-Doug
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 3/4] ARM: dts: Take the mmc slot node out of rk3288-evb
2014-07-31 16:13 [PATCH v2 0/4] Add eMMC and SD card support for rk3288-evb Doug Anderson
2014-07-31 16:13 ` [PATCH v2 1/4] ARM: dts: Add emmc and sdmmc to the rk3288 device tree Doug Anderson
2014-07-31 16:13 ` [PATCH v2 2/4] ARM: dts: Enable emmc and sdmmc on the rk3288-evb boards Doug Anderson
@ 2014-07-31 16:13 ` Doug Anderson
2014-07-31 16:13 ` [PATCH v2 4/4] ARM: dts: mmc slot node gone on rk3288 => no more address / size cells Doug Anderson
3 siblings, 0 replies; 6+ messages in thread
From: Doug Anderson @ 2014-07-31 16:13 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,
Arnd Bergmann, Doug Anderson, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, linux, devicetree, linux-kernel
In Jaehoon's (mmc: dw_mmc: Slot quirk "disable-wp" is deprecated) 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>
Acked-by: Arnd Bergmann <arnd@arndb.de>
---
Changes in v2:
- Refer to the new title of Jaehoon's patch
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] 6+ messages in thread
* [PATCH v2 4/4] ARM: dts: mmc slot node gone on rk3288 => no more address / size cells
2014-07-31 16:13 [PATCH v2 0/4] Add eMMC and SD card support for rk3288-evb Doug Anderson
` (2 preceding siblings ...)
2014-07-31 16:13 ` [PATCH v2 3/4] ARM: dts: Take the mmc slot node out of rk3288-evb Doug Anderson
@ 2014-07-31 16:13 ` Doug Anderson
3 siblings, 0 replies; 6+ messages in thread
From: Doug Anderson @ 2014-07-31 16:13 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,
Arnd Bergmann, 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: Slot quirk "disable-wp" is deprecated)
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>
Acked-by: Arnd Bergmann <arnd@arndb.de>
---
Changes in v2:
- Refer to the new title of Jaehoon's patch
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] 6+ messages in thread