public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
* [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support
@ 2025-11-14 11:14 Ovidiu Panait
  2025-11-14 11:14 ` [PATCH 6.12.y-cip 1/1] arm64: dts: renesas: Add CN15 eMMC and SD overlays for RZ/V2H and RZ/V2N EVKs Ovidiu Panait
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ovidiu Panait @ 2025-11-14 11:14 UTC (permalink / raw)
  To: cip-dev, pavel, nobuhiro1.iwamatsu

Hi,

This series adds support in 6.12.y-cip for the eMMC and microSD sub-boards
connected via the CN15 connector on the RZ/V2H evaluation kit.

Patch was cherry-picked from mainline kernel. Note that only the RZ/V2H
part of the patch was backported, as there is no support currently for
the RZ/V2N SoC in 6.12.y-cip.

Best regards,
Ovidiu

Lad Prabhakar (1):
  arm64: dts: renesas: Add CN15 eMMC and SD overlays for RZ/V2H and
    RZ/V2N EVKs

 arch/arm64/boot/dts/renesas/Makefile          |  6 ++
 .../dts/renesas/r9a09g057h44-rzv2h-evk.dts    |  9 +++
 .../boot/dts/renesas/rzv2-evk-cn15-emmc.dtso  | 50 ++++++++++++++
 .../boot/dts/renesas/rzv2-evk-cn15-sd.dtso    | 69 +++++++++++++++++++
 4 files changed, 134 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/rzv2-evk-cn15-emmc.dtso
 create mode 100644 arch/arm64/boot/dts/renesas/rzv2-evk-cn15-sd.dtso

-- 
2.51.0



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

* [PATCH 6.12.y-cip 1/1] arm64: dts: renesas: Add CN15 eMMC and SD overlays for RZ/V2H and RZ/V2N EVKs
  2025-11-14 11:14 [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support Ovidiu Panait
@ 2025-11-14 11:14 ` Ovidiu Panait
  2025-11-18 21:18 ` [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support Pavel Machek
  2025-11-19  6:01 ` nobuhiro.iwamatsu.x90
  2 siblings, 0 replies; 5+ messages in thread
From: Ovidiu Panait @ 2025-11-14 11:14 UTC (permalink / raw)
  To: cip-dev, pavel, nobuhiro1.iwamatsu

From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

commit 3d6c2bc7629c8b1bfd75416767122096bb75ba7b upstream.

Introduce device tree overlays for supporting the eMMC (RTK0EF0186B02000BJ)
and microSD (RTK0EF0186B01000BJ) sub-boards connected via the CN15
connector on the RZ/V2H and RZ/V2N evaluation kits.

These overlays enable SDHI0 with appropriate pin control settings, power
regulators, and GPIO handling. Both sub-boards are supported using shared
overlay files that can be applied to either EVK due to their identical
connector layout and interface support.

To support this, new DT overlay files are added:
- `rzv2-evk-cn15-emmc.dtso` for eMMC
- `rzv2-evk-cn15-sd.dtso` for microSD

Additionally, the base DTS files for both EVKs are updated to include a
fixed 1.8V regulator (`reg_1p8v`) needed by the eMMC sub-board and
potential future use cases such as HDMI output.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250627193742.110818-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
[OP: cherry-picked RZ/V2H parts only]
Signed-off-by: Ovidiu Panait <ovidiu.panait.rb@renesas.com>
---
 arch/arm64/boot/dts/renesas/Makefile          |  6 ++
 .../dts/renesas/r9a09g057h44-rzv2h-evk.dts    |  9 +++
 .../boot/dts/renesas/rzv2-evk-cn15-emmc.dtso  | 50 ++++++++++++++
 .../boot/dts/renesas/rzv2-evk-cn15-sd.dtso    | 69 +++++++++++++++++++
 4 files changed, 134 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/rzv2-evk-cn15-emmc.dtso
 create mode 100644 arch/arm64/boot/dts/renesas/rzv2-evk-cn15-sd.dtso

diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile
index c8a8a2d108a4..8403ef4fbe88 100644
--- a/arch/arm64/boot/dts/renesas/Makefile
+++ b/arch/arm64/boot/dts/renesas/Makefile
@@ -149,6 +149,12 @@ r9a09g047e57-smarc-cru-csi-ov5645-dtbs := r9a09g047e57-smarc.dtb r9a09g047e57-sm
 dtb-$(CONFIG_ARCH_R9A09G047) += r9a09g047e57-smarc-cru-csi-ov5645.dtb
 
 dtb-$(CONFIG_ARCH_R9A09G057) += r9a09g057h44-rzv2h-evk.dtb
+dtb-$(CONFIG_ARCH_R9A09G057) += rzv2-evk-cn15-emmc.dtbo
+r9a09g057h44-rzv2h-evk-cn15-emmc-dtbs := r9a09g057h44-rzv2h-evk.dtb rzv2-evk-cn15-emmc.dtbo
+dtb-$(CONFIG_ARCH_R9A09G057) += r9a09g057h44-rzv2h-evk-cn15-emmc.dtb
+dtb-$(CONFIG_ARCH_R9A09G057) += rzv2-evk-cn15-sd.dtbo
+r9a09g057h44-rzv2h-evk-cn15-sd-dtbs := r9a09g057h44-rzv2h-evk.dtb rzv2-evk-cn15-sd.dtbo
+dtb-$(CONFIG_ARCH_R9A09G057) += r9a09g057h44-rzv2h-evk-cn15-sd.dtb
 
 dtb-$(CONFIG_ARCH_RCAR_GEN3) += draak-ebisu-panel-aa104xd12.dtbo
 dtb-$(CONFIG_ARCH_RCAR_GEN3) += salvator-panel-aa104xd12.dtbo
diff --git a/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts b/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts
index a53ef16c2b1e..392fd2a54649 100644
--- a/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts
+++ b/arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts
@@ -45,6 +45,15 @@ memory@240000000 {
 		reg = <0x2 0x40000000 0x2 0x00000000>;
 	};
 
+	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: regulator1 {
 		compatible = "regulator-fixed";
 
diff --git a/arch/arm64/boot/dts/renesas/rzv2-evk-cn15-emmc.dtso b/arch/arm64/boot/dts/renesas/rzv2-evk-cn15-emmc.dtso
new file mode 100644
index 000000000000..eda2b31f6d79
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/rzv2-evk-cn15-emmc.dtso
@@ -0,0 +1,50 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Shared DT overlay for the eMMC Sub Board (RTK0EF0186B02000BJ), which
+ * is connected to the CN15 connector on the RZ/V2H and RZ/V2N EVKs.
+ *
+ * Copyright (C) 2025 Renesas Electronics Corp.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
+
+&{/} {
+	aliases {
+		mmc0 = "/soc/mmc@15c00000";
+	};
+};
+
+&pinctrl {
+	sdhi0_emmc_pins: emmc-pins {
+		sd0-clk {
+			pins = "SD0CLK";
+			renesas,output-impedance = <3>;
+			slew-rate = <0>;
+		};
+
+		sd0-dat-cmd {
+			pins = "SD0DAT0", "SD0DAT1", "SD0DAT2", "SD0DAT3", "SD0DAT4",
+			       "SD0DAT5", "SD0DAT6", "SD0DAT7", "SD0CMD";
+			input-enable;
+			renesas,output-impedance = <3>;
+			slew-rate = <0>;
+		};
+	};
+};
+
+&sdhi0 {
+	pinctrl-0 = <&sdhi0_emmc_pins>;
+	pinctrl-1 = <&sdhi0_emmc_pins>;
+	pinctrl-names = "default", "state_uhs";
+	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&reg_1p8v>;
+	bus-width = <8>;
+	mmc-hs200-1_8v;
+	non-removable;
+	fixed-emmc-driver-type = <1>;
+	status = "okay";
+};
diff --git a/arch/arm64/boot/dts/renesas/rzv2-evk-cn15-sd.dtso b/arch/arm64/boot/dts/renesas/rzv2-evk-cn15-sd.dtso
new file mode 100644
index 000000000000..0af1e0a6c7f4
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/rzv2-evk-cn15-sd.dtso
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Shared DT overlay for the microSD Sub Board (RTK0EF0186B01000BJ), which
+ * is connected to the CN15 connector on the RZ/V2H and RZ/V2N EVKs.
+ *
+ * Copyright (C) 2025 Renesas Electronics Corp.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
+
+&{/} {
+	aliases {
+		mmc0 = "/soc/mmc@15c00000";
+	};
+
+	vqmmc_sdhi0: regulator-vqmmc-sdhi0 {
+		compatible = "regulator-gpio";
+		regulator-name = "SDHI0 VqmmC";
+		gpios = <&pinctrl RZG2L_GPIO(10, 0) GPIO_ACTIVE_HIGH>;
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <3300000>;
+		gpios-states = <0>;
+		states = <3300000 0>, <1800000 1>;
+	};
+};
+
+&pinctrl {
+	sdhi0-pwr-en-hog {
+		gpio-hog;
+		gpios = <RZG2L_GPIO(10, 1) GPIO_ACTIVE_HIGH>;
+		output-high;
+		line-name = "sd0_pwr_en";
+	};
+
+	sdhi0_pins: sd0 {
+		sd0-cd {
+			pinmux = <RZG2L_PORT_PINMUX(10, 5, 15)>; /* SD0_CD */
+		};
+
+		sd0-clk {
+			pins = "SD0CLK";
+			renesas,output-impedance = <3>;
+			slew-rate = <0>;
+		};
+
+		sd0-dat-cmd {
+			pins = "SD0DAT0", "SD0DAT1", "SD0DAT2", "SD0DAT3", "SD0CMD";
+			input-enable;
+			renesas,output-impedance = <3>;
+			slew-rate = <0>;
+		};
+	};
+};
+
+&sdhi0 {
+	pinctrl-0 = <&sdhi0_pins>;
+	pinctrl-1 = <&sdhi0_pins>;
+	pinctrl-names = "default", "state_uhs";
+	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&vqmmc_sdhi0>;
+	bus-width = <4>;
+	sd-uhs-sdr50;
+	sd-uhs-sdr104;
+	status = "okay";
+};
-- 
2.51.0



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

* Re: [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support
  2025-11-14 11:14 [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support Ovidiu Panait
  2025-11-14 11:14 ` [PATCH 6.12.y-cip 1/1] arm64: dts: renesas: Add CN15 eMMC and SD overlays for RZ/V2H and RZ/V2N EVKs Ovidiu Panait
@ 2025-11-18 21:18 ` Pavel Machek
  2025-11-19  6:01 ` nobuhiro.iwamatsu.x90
  2 siblings, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2025-11-18 21:18 UTC (permalink / raw)
  To: Ovidiu Panait; +Cc: cip-dev, nobuhiro1.iwamatsu

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

Hi!

> This series adds support in 6.12.y-cip for the eMMC and microSD sub-boards
> connected via the CN15 connector on the RZ/V2H evaluation kit.
> 
> Patch was cherry-picked from mainline kernel. Note that only the RZ/V2H
> part of the patch was backported, as there is no support currently for
> the RZ/V2N SoC in 6.12.y-cip.

Looks ok to me. I can apply it, unless there's veto or test failure.

Best regards,
								Pavel
-- 
In cooperation with DENX Software Engineering GmbH, HRB 165235 Munich,
Office: Kirchenstr.5, D-82194 Groebenzell, Germany

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* RE: [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support
  2025-11-14 11:14 [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support Ovidiu Panait
  2025-11-14 11:14 ` [PATCH 6.12.y-cip 1/1] arm64: dts: renesas: Add CN15 eMMC and SD overlays for RZ/V2H and RZ/V2N EVKs Ovidiu Panait
  2025-11-18 21:18 ` [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support Pavel Machek
@ 2025-11-19  6:01 ` nobuhiro.iwamatsu.x90
  2025-11-19 10:48   ` Pavel Machek
  2 siblings, 1 reply; 5+ messages in thread
From: nobuhiro.iwamatsu.x90 @ 2025-11-19  6:01 UTC (permalink / raw)
  To: ovidiu.panait.rb, cip-dev, pavel

Hi all,

> -----Original Message-----
> From: Ovidiu Panait <ovidiu.panait.rb@renesas.com>
> Sent: Friday, November 14, 2025 8:14 PM
> To: cip-dev@lists.cip-project.org; pavel@denx.de; iwamatsu nobuhiro(岩松 信
> 洋 □DITC○CPT) <nobuhiro.iwamatsu.x90@mail.toshiba>
> Subject: [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support
> 
> Hi,
> 
> This series adds support in 6.12.y-cip for the eMMC and microSD sub-boards
> connected via the CN15 connector on the RZ/V2H evaluation kit.
> 
> Patch was cherry-picked from mainline kernel. Note that only the RZ/V2H part
> of the patch was backported, as there is no support currently for the RZ/V2N
> SoC in 6.12.y-cip.
> 
> Best regards,
> Ovidiu
> 
> Lad Prabhakar (1):
>   arm64: dts: renesas: Add CN15 eMMC and SD overlays for RZ/V2H and
>     RZ/V2N EVKs
> 
>  arch/arm64/boot/dts/renesas/Makefile          |  6 ++
>  .../dts/renesas/r9a09g057h44-rzv2h-evk.dts    |  9 +++
>  .../boot/dts/renesas/rzv2-evk-cn15-emmc.dtso  | 50 ++++++++++++++
>  .../boot/dts/renesas/rzv2-evk-cn15-sd.dtso    | 69
> +++++++++++++++++++
>  4 files changed, 134 insertions(+)
>  create mode 100644
> arch/arm64/boot/dts/renesas/rzv2-evk-cn15-emmc.dtso
>  create mode 100644 arch/arm64/boot/dts/renesas/rzv2-evk-cn15-sd.dtso
> 
I reviewed this patch, looks good to me.
I can apply this series if there are no other comments.

Reviewed-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.x90@mail.toshiba>

Best regards,
  Nobuhiro



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

* Re: [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support
  2025-11-19  6:01 ` nobuhiro.iwamatsu.x90
@ 2025-11-19 10:48   ` Pavel Machek
  0 siblings, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2025-11-19 10:48 UTC (permalink / raw)
  To: nobuhiro.iwamatsu.x90; +Cc: ovidiu.panait.rb, cip-dev

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

Hi!

> >  arch/arm64/boot/dts/renesas/Makefile          |  6 ++
> >  .../dts/renesas/r9a09g057h44-rzv2h-evk.dts    |  9 +++
> >  .../boot/dts/renesas/rzv2-evk-cn15-emmc.dtso  | 50 ++++++++++++++
> >  .../boot/dts/renesas/rzv2-evk-cn15-sd.dtso    | 69
> > +++++++++++++++++++
> >  4 files changed, 134 insertions(+)
> >  create mode 100644
> > arch/arm64/boot/dts/renesas/rzv2-evk-cn15-emmc.dtso
> >  create mode 100644 arch/arm64/boot/dts/renesas/rzv2-evk-cn15-sd.dtso
> > 
> I reviewed this patch, looks good to me.
> I can apply this series if there are no other comments.
> 
> Reviewed-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.x90@mail.toshiba>

Thank you, applied.

Best regards,
								Pavel
-- 
In cooperation with DENX Software Engineering GmbH, HRB 165235 Munich,
Office: Kirchenstr.5, D-82194 Groebenzell, Germany

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

end of thread, other threads:[~2025-11-19 10:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-14 11:14 [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support Ovidiu Panait
2025-11-14 11:14 ` [PATCH 6.12.y-cip 1/1] arm64: dts: renesas: Add CN15 eMMC and SD overlays for RZ/V2H and RZ/V2N EVKs Ovidiu Panait
2025-11-18 21:18 ` [PATCH 6.12.y-cip 0/1] Add RZ/V2H eMMC support Pavel Machek
2025-11-19  6:01 ` nobuhiro.iwamatsu.x90
2025-11-19 10:48   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox