All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ezequiel Garcia <ezequiel@collabora.com>
To: Mathieu Malaterre <malat@debian.org>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Paul Cercueil <paul@crapouillou.net>
Cc: linux-mmc@vger.kernel.org, linux-mips@linux-mips.org,
	James Hogan <jhogan@kernel.org>,
	kernel@collabora.com, Ezequiel Garcia <ezequiel@collabora.co.uk>
Subject: [PATCH v4 13/15] MIPS: dts: ci20: Enable MMC in the devicetree
Date: Wed, 28 Mar 2018 18:00:55 -0300	[thread overview]
Message-ID: <20180328210057.31148-14-ezequiel@collabora.com> (raw)
In-Reply-To: <20180328210057.31148-1-ezequiel@collabora.com>

From: Ezequiel Garcia <ezequiel@collabora.co.uk>

Now that we have support for JZ480 SoCs in the MMC driver,
let's enable it on the devicetree.

Acked-by: James Hogan <jhogan@kernel.org>
Tested-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.co.uk>
---
 arch/mips/boot/dts/ingenic/ci20.dts | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts
index a4cc52214dbd..0ab5f59a56dc 100644
--- a/arch/mips/boot/dts/ingenic/ci20.dts
+++ b/arch/mips/boot/dts/ingenic/ci20.dts
@@ -36,6 +36,28 @@
 	clock-frequency = <48000000>;
 };
 
+&mmc0 {
+	status = "okay";
+
+	bus-width = <4>;
+	max-frequency = <50000000>;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pins_mmc0>;
+
+	cd-gpios = <&gpf 20 GPIO_ACTIVE_LOW>;
+};
+
+&mmc1 {
+	status = "okay";
+
+	bus-width = <4>;
+	max-frequency = <50000000>;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pins_mmc1>;
+};
+
 &uart0 {
 	status = "okay";
 
@@ -203,4 +225,16 @@
 		groups = "nemc-cs6";
 		bias-disable;
 	};
+
+	pins_mmc0: mmc0 {
+		function = "mmc0";
+		groups = "mmc0-1bit-e", "mmc0-4bit-e";
+		bias-disable;
+	};
+
+	pins_mmc1: mmc1 {
+		function = "mmc1";
+		groups = "mmc1-1bit-d", "mmc1-4bit-d";
+		bias-disable;
+	};
 };
-- 
2.16.2

  parent reply	other threads:[~2018-03-28 21:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28 21:00 [PATCH v4 00/14] Enable SD/MMC on JZ4780 SoCs Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 01/15] mmc: jz4740: Fix race condition in IRQ mask update Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 02/15] mmc: jz4740: Fix error exit path in driver's probe Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 03/15] mmc: jz4780: Order headers alphabetically Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 04/15] mmc: jz4740: Use dev_get_platdata Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 05/15] mmc: jz4740: Reset the device requesting the interrupt Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 06/15] mmc: jz4740: Introduce devicetree probe Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 07/15] mmc: dt-bindings: add MMC support to JZ4740 SoC Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 08/15] mmc: jz4740: Set clock rate to mmc->f_max rather than JZ_MMC_CLK_RATE Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 09/15] mmc: jz4740: Add support for the JZ4780 Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 10/15] mmc: jz4740: Use dma_request_chan() Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 11/15] MIPS: dts: jz4780: Add DMA controller node to the devicetree Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 12/15] MIPS: dts: jz4780: Add MMC " Ezequiel Garcia
2018-03-28 21:00 ` Ezequiel Garcia [this message]
2018-03-28 21:00 ` [PATCH v4 14/15] MIPS: configs: ci20: Enable DMA and MMC support Ezequiel Garcia
2018-03-28 21:00 ` [PATCH v4 15/15] MIPS: configs: ci20: Enable ext4 Ezequiel Garcia
2018-04-04 13:10   ` James Hogan
2018-04-11 14:58   ` Ulf Hansson
2018-04-04 12:46 ` [PATCH v4 00/14] Enable SD/MMC on JZ4780 SoCs Ulf Hansson

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=20180328210057.31148-14-ezequiel@collabora.com \
    --to=ezequiel@collabora.com \
    --cc=ezequiel@collabora.co.uk \
    --cc=jhogan@kernel.org \
    --cc=kernel@collabora.com \
    --cc=linux-mips@linux-mips.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=malat@debian.org \
    --cc=paul@crapouillou.net \
    --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: 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.