From: Doug Anderson <dianders@chromium.org> To: Heiko Stuebner <heiko@sntech.de>, Seungwon Jeon <tgih.jun@samsung.com>, Jaehoon Chung <jh80.chung@samsung.com>, Chris Ball <chris@printf.net>, Ulf Hansson <ulf.hansson@linaro.org> Cc: Addy Ke <addy.ke@rock-chips.com>, Kever Yang <kever.yang@rock-chips.com>, Sonny Rao <sonnyrao@chromium.org>, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, Doug Anderson <dianders@chromium.org>, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux@arm.linux.org.uk, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] ARM: dts: Enable emmc and sdmmc on the rk3288-evb boards Date: Tue, 29 Jul 2014 13:31:53 -0700 [thread overview] Message-ID: <1406665916-23396-3-git-send-email-dianders@chromium.org> (raw) In-Reply-To: <1406665916-23396-1-git-send-email-dianders@chromium.org> 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
WARNING: multiple messages have this Message-ID (diff)
From: dianders@chromium.org (Doug Anderson) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/5] ARM: dts: Enable emmc and sdmmc on the rk3288-evb boards Date: Tue, 29 Jul 2014 13:31:53 -0700 [thread overview] Message-ID: <1406665916-23396-3-git-send-email-dianders@chromium.org> (raw) In-Reply-To: <1406665916-23396-1-git-send-email-dianders@chromium.org> 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 at 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 at 0 { + reg = <0>; + disable-wp; /* wp not hooked up */ + }; +}; + &i2c0 { status = "okay"; }; -- 2.0.0.526.g5318336
next prev parent reply other threads:[~2014-07-29 20:33 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-07-29 20:31 [PATCH 0/5] Add eMMC and SD card support for rk3288-evb Doug Anderson 2014-07-29 20:31 ` Doug Anderson 2014-07-29 20:31 ` [PATCH 1/5] ARM: dts: Add emmc and sdmmc to the rk3288 device tree Doug Anderson 2014-07-29 20:31 ` Doug Anderson 2014-07-29 20:31 ` Doug Anderson 2014-07-29 20:31 ` Doug Anderson [this message] 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 ` [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 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:31 ` [PATCH 5/5] ARM: dts: mmc slot node gone on rk3288 => no more address / size cells 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 2014-07-29 20:42 ` Arnd Bergmann
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=1406665916-23396-3-git-send-email-dianders@chromium.org \ --to=dianders@chromium.org \ --cc=addy.ke@rock-chips.com \ --cc=chris@printf.net \ --cc=devicetree@vger.kernel.org \ --cc=galak@codeaurora.org \ --cc=heiko@sntech.de \ --cc=ijc+devicetree@hellion.org.uk \ --cc=jh80.chung@samsung.com \ --cc=kever.yang@rock-chips.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mmc@vger.kernel.org \ --cc=linux@arm.linux.org.uk \ --cc=mark.rutland@arm.com \ --cc=pawel.moll@arm.com \ --cc=robh+dt@kernel.org \ --cc=sonnyrao@chromium.org \ --cc=tgih.jun@samsung.com \ --cc=ulf.hansson@linaro.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.