All of lore.kernel.org
 help / color / mirror / Atom feed
From: shawn.guo@linaro.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM: dts: vf610-twr: Add support for sdhc1
Date: Wed, 5 Mar 2014 13:33:49 +0800	[thread overview]
Message-ID: <20140305053348.GE8784@S2101-09.ap.freescale.net> (raw)
In-Reply-To: <1393860573-16615-1-git-send-email-cosminstefan.stoica@freescale.com>

On Mon, Mar 03, 2014 at 05:29:33PM +0200, Stoica Cosmin Stefan wrote:
> From: Cosmin Stoica <cosminstefan.stoica@freescale.com>
> 
> The kernel was not able to boot from SD card because sdhc support
> was not present into the dts.
> 
> A new entry for sdhc1 was added for vf610-twr board based on the
> compatible entry present on imx53.
> 
> After applying these changes, the kernel is able to boot successfully
> from SD card.
> 
> Changes v1-v2:
> According to Shawn Guo's comments:
> - moved esdhc1 node before fec0 in board dts file;
> - reformatted clocks line;
> - removed duplicate property (bus-width) in dtsi file.
> 
> Signed-off-by: Cosmin Stoica <cosminstefan.stoica@freescale.com>
> Signed-off-by: Chircu Bogdan <Bogdan.Chircu@freescale.com>
> ---
>  arch/arm/boot/dts/vf610-twr.dts |    8 ++++++++
>  arch/arm/boot/dts/vf610.dtsi    |   11 +++++++++++
>  2 files changed, 19 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts
> index 7dd1d6e..e77c98e 100644
> --- a/arch/arm/boot/dts/vf610-twr.dts
> +++ b/arch/arm/boot/dts/vf610-twr.dts
> @@ -111,6 +111,13 @@
>  	};
>  };
>  
> +&esdhc1 {
> +   pinctrl-names = "default";
> +   pinctrl-0 = <&pinctrl_esdhc1_1>;

Please base the patch on my for-next branch below, where stuff
like pinctrl_esdhc1_1 have gone into board dts.

  git://git.linaro.org/people/shawnguo/linux-2.6.git for-next

> +   bus-width = <4>;
> +   status = "okay";
> +};
> +
>  &fec0 {
>  	phy-mode = "rmii";
>  	pinctrl-names = "default";
> @@ -227,3 +234,4 @@
>  	pinctrl-0 = <&pinctrl_uart1>;
>  	status = "okay";
>  };
> +

You shouldn't add this new line.

Shawn

> diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi
> index c63d26d..70de377 100644
> --- a/arch/arm/boot/dts/vf610.dtsi
> +++ b/arch/arm/boot/dts/vf610.dtsi
> @@ -344,6 +344,17 @@
>  				status = "disabled";
>  			};
>  
> +			esdhc1: esdhc at 400b2000 {
> +				   compatible = "fsl,imx53-esdhc";
> +				   reg = <0x400b2000 0x4000>;
> +				   interrupts = <0 28 0x04>;
> +				   clocks = <&clks VF610_CLK_IPG_BUS>,
> +                                           <&clks VF610_CLK_PLATFORM_BUS>,
> +                                           <&clks VF610_CLK_ESDHC1>;
> +				   clock-names = "ipg", "ahb", "per";
> +				   status = "disabled";
> +			};
> +
>  			fec0: ethernet at 400d0000 {
>  				compatible = "fsl,mvf600-fec";
>  				reg = <0x400d0000 0x1000>;
> -- 
> 1.7.9.5
> 
> 

      reply	other threads:[~2014-03-05  5:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-28 12:46 [PATCH] arm: dts: vf610-twr: Add support for sdhc1 Stoica Cosmin Stefan
2014-03-03  5:12 ` Shawn Guo
2014-03-03 15:29 ` [PATCH v2] ARM: " Stoica Cosmin Stefan
2014-03-05  5:33   ` Shawn Guo [this message]

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=20140305053348.GE8784@S2101-09.ap.freescale.net \
    --to=shawn.guo@linaro.org \
    --cc=linux-arm-kernel@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 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.