All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] arm64: dts: add support for eMMC with 8 bit bus width
@ 2016-10-16  8:27 Wolfram Sang
  2016-10-16  8:27 ` [PATCH v3 1/2] arm64: dts: r8a7795: salvator: enable on-board eMMC Wolfram Sang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wolfram Sang @ 2016-10-16  8:27 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Simon Horman, Wolfram Sang

From: Wolfram Sang <wsa@the-dreams.de>

Since the MMC core parts for eMMC 8 bit support are now upstream, we can also
pull in the DTS changes. The patches are also in renesas/drivers
(0dca0dbaac8269 and 9dea74f4b9eb79), so could be picked from there?

Change since V2:

Fixed a duplicate node name to be unique (Thanks Sergei!)

Wolfram Sang (2):
  arm64: dts: r8a7795: salvator: enable on-board eMMC
  arm64: dts: r8a7796: salvator: enable on board eMMC

 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 43 +++++++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 44 +++++++++++++++++++++-
 2 files changed, 86 insertions(+), 1 deletion(-)

-- 
2.9.3

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

* [PATCH v3 1/2] arm64: dts: r8a7795: salvator: enable on-board eMMC
  2016-10-16  8:27 [PATCH v3 0/2] arm64: dts: add support for eMMC with 8 bit bus width Wolfram Sang
@ 2016-10-16  8:27 ` Wolfram Sang
  2016-10-16  8:27 ` [PATCH v3 2/2] arm64: dts: r8a7796: salvator: enable on board eMMC Wolfram Sang
  2016-10-20  9:21 ` [PATCH v3 0/2] arm64: dts: add support for eMMC with 8 bit bus width Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2016-10-16  8:27 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Simon Horman, Wolfram Sang

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 43 ++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
index 8964b1ea3cea69..8e98aeae54c066 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -62,6 +62,24 @@
 		clock-frequency = <24576000>;
 	};
 
