From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/5] ARM: dts: sun4i: Add support for mmc
Date: Sun, 15 Dec 2013 14:58:54 +0100 [thread overview]
Message-ID: <20131215135854.GF3651@lukather> (raw)
In-Reply-To: <1387058295-20641-3-git-send-email-hdegoede@redhat.com>
Hi Hans,
On Sat, Dec 14, 2013 at 10:58:12PM +0100, Hans de Goede wrote:
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Commit-log :)
> ---
> arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 16 ++++++++++++++++
> arch/arm/boot/dts/sun4i-a10.dtsi | 16 ++++++++++++++++
> 2 files changed, 32 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
> index 425a7db..d193937 100644
> --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
> +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
> @@ -42,7 +42,23 @@
> };
> };
>
> + sdc0: sdc at 01c0f000 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&sdc0_pins_a>;
> + pinctrl-1 = <&mmc0_cd_pin_cubieboard>;
> + cd-gpios = <&pio 7 1 0>; /* PH1 */
> + cd-mode = <1>;
> + status = "okay";
> + };
> +
> pinctrl at 01c20800 {
> + mmc0_cd_pin_cubieboard: mmc0_cd_pin at 0 {
> + allwinner,pins = "PH1";
> + allwinner,function = "gpio_in";
> + allwinner,drive = <0>;
> + allwinner,pull = <0>;
> + };
> +
You seem to be using mmc and sdc without any real distinction. Please
try to be consistent and use only one of the two (and I have a slight
preference for mmc :))
> led_pins_cubieboard: led_pins at 0 {
> allwinner,pins = "PH20", "PH21";
> allwinner,function = "gpio_out";
> diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
> index 4dccdb0..13bccd5 100644
> --- a/arch/arm/boot/dts/sun4i-a10.dtsi
> +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
> @@ -306,6 +306,15 @@
> #size-cells = <0>;
> };
>
> + sdc0: sdc at 01c0f000 {
> + compatible = "allwinner,sun4i-mmc";
> + reg = <0x01c0f000 0x1000>;
> + clocks = <&ahb_gates 8>, <&mmc0>;
> + interrupts = <32>;
> + bus-width = <4>;
> + status = "disabled";
> + };
> +
The A10 has much more mmc controller doesn't it?
Could you add all of them in the DT ?
> intc: interrupt-controller at 01c20400 {
> compatible = "allwinner,sun4i-ic";
> reg = <0x01c20400 0x400>;
> @@ -376,6 +385,13 @@
> allwinner,drive = <0>;
> allwinner,pull = <0>;
> };
> +
> + sdc0_pins_a: sdc0 at 0 {
> + allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
> + allwinner,function = "mmc0";
> + allwinner,drive = <3>;
> + allwinner,pull = <1>;
Wow, you need both the pullups and a 40mA output?
Ideally, I'd like this patch to be splitted into three:
- One that adds the MMC controller nodes to the DTSI
- One that adds the muxing options you need to the pinctrl node
- One that enables the controller on the boards
Thanks,
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131215/644832a7/attachment.sig>
next prev parent reply other threads:[~2013-12-15 13:58 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-14 21:58 [PATCH 0/5] ARM: sunxi: Add driver for SD/MMC hosts found on allwinner sunxi SOCs Hans de Goede
2013-12-14 21:58 ` [PATCH 1/5] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs Hans de Goede
2013-12-15 13:44 ` Maxime Ripard
2013-12-15 14:20 ` Hans de Goede
2013-12-15 16:21 ` Maxime Ripard
2013-12-15 18:41 ` [linux-sunxi] " Hans de Goede
2013-12-15 19:35 ` David Lanzendörfer
2013-12-15 20:18 ` Hans de Goede
2013-12-15 21:19 ` David Lanzendörfer
2013-12-16 12:21 ` Hans de Goede
2013-12-23 10:36 ` David Lanzendörfer
2013-12-15 16:33 ` David Lanzendörfer
2013-12-15 22:01 ` [linux-sunxi] " Michal Suchanek
2013-12-16 10:05 ` Maxime Ripard
2013-12-16 11:59 ` Michal Suchanek
2013-12-16 12:49 ` Ian Campbell
2013-12-16 12:53 ` Maxime Ripard
2014-02-05 13:33 ` David Lanzendörfer
2013-12-17 13:43 ` Mark Brown
2013-12-14 21:58 ` [PATCH 2/5] ARM: dts: sun4i: Add support for mmc Hans de Goede
2013-12-15 13:58 ` Maxime Ripard [this message]
2013-12-15 14:31 ` [linux-sunxi] " Hans de Goede
2013-12-15 21:44 ` Henrik Nordström
2013-12-16 9:04 ` David Lanzendörfer
2013-12-16 12:32 ` Hans de Goede
2013-12-16 10:02 ` Maxime Ripard
2013-12-16 12:34 ` Hans de Goede
2013-12-14 21:58 ` [PATCH 3/5] ARM: dts: sun5i: Add new sun5i-a13-olinuxino-micro board Hans de Goede
2013-12-15 14:04 ` Maxime Ripard
2013-12-14 21:58 ` [PATCH 4/5] ARM: dts: sun5i: add mmc support Hans de Goede
2013-12-14 21:58 ` [PATCH 5/5] ARM: dts: sun7i: Add support for mmc Hans de Goede
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=20131215135854.GF3651@lukather \
--to=maxime.ripard@free-electrons.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