linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hongtao Wu <wuht06@gmail.com>
To: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org,
	linux-kernel@vger.kernel.org, robh+dt@kernel.org,
	pawel.moll@arm.com, mark.rutland@arm.com,
	ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
	devicetree@vger.kernel.org, catalin.marinas@arm.com,
	will.deacon@arm.com, linux-arm-kernel@lists.infradead.org,
	shawn.lin@rock-chips.com
Cc: Orson.Zhai@spreadtrum.com, Chunyan.Zhang@spreadtrum.com,
	Jason.Wu@spreadtrum.com
Subject: [RFC PATCH v3 3/3] DT: Add MMC nodes in Spreadtrum DT files.
Date: Sat, 15 Aug 2015 00:55:53 +0800	[thread overview]
Message-ID: <1439571353-30165-4-git-send-email-wuht06@gmail.com> (raw)
In-Reply-To: <1439571353-30165-1-git-send-email-wuht06@gmail.com>

The MMC nodes is used to supply device nodes for Spreadtrum MMC driver.

Signed-off-by: Billows Wu(WuHongtao) <wuht06@gmail.com>
---
 arch/arm64/boot/dts/sprd/sc9836-openphone.dts |   24 ++++++++++++++
 arch/arm64/boot/dts/sprd/sharkl64.dtsi        |   44 +++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/arch/arm64/boot/dts/sprd/sc9836-openphone.dts b/arch/arm64/boot/dts/sprd/sc9836-openphone.dts
index e5657c3..1c6d284 100644
--- a/arch/arm64/boot/dts/sprd/sc9836-openphone.dts
+++ b/arch/arm64/boot/dts/sprd/sc9836-openphone.dts
@@ -47,3 +47,27 @@
 &uart3 {
 	status = "okay";
 };
+
+&sdio0 {
+	vmmc-supply = <&vddsdcore>;
+	vqmmc-supply = <&vddsdio>;
+	cd-gpios = <&ap_gpio 141 0>;
+	sprd,delay = <0x03 0x03 0x03>;
+	sprd,name = "sd";
+};
+
+&sdio1 {
+	sprd,delay = <0x03 0x03 0x03>;
+	sprd,name = "wifi";
+	keep-power-in-suspend;
+};
+
+&sdio3 {
+	vmmc-supply = <&vddemmccore>;
+	vqmmc-supply = <&vddgen0>;
+	bus-width = <8>;
+	non-removable;
+	sprd,delay = <0x3e 0xa 0xa>;
+	sprd,name = "emmc";
+	status = "okay";
+};
diff --git a/arch/arm64/boot/dts/sprd/sharkl64.dtsi b/arch/arm64/boot/dts/sprd/sharkl64.dtsi
index 69f64e7..ba4fd21 100644
--- a/arch/arm64/boot/dts/sprd/sharkl64.dtsi
+++ b/arch/arm64/boot/dts/sprd/sharkl64.dtsi
@@ -55,6 +55,44 @@
 				status = "disabled";
 			};
 		};
+
+		ap-ahb {
+			compatible = "simple-bus";
+			#address-cells = <2>;
+			#size-cells = <2>;
+			ranges;
+
+			sdio0: sdio@20300000 {
+				compatible  = "sprd,sdhost-3.0";
+				reg = <0 0x20300000 0 0x1000>;
+				interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&ext_192m>;
+				status = "disabled";
+			};
+
+			sdio1: sdio@20400000 {
+				compatible  = "sprd,sdhost-3.0";
+				reg = <0 0x20400000 0 0x1000>;
+				interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&ext_192m>;
+				status = "disabled";
+			};
+
+			sdio2: sdio@20500000 {
+				reg = <0 0x20500000 0 0x1000>;
+				interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
+				status = "disabled";
+			};
+
+			sdio3: sdio@20600000 {
+				compatible  = "sprd,sdhost-3.0";
+				reg = <0 0x20600000 0 0x1000>;
+				interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&ext_192m>;
+				status = "disabled";
+			};
+		};
+
 	};

 	clk26mhz: clk26mhz {
@@ -62,4 +100,10 @@
 		#clock-cells = <0>;
 		clock-frequency = <26000000>;
 	};
+
+	ext_192m: ext-192m {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <192000000>;
+	};
 };
--
1.7.9.5


  parent reply	other threads:[~2015-08-14 16:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-14 16:55 [RFC PATCH v3 0/3] Add MMC host driver for Spreadtrum SoC Hongtao Wu
2015-08-14 16:55 ` [RFC PATCH v3 1/3] mmc: sprd: " Hongtao Wu
     [not found]   ` <1439571353-30165-2-git-send-email-wuht06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-10 13:28     ` Ulf Hansson
     [not found]       ` <CAG_R4_VTXCV4NVMOwv-9F56-_pVsK0hU4go79ZhV3OFxwcF0mA@mail.gmail.com>
2015-09-28  7:37         ` Shawn Lin
2015-10-06  9:18         ` Ulf Hansson
2015-10-08 13:37           ` Hongtao Wu
     [not found]             ` <CAG_R4_X3kQj5xSA5KLyu75aqusPNXj0H4Xqx+m+5Sg5cZ15bBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-08 13:54               ` Ulf Hansson
2015-10-09 13:23                 ` Hongtao Wu
2015-08-14 16:55 ` [RFC PATCH v3 2/3] Documentation: Add Spreadtrum MMC DT bindings Hongtao Wu
2015-08-14 16:55 ` Hongtao Wu [this message]
2015-09-10 11:23 ` [RFC PATCH v3 0/3] Add MMC host driver for Spreadtrum SoC 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=1439571353-30165-4-git-send-email-wuht06@gmail.com \
    --to=wuht06@gmail.com \
    --cc=Chunyan.Zhang@spreadtrum.com \
    --cc=Jason.Wu@spreadtrum.com \
    --cc=Orson.Zhai@spreadtrum.com \
    --cc=catalin.marinas@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=shawn.lin@rock-chips.com \
    --cc=ulf.hansson@linaro.org \
    --cc=will.deacon@arm.com \
    /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).