+	reg_1p8v: regulator0 {
+		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";
+		regulator-name = "fixed-3.3V";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
 	vcc_sdhi0: regulator-vcc-sdhi0 {
 		compatible = "regulator-fixed";
 
@@ -246,6 +264,18 @@
 		power-source = <1800>;
 	};
 
+	sdhi2_pins: sd2 {
+		groups = "sdhi2_data8", "sdhi2_ctrl";
+		function = "sdhi2";
+		power-source = <3300>;
+	};
+
+	sdhi2_pins_uhs: sd2_uhs {
+		groups = "sdhi2_data8", "sdhi2_ctrl";
+		function = "sdhi2";
+		power-source = <1800>;
+	};
+
 	sdhi3_pins: sd3 {
 		groups = "sdhi3_data4", "sdhi3_ctrl";
 		function = "sdhi3";
@@ -398,6 +428,19 @@
 	status = "okay";
 };
 
+&sdhi2 {
+	/* used for on-board 8bit eMMC */
+	pinctrl-0 = <&sdhi2_pins>;
+	pinctrl-1 = <&sdhi2_pins_uhs>;
+	pinctrl-names = "default", "state_uhs";
+
+	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&reg_1p8v>;
+	bus-width = <8>;
+	non-removable;
+	status = "okay";
+};
+
 &sdhi3 {
 	pinctrl-0 = <&sdhi3_pins>;
 	pinctrl-1 = <&sdhi3_pins_uhs>;
-- 
2.9.3

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

* [PATCH v3 2/2] arm64: dts: r8a7796: salvator: enable on board eMMC
  2016-10-16  8:27 [PATCH v3 0/2] arm64: dts: add support for eMMC with 8 bit bus width Wolfram Sang
  2016-10-16  8:27 ` [PATCH v3 1/2] arm64: dts: r8a7795: salvator: enable on-board eMMC Wolfram Sang
@ 2016-10-16  8:27 ` Wolfram Sang
  2016-10-20  9:21 ` [PATCH v3 0/2] arm64: dts: add support for eMMC with 8 bit bus width Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2016-10-16  8:27 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Simon Horman, Wolfram Sang

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 44 +++++++++++++++++++++-
 1 file changed, 43 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
index 91440eb2237e72..8cda70db2745ae 100644
--- a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
@@ -31,6 +31,24 @@
 		reg = <0x0 0x48000000 0x0 0x78000000>;
 	};
 
+	reg_1p8v: regulator0 {
+		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";
+		regulator-name = "fixed-3.3V";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
 	vcc_sdhi0: regulator-vcc-sdhi0 {
 		compatible = "regulator-fixed";
 
@@ -78,7 +96,6 @@
 		states = <3300000 1
 			  1800000 0>;
 	};
-
 };
 
 &pfc {
@@ -106,6 +123,18 @@
 		power-source = <1800>;
 	};
 
+	sdhi2_pins: sd2 {
+		groups = "sdhi2_data8", "sdhi2_ctrl";
+		function = "sdhi2";
+		power-source = <3300>;
+	};
+
+	sdhi2_pins_uhs: sd2_uhs {
+		groups = "sdhi2_data8", "sdhi2_ctrl";
+		function = "sdhi2";
+		power-source = <1800>;
+	};
+
 	sdhi3_pins: sd3 {
 		groups = "sdhi3_data4", "sdhi3_ctrl";
 		function = "sdhi3";
@@ -138,6 +167,19 @@
 	status = "okay";
 };
 
+&sdhi2 {
+	/* used for on-board 8bit eMMC */
+	pinctrl-0 = <&sdhi2_pins>;
+	pinctrl-1 = <&sdhi2_pins_uhs>;
+	pinctrl-names = "default", "state_uhs";
+
+	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&reg_1p8v>;
+	bus-width = <8>;
+	non-removable;
+	status = "okay";
+};
+
 &sdhi3 {
 	pinctrl-0 = <&sdhi3_pins>;
 	pinctrl-1 = <&sdhi3_pins_uhs>;
-- 
2.9.3

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

* Re: [PATCH v3 0/2] arm64: dts: add support for eMMC with 8 bit bus width
  2016-10-16  8:27 [PATCH v3 0/2] arm64: dts: add support for eMMC with 8 bit bus width Wolfram Sang
  2016-10-16  8:27 ` [PATCH v3 1/2] arm64: dts: r8a7795: salvator: enable on-board eMMC Wolfram Sang
  2016-10-16  8:27 ` [PATCH v3 2/2] arm64: dts: r8a7796: salvator: enable on board eMMC Wolfram Sang
@ 2016-10-20  9:21 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2016-10-20  9:21 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: linux-renesas-soc, Wolfram Sang

On Sun, Oct 16, 2016 at 10:27:46AM +0200, Wolfram Sang wrote:
> From: Wolfram Sang <wsa@the-dreams.de>
> 
> Since the MMC core parts for eMMC 8 bit support are now upstream, we can also
> pull in the DTS changes. The patches are also in renesas/drivers
> (0dca0dbaac8269 and 9dea74f4b9eb79), so could be picked from there?

Thanks, I cherry picked the commits above as it made it easier
to resolve conflicts. Please check to make sure I got it right.

> Change since V2:
> 
> Fixed a duplicate node name to be unique (Thanks Sergei!)
> 
> Wolfram Sang (2):
>   arm64: dts: r8a7795: salvator: enable on-board eMMC
>   arm64: dts: r8a7796: salvator: enable on board eMMC
> 
>  arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 43 +++++++++++++++++++++
>  arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 44 +++++++++++++++++++++-
>  2 files changed, 86 insertions(+), 1 deletion(-)
> 
> -- 
> 2.9.3
> 

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

end of thread, other threads:[~2016-10-20  9:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-16  8:27 [PATCH v3 0/2] arm64: dts: add support for eMMC with 8 bit bus width Wolfram Sang
2016-10-16  8:27 ` [PATCH v3 1/2] arm64: dts: r8a7795: salvator: enable on-board eMMC Wolfram Sang
2016-10-16  8:27 ` [PATCH v3 2/2] arm64: dts: r8a7796: salvator: enable on board eMMC Wolfram Sang
2016-10-20  9:21 ` [PATCH v3 0/2] arm64: dts: add support for eMMC with 8 bit bus width Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.