public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: dts: renesas: r8a7740-armadillo800eva: Enable SDHI1
@ 2026-02-12  7:38 phucduc.bui
  2026-02-20  0:43 ` [PATCH] ARM: dts: renesas: r8a7740-armadillo800eva: Enable phucduc.bui
  2026-02-24  7:45 ` [PATCH v2] arm: dts: renesas: r8a7740-armadillo800eva: Enable SDHI1 phucduc.bui
  0 siblings, 2 replies; 6+ messages in thread
From: phucduc.bui @ 2026-02-12  7:38 UTC (permalink / raw)
  To: geert+renesas, magnus.damm
  Cc: robh, krzk+dt, conor+dt, linux-renesas-soc, devicetree,
	linux-kernel, phucduc.bui

From: bui duc phuc <phucduc.bui@gmail.com>

The Armadillo800EVA board provides an SD card slot connected to
the SDHI1 interface, but it is currently disabled in the device tree.

Add a fixed 3.3V regulator, configure the required pinctrl groups,
and enable the SDHI1 controller in 4-bit mode.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 .../dts/renesas/r8a7740-armadillo800eva.dts   | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts b/arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts
index 04d24b6d8056..4838b285bdd9 100644
--- a/arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts
+++ b/arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts
@@ -65,6 +65,17 @@ vccq_sdhi0: regulator-vccq-sdhi0 {
 		enable-active-high;
 	};
 
+	vcc_sdhi1: regulator-vcc-sdhi1 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "SDHI1 Vcc";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpio = <&pfc 16 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};
+
 	reg_5p0v: regulator-5p0v {
 		compatible = "regulator-fixed";
 		regulator-name = "fixed-5.0V";
@@ -285,6 +296,11 @@ sdhi0_pins: sd0 {
 		function = "sdhi0";
 	};
 
+	sdhi1_pins: sd1 {
+		groups = "sdhi1_data4", "sdhi1_ctrl", "sdhi1_cd", "sdhi1_wp";
+		function = "sdhi1";
+	};
+
 	fsia_pins: sounda {
 		groups = "fsia_sclk_in", "fsia_mclk_out",
 			 "fsia_data_in_1", "fsia_data_out_0";
@@ -336,6 +352,15 @@ &sdhi0 {
 	status = "okay";
 };
 
+&sdhi1 {
+	pinctrl-0 = <&sdhi1_pins>;
+	pinctrl-names = "default";
+
+	vmmc-supply = <&vcc_sdhi1>;
+	bus-width = <4>;
+	status = "okay";
+};
+
 &sh_fsi2 {
 	pinctrl-0 = <&fsia_pins>;
 	pinctrl-names = "default";
-- 
2.43.0


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

end of thread, other threads:[~2026-03-13  9:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-12  7:38 [PATCH] arm: dts: renesas: r8a7740-armadillo800eva: Enable SDHI1 phucduc.bui
2026-02-20  0:43 ` [PATCH] ARM: dts: renesas: r8a7740-armadillo800eva: Enable phucduc.bui
2026-02-24  7:45 ` [PATCH v2] arm: dts: renesas: r8a7740-armadillo800eva: Enable SDHI1 phucduc.bui
2026-03-02 16:45   ` Wolfram Sang
2026-03-03 13:12     ` phucduc.bui
2026-03-13  9:39   ` Geert Uytterhoeven

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