Skip to contentSkip to conversation

Add R8A7794/SILK board eMMC DT support

PATCH New Sergei Shtylyov 2 participants 4 messages Jul 30, 2015 – Aug 3, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Add R8A7794/SILK board eMMC DT support

Hello.

Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20150730-v4.2-rc4' tag. Here we add the eMMC device tree support for the R8A7794-based SILK board.

[1/2] ARM: shmobile: r8a7794: add MMCIF DT support [2/2] ARM: shmobile: silk: add eMMC DT support

WBR, Sergei

#1 lore raw

PATCH v2 1/2 ARM: shmobile: r8a7794: add MMCIF DT support

Define the generic R8A7794 part of the MMCIF0 device node.

Based on the orginal patch by Shinobu Uehara <[email protected]>.

---
Changes in version 2:
- updated the patch due to the SDHI patch being accepted first;
- refreshed the patch.

 arch/arm/boot/dts/r8a7794.dtsi |   11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/r8a7794.dtsi +11 -0
Index: renesas/arch/arm/boot/dts/r8a7794.dtsi
===================================================================
@@ -383,6 +383,17 @@
 		status = "disabled";
 	};
 
+	mmcif0: mmc at ee200000 {
+		compatible = "renesas,mmcif-r8a7794", "renesas,sh-mmcif";
+		reg = <0 0xee200000 0 0x80>;
+		interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp3_clks R8A7794_CLK_MMCIF0>;
+		dmas = <&dmac0 0xd1>, <&dmac0 0xd2>;
+		dma-names = "tx", "rx";
+		reg-io-width = <4>;
+		status = "disabled";
+	};
+
 	sdhi0: sd at ee100000 {
 		compatible = "renesas,sdhi-r8a7794";
 		reg = <0 0xee100000 0 0x200>;
#2 lore raw

PATCH v2 1/2 ARM: shmobile: r8a7794: add MMCIF DT support

Quoted 10 lines · Sergei Shtylyov

Define the generic R8A7794 part of the MMCIF0 device node.

Based on the orginal patch by Shinobu Uehara <[email protected]>.

---
Changes in version 2:
- updated the patch due to the SDHI patch being accepted first;
- refreshed the patch.

Thanks, I have queued-up this and the following patch.

#3 lore raw

PATCH v2 2/2 ARM: shmobile: silk: add eMMC DT support

In reply to Sergei Shtylyov

Define the SILK board dependent part of the MMCIF device node (the board has eMMC chip) along with the necessary voltage regulator (note that the Vcc/Vccq regulator is dummy -- it's required by the MMCIF driver but doesn't actually exist on the board).

Based on the original patch by Vladimir Barinov
<[email protected]>.

---
 arch/arm/boot/dts/r8a7794-silk.dts |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
arch/arm/boot/dts/r8a7794-silk.dts +25 -0
Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts
===================================================================
@@ -30,6 +30,15 @@
 		device_type = "memory";
 		reg = <0 0x40000000 0 0x40000000>;
 	};
+
+	d3_3v: regulator at 0 {
+		compatible = "regulator-fixed";
+		regulator-name = "D3.3V";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
 };
 
 &extal_clk {
@@ -51,6 +60,11 @@
 		renesas,groups = "intc_irq8";
 		renesas,function = "intc";
 	};
+
+	mmcif0_pins: mmcif0 {
+		renesas,groups = "mmc_data8", "mmc_ctrl";
+		renesas,function = "mmc";
+	};
 };
 
 &scif2 {
@@ -75,3 +89,14 @@
 		micrel,led-mode = <1>;
 	};
 };
+
+&mmcif0 {
+	pinctrl-0 = <&mmcif0_pins>;
+	pinctrl-names = "default";
+
+	vmmc-supply = <&d3_3v>;
+	vqmmc-supply = <&d3_3v>;
+	bus-width = <8>;
+	non-removable;
+	status = "okay";
+};