linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: renesas: r8a779h0/gray-hawk-single: Add eMMC support
@ 2024-02-14 13:18 Geert Uytterhoeven
  2024-02-14 13:18 ` [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add SD/MMC node Geert Uytterhoeven
  2024-02-14 13:18 ` [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add eMMC support Geert Uytterhoeven
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2024-02-14 13:18 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: linux-renesas-soc, linux-arm-kernel, Geert Uytterhoeven

        Hi all,

This patch series adds SD/MMC support for the Renesas R-Car V4M
(R8A779H0) Soc and eMMC support for the Gray Hawk Single development
board.

This has been tested on Gray Hawk Single (eMMC read speed is ca. 240
MiB/s).

I intend to queue this in renesas-devel for v6.9.
As usual, I have updated my topic branch at [1].

Thanks for your comments!

[1] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/v4m-gray-hawk-single-v2

Cong Dang (2):
  arm64: dts: renesas: r8a779h0: Add SD/MMC node
  arm64: dts: renesas: gray-hawk-single: Add eMMC support

 .../dts/renesas/r8a779h0-gray-hawk-single.dts | 41 +++++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a779h0.dtsi     | 14 +++++++
 2 files changed, 55 insertions(+)

-- 
2.34.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add SD/MMC node
  2024-02-14 13:18 [PATCH 0/2] arm64: dts: renesas: r8a779h0/gray-hawk-single: Add eMMC support Geert Uytterhoeven
@ 2024-02-14 13:18 ` Geert Uytterhoeven
  2024-02-14 13:18 ` [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add eMMC support Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2024-02-14 13:18 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, linux-arm-kernel, Cong Dang, Geert Uytterhoeven

From: Cong Dang <cong.dang.xn@renesas.com>

Add a device node for SD/MMC on Renesas R-Car V4M (R8A779H0) SoC.

Signed-off-by: Cong Dang <cong.dang.xn@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Changes compared to the BSP:
  - Add missing SD0H clock,
  - Add missing clock-names property.
---
 arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi
index 66a93c88f8742431..d50ed1989ef52da7 100644
--- a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi
@@ -532,6 +532,20 @@ avb2: ethernet@e6820000 {
 			status = "disabled";
 		};
 
+		mmc0: mmc@ee140000 {
+			compatible = "renesas,sdhi-r8a779h0",
+				     "renesas,rcar-gen4-sdhi";
+			reg = <0 0xee140000 0 0x2000>;
+			interrupts = <GIC_SPI 440 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 706>,
+				 <&cpg CPG_CORE R8A779H0_CLK_SD0H>;
+			clock-names = "core", "clkh";
+			power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>;
+			resets = <&cpg 706>;
+			max-frequency = <200000000>;
+			status = "disabled";
+		};
+
 		gic: interrupt-controller@f1000000 {
 			compatible = "arm,gic-v3";
 			#interrupt-cells = <3>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add eMMC support
  2024-02-14 13:18 [PATCH 0/2] arm64: dts: renesas: r8a779h0/gray-hawk-single: Add eMMC support Geert Uytterhoeven
  2024-02-14 13:18 ` [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add SD/MMC node Geert Uytterhoeven
@ 2024-02-14 13:18 ` Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2024-02-14 13:18 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, linux-arm-kernel, Cong Dang, Geert Uytterhoeven

From: Cong Dang <cong.dang.xn@renesas.com>

Describe the eMMC on the Gray Hawk Single board.

Signed-off-by: Cong Dang <cong.dang.xn@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Changes compared to the BSP:
  - Apply to r8a779h0-gray-hawk-single.dts.
---
 .../dts/renesas/r8a779h0-gray-hawk-single.dts | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts
index fcb58b92daae31e1..c951dbb8b047e0c0 100644
--- a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts
+++ b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts
@@ -33,6 +33,24 @@ memory@480000000 {
 		device_type = "memory";
 		reg = <0x4 0x80000000 0x1 0x80000000>;
 	};
+
+	reg_1p8v: regulator-1p8v {
+			compatible = "regulator-fixed";
+			regulator-name = "fixed-1.8V";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-boot-on;
+			regulator-always-on;
+	};
+
+	reg_3p3v: regulator-3p3v {
+			compatible = "regulator-fixed";
+			regulator-name = "fixed-3.3V";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+	};
 };
 
 &avb0 {
@@ -105,6 +123,23 @@ eeprom@53 {
 	};
 };
 
+&mmc0 {
+	pinctrl-0 = <&mmc_pins>;
+	pinctrl-1 = <&mmc_pins>;
+	pinctrl-names = "default", "state_uhs";
+
+	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&reg_1p8v>;
+	mmc-hs200-1_8v;
+	mmc-hs400-1_8v;
+	bus-width = <8>;
+	no-sd;
+	no-sdio;
+	non-removable;
+	full-pwr-cycle-in-suspend;
+	status = "okay";
+};
+
 &pfc {
 	pinctrl-0 = <&scif_clk_pins>;
 	pinctrl-names = "default";
@@ -137,6 +172,12 @@ i2c0_pins: i2c0 {
 		function = "i2c0";
 	};
 
+	mmc_pins: mmc {
+		groups = "mmc_data8", "mmc_ctrl", "mmc_ds";
+		function = "mmc";
+		power-source = <1800>;
+	};
+
 	scif_clk_pins: scif-clk {
 		groups = "scif_clk";
 		function = "scif_clk";
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-14 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-14 13:18 [PATCH 0/2] arm64: dts: renesas: r8a779h0/gray-hawk-single: Add eMMC support Geert Uytterhoeven
2024-02-14 13:18 ` [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add SD/MMC node Geert Uytterhoeven
2024-02-14 13:18 ` [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add eMMC support Geert Uytterhoeven

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).