linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] v3u: add support for SDHI
@ 2021-01-21 10:38 Wolfram Sang
  2021-01-21 10:38 ` [PATCH 1/2] arm64: dts: renesas: r8a779a0: Add MMC node Wolfram Sang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Wolfram Sang @ 2021-01-21 10:38 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Wolfram Sang

Here is the updated series to enable SDHI on V3U. Please check the
individual patches for updates.


Takeshi Saito (2):
  arm64: dts: renesas: r8a779a0: Add MMC node
  arm64: dts: renesas: falcon: Enable MMC

 .../boot/dts/renesas/r8a779a0-falcon-cpu.dtsi | 41 +++++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a779a0.dtsi     | 12 ++++++
 2 files changed, 53 insertions(+)

-- 
2.29.2


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

* [PATCH 1/2] arm64: dts: renesas: r8a779a0: Add MMC node
  2021-01-21 10:38 [PATCH 0/2] v3u: add support for SDHI Wolfram Sang
@ 2021-01-21 10:38 ` Wolfram Sang
  2021-01-22 10:31   ` Geert Uytterhoeven
  2021-01-21 10:38 ` [PATCH 2/2] arm64: dts: renesas: falcon: Enable MMC Wolfram Sang
  2021-01-21 10:47 ` [PATCH 0/2] v3u: add support for SDHI Wolfram Sang
  2 siblings, 1 reply; 6+ messages in thread
From: Wolfram Sang @ 2021-01-21 10:38 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Takeshi Saito, Koji Matsuoka, Geert Uytterhoeven, Wolfram Sang

From: Takeshi Saito <takeshi.saito.xv@renesas.com>

Add a device node for MMC.

Signed-off-by: Koji Matsuoka <koji.matsuoka.xm@renesas.com>
[wsa: double checked & rebased]
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

Changes since v1: none

 arch/arm64/boot/dts/renesas/r8a779a0.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a779a0.dtsi b/arch/arm64/boot/dts/renesas/r8a779a0.dtsi
index 4671a5840ae1..45b4ea1965d4 100644
--- a/arch/arm64/boot/dts/renesas/r8a779a0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779a0.dtsi
@@ -816,6 +816,18 @@ dmac2: dma-controller@e7351000 {
 			dma-channels = <8>;
 		};
 
+		mmc0: mmc@ee140000 {
+			compatible = "renesas,sdhi-r8a779a0",
+				     "renesas,rcar-gen3-sdhi";
+			reg = <0 0xee140000 0 0x2000>;
+			interrupts = <GIC_SPI 236 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 706>;
+			power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
+			resets = <&cpg 706>;
+			max-frequency = <200000000>;
+			status = "disabled";
+		};
+
 		gic: interrupt-controller@f1000000 {
 			compatible = "arm,gic-v3";
 			#interrupt-cells = <3>;
-- 
2.29.2


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

* [PATCH 2/2] arm64: dts: renesas: falcon: Enable MMC
  2021-01-21 10:38 [PATCH 0/2] v3u: add support for SDHI Wolfram Sang
  2021-01-21 10:38 ` [PATCH 1/2] arm64: dts: renesas: r8a779a0: Add MMC node Wolfram Sang
@ 2021-01-21 10:38 ` Wolfram Sang
  2021-01-22 10:34   ` Geert Uytterhoeven
  2021-01-21 10:47 ` [PATCH 0/2] v3u: add support for SDHI Wolfram Sang
  2 siblings, 1 reply; 6+ messages in thread
From: Wolfram Sang @ 2021-01-21 10:38 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Takeshi Saito, Koji Matsuoka, Wolfram Sang

From: Takeshi Saito <takeshi.saito.xv@renesas.com>

Enable MMC on the Falcon board.

Signed-off-by: Koji Matsuoka <koji.matsuoka.xm@renesas.com>
[wsa: double checked, rebased, slightly improved, moved to falcon-cpu]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
Changes since v1:
* improved node names for regulators
* moved entries to Falcon CPU dtsi

 .../boot/dts/renesas/r8a779a0-falcon-cpu.dtsi | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a779a0-falcon-cpu.dtsi b/arch/arm64/boot/dts/renesas/r8a779a0-falcon-cpu.dtsi
index 0059381443f6..c54d1e287a49 100644
--- a/arch/arm64/boot/dts/renesas/r8a779a0-falcon-cpu.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779a0-falcon-cpu.dtsi
@@ -32,6 +32,24 @@ memory@700000000 {
 		device_type = "memory";
 		reg = <0x7 0x00000000 0x0 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 {
@@ -189,6 +207,23 @@ &i2c6 {
 	clock-frequency = <400000>;
 };
 
+&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 {
 	avb0_pins: avb0 {
 		mux {
@@ -327,6 +362,12 @@ i2c6_pins: i2c6 {
 		groups = "i2c6";
 		function = "i2c6";
 	};
+
+	mmc_pins: mmc {
+		groups = "mmc_data8", "mmc_ctrl", "mmc_ds";
+		function = "mmc";
+		power-source = <1800>;
+	};
 };
 
 &scif0 {
-- 
2.29.2


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

* Re: [PATCH 0/2] v3u: add support for SDHI
  2021-01-21 10:38 [PATCH 0/2] v3u: add support for SDHI Wolfram Sang
  2021-01-21 10:38 ` [PATCH 1/2] arm64: dts: renesas: r8a779a0: Add MMC node Wolfram Sang
  2021-01-21 10:38 ` [PATCH 2/2] arm64: dts: renesas: falcon: Enable MMC Wolfram Sang
@ 2021-01-21 10:47 ` Wolfram Sang
  2 siblings, 0 replies; 6+ messages in thread
From: Wolfram Sang @ 2021-01-21 10:47 UTC (permalink / raw)
  To: linux-renesas-soc

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

On Thu, Jan 21, 2021 at 11:38:28AM +0100, Wolfram Sang wrote:
> Here is the updated series to enable SDHI on V3U. Please check the
> individual patches for updates.

Should be all "PATCH V2", of course. I am sorry that it slipped through.


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

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

* Re: [PATCH 1/2] arm64: dts: renesas: r8a779a0: Add MMC node
  2021-01-21 10:38 ` [PATCH 1/2] arm64: dts: renesas: r8a779a0: Add MMC node Wolfram Sang
@ 2021-01-22 10:31   ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2021-01-22 10:31 UTC (permalink / raw)
  To: Wolfram Sang, Koji Matsuoka, Takeshi Saito; +Cc: Linux-Renesas

Hi Wolfram, Matsuoka-san, Saito-san,

On Thu, Jan 21, 2021 at 11:38 AM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> From: Takeshi Saito <takeshi.saito.xv@renesas.com>
>
> Add a device node for MMC.
>
> Signed-off-by: Koji Matsuoka <koji.matsuoka.xm@renesas.com>
> [wsa: double checked & rebased]
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

ERROR: Missing Signed-off-by: line by nominal patch author 'Takeshi
Saito <takeshi.saito.xv@renesas.com>'

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] 6+ messages in thread

* Re: [PATCH 2/2] arm64: dts: renesas: falcon: Enable MMC
  2021-01-21 10:38 ` [PATCH 2/2] arm64: dts: renesas: falcon: Enable MMC Wolfram Sang
@ 2021-01-22 10:34   ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2021-01-22 10:34 UTC (permalink / raw)
  To: Wolfram Sang, Takeshi Saito, Koji Matsuoka; +Cc: Linux-Renesas

Hi Wolfram, Saito-san, Matsuoka-san,

On Thu, Jan 21, 2021 at 11:40 AM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> From: Takeshi Saito <takeshi.saito.xv@renesas.com>
>
> Enable MMC on the Falcon board.
>
> Signed-off-by: Koji Matsuoka <koji.matsuoka.xm@renesas.com>
> [wsa: double checked, rebased, slightly improved, moved to falcon-cpu]
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

ERROR: Missing Signed-off-by: line by nominal patch author 'Takeshi
Saito <takeshi.saito.xv@renesas.com>'

> ---
> Changes since v1:
> * improved node names for regulators
> * moved entries to Falcon CPU dtsi

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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] 6+ messages in thread

end of thread, other threads:[~2021-01-22 10:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-21 10:38 [PATCH 0/2] v3u: add support for SDHI Wolfram Sang
2021-01-21 10:38 ` [PATCH 1/2] arm64: dts: renesas: r8a779a0: Add MMC node Wolfram Sang
2021-01-22 10:31   ` Geert Uytterhoeven
2021-01-21 10:38 ` [PATCH 2/2] arm64: dts: renesas: falcon: Enable MMC Wolfram Sang
2021-01-22 10:34   ` Geert Uytterhoeven
2021-01-21 10:47 ` [PATCH 0/2] v3u: add support for SDHI Wolfram Sang

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