linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: sun6i: Add MMC0 controller to the Colombus board
Date: Tue, 20 May 2014 22:55:26 +0200	[thread overview]
Message-ID: <537BC13E.4080901@redhat.com> (raw)
In-Reply-To: <1400600866-29938-2-git-send-email-maxime.ripard@free-electrons.com>

Hi,

On 05/20/2014 05:47 PM, Maxime Ripard wrote:
> The Colombus has a full size SD slot wired to the MMC0 controller. In order to
> work, the MMC lines have to have the pull-ups enabled though.
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> ---
>   arch/arm/boot/dts/sun6i-a31-colombus.dts | 27 +++++++++++++++++++++++++++
>   1 file changed, 27 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sun6i-a31-colombus.dts b/arch/arm/boot/dts/sun6i-a31-colombus.dts
> index 3898a7bce831..e2cf2f3646bf 100644
> --- a/arch/arm/boot/dts/sun6i-a31-colombus.dts
> +++ b/arch/arm/boot/dts/sun6i-a31-colombus.dts
> @@ -13,6 +13,7 @@
>
>   /dts-v1/;
>   /include/ "sun6i-a31.dtsi"
> +/include/ "sunxi-common-regulators.dtsi"
>
>   / {
>   	model = "WITS A31 Colombus Evaluation Board";
> @@ -23,6 +24,32 @@
>   	};
>
>   	soc at 01c00000 {
> +		mmc0: mmc at 01c0f000 {
> +			pinctrl-names = "default";
> +			pinctrl-0 = <&mmc0_pins_colombus>, <&mmc0_cd_pin_colombus>;
> +			vmmc-supply = <&reg_vcc3v0>;
> +			bus-width = <4>;
> +			cd-gpios = <&pio 0 8 0>; /* PA8 */
> +			cd-inverted;
> +			status = "okay";
> +		};
> +
> +		pio: pinctrl at 01c20800 {
> +			mmc0_pins_colombus: mmc0 at 0 {
> +				allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
> +				allwinner,function = "mmc0";
> +				allwinner,drive = <2>;
> +				allwinner,pull = <1>;
> +			};

You could just use mmc0_pins_a here and only set allwinner,pull.

Other then that both patches are:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Regards,

Hans

      reply	other threads:[~2014-05-20 20:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-20 15:47 [PATCH 1/2] ARM: sunxi: Add fixed 3V regulator Maxime Ripard
2014-05-20 15:47 ` [PATCH 2/2] ARM: sun6i: Add MMC0 controller to the Colombus board Maxime Ripard
2014-05-20 20:55   ` Hans de Goede [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=537BC13E.4080901@redhat.com \
    --to=hdegoede@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).