Skip to contentSkip to conversation

ARM: dtsi: r8a7745: iwg22m: Add eMMC support

PATCH New Fabrizio Castro 2 participants 4 messages Aug 17, 2017 – Aug 24, 2017 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover ARM: dtsi: r8a7745: iwg22m: Add eMMC support

This series adds eMMC support to r8a7745 SoC and iW-RainboW-G22M-SM SoM.

Testing has been made on top of Renesas's devel branch.

The patches contained in this series depend on the following patches:
[1/2] ARM: dts: iwg22m: Add iWave RZG1E SODIMM SOM - https://patchwork.kernel.org/patch/9901619/
[2/2] ARM: dts: iwg22d-sodimm: Add support for iWave G22D-SODIMM board - https://patchwork.kernel.org/patch/9901623/
dt-bindings: mmc: sh_mmcif: Document r8a7745 DT bindings - https://patchwork.kernel.org/patch/9902199/

Regards,

Fabrizio Castro (2):
ARM: dts: r8a7745: Add MMC interface support
ARM: dtsi: iwg22m: Add eMMC support

 arch/arm/boot/dts/r8a7745-iwg22m.dtsi | 26 ++++++++++++++++++++++++++
 arch/arm/boot/dts/r8a7745.dtsi        | 16 ++++++++++++++++
 2 files changed, 42 insertions(+)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/2 ARM: dts: r8a7745: Add MMC interface support

Add MMC interface support for r8a7745 SoC.

---
 arch/arm/boot/dts/r8a7745.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm/boot/dts/r8a7745.dtsi +16 -0
index aff90df..e17289f 100644
@@ -508,6 +508,22 @@
 			#size-cells = <0>;
 			status = "disabled";
 		};
+
+		mmcif0: mmc at ee200000 {
+			compatible = "renesas,mmcif-r8a7745",
+				     "renesas,sh-mmcif";
+			reg = <0 0xee200000 0 0x80>;
+			interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 315>;
+			dmas = <&dmac0 0xd1>, <&dmac0 0xd2>,
+			       <&dmac1 0xd1>, <&dmac1 0xd2>;
+			dma-names = "tx", "rx", "tx", "rx";
+			power-domains = <&sysc R8A7745_PD_ALWAYS_ON>;
+			resets = <&cpg 315>;
+			reg-io-width = <4>;
+			max-frequency = <97500000>;
+			status = "disabled";
+		};
 	};
 
 	/* External root clock */
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 ARM: dtsi: iwg22m: Add eMMC support

In reply to Fabrizio Castro

Add eMMC support for iW-RainboW-G22M-SM.

---
 arch/arm/boot/dts/r8a7745-iwg22m.dtsi | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
arch/arm/boot/dts/r8a7745-iwg22m.dtsi +26 -0
index 9dbd854..afb1148 100644
@@ -17,8 +17,34 @@
 		device_type = "memory";
 		reg = <0 0x40000000 0 0x20000000>;
 	};
+
+	reg_3p3v: 3p3v {
+		compatible = "regulator-fixed";
+		regulator-name = "3P3V";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
 };
 
 &extal_clk {
 	clock-frequency = <20000000>;
 };
+
+&pfc {
+	mmcif0_pins: mmc {
+		groups = "mmc_data8", "mmc_ctrl";
+		function = "mmc";
+	};
+};
+
+&mmcif0 {
+	pinctrl-0 = <&mmcif0_pins>;
+	pinctrl-names = "default";
+
+	vmmc-supply = <&reg_3p3v>;
+	bus-width = <8>;
+	non-removable;
+	status = "okay";
+};
Signature · 1 line
2.7.4
Applied
#3 lore raw

cover ARM: dtsi: r8a7745: iwg22m: Add eMMC support

In reply to Fabrizio Castro
Quoted 8 lines · Fabrizio Castro

This series adds eMMC support to r8a7745 SoC and iW-RainboW-G22M-SM SoM.

Testing has been made on top of Renesas's devel branch.

The patches contained in this series depend on the following patches:
[1/2] ARM: dts: iwg22m: Add iWave RZG1E SODIMM SOM - https://patchwork.kernel.org/patch/9901619/
[2/2] ARM: dts: iwg22d-sodimm: Add support for iWave G22D-SODIMM board - https://patchwork.kernel.org/patch/9901623/
dt-bindings: mmc: sh_mmcif: Document r8a7745 DT bindings - https://patchwork.kernel.org/patch/9902199/

Thanks, applied for v4.15.