* [PATCH V2] arm64: dts: renesas: Switch eMMC bus to 1V8 on Salvator-X and ULCB
@ 2018-11-04 20:37 Marek Vasut
2018-11-06 10:57 ` Wolfram Sang
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2018-11-04 20:37 UTC (permalink / raw)
To: devicetree
Cc: Marek Vasut, Geert Uytterhoeven, Simon Horman, Wolfram Sang,
Yoshihiro Shimoda, linux-renesas-soc, linux-mmc
The eMMC card has two supplies, VCC and VCCQ. The VCC supplies the NAND
array and the VCCQ supplies the bus. On Salvator-X and ULCB, the VCC is
connected to 3.3V rail, while the VCCQ is connected to 1.8V rail. Adjust
the pinmux to match the bus, which is always operating in 1.8V mode.
While at it, deduplicate the pinmux entries, which are now the same for
both default and UHS modes. We still need the two pinctrl entries to
match the bindings though.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: linux-renesas-soc@vger.kernel.org
Cc: linux-mmc@vger.kernel.org
---
V2: - Squash patches for multiple boards together
- Deduplicate pinmux entries
---
arch/arm64/boot/dts/renesas/salvator-common.dtsi | 8 +-------
arch/arm64/boot/dts/renesas/ulcb.dtsi | 8 +-------
2 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/arch/arm64/boot/dts/renesas/salvator-common.dtsi b/arch/arm64/boot/dts/renesas/salvator-common.dtsi
index 7f91ff524109..69775a201b4d 100644
--- a/arch/arm64/boot/dts/renesas/salvator-common.dtsi
+++ b/arch/arm64/boot/dts/renesas/salvator-common.dtsi
@@ -605,12 +605,6 @@
};
sdhi2_pins: sd2 {
- groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
- function = "sdhi2";
- power-source = <3300>;
- };
-
- sdhi2_pins_uhs: sd2_uhs {
groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
function = "sdhi2";
power-source = <1800>;
@@ -760,7 +754,7 @@
&sdhi2 {
/* used for on-board 8bit eMMC */
pinctrl-0 = <&sdhi2_pins>;
- pinctrl-1 = <&sdhi2_pins_uhs>;
+ pinctrl-1 = <&sdhi2_pins>;
pinctrl-names = "default", "state_uhs";
vmmc-supply = <®_3p3v>;
diff --git a/arch/arm64/boot/dts/renesas/ulcb.dtsi b/arch/arm64/boot/dts/renesas/ulcb.dtsi
index 89daca7356df..de694fdae067 100644
--- a/arch/arm64/boot/dts/renesas/ulcb.dtsi
+++ b/arch/arm64/boot/dts/renesas/ulcb.dtsi
@@ -330,12 +330,6 @@
};
sdhi2_pins: sd2 {
- groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
- function = "sdhi2";
- power-source = <3300>;
- };
-
- sdhi2_pins_uhs: sd2_uhs {
groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
function = "sdhi2";
power-source = <1800>;
@@ -426,7 +420,7 @@
&sdhi2 {
/* used for on-board 8bit eMMC */
pinctrl-0 = <&sdhi2_pins>;
- pinctrl-1 = <&sdhi2_pins_uhs>;
+ pinctrl-1 = <&sdhi2_pins>;
pinctrl-names = "default", "state_uhs";
vmmc-supply = <®_3p3v>;
--
2.18.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH V2] arm64: dts: renesas: Switch eMMC bus to 1V8 on Salvator-X and ULCB
2018-11-04 20:37 [PATCH V2] arm64: dts: renesas: Switch eMMC bus to 1V8 on Salvator-X and ULCB Marek Vasut
@ 2018-11-06 10:57 ` Wolfram Sang
2018-11-06 12:14 ` Simon Horman
0 siblings, 1 reply; 3+ messages in thread
From: Wolfram Sang @ 2018-11-06 10:57 UTC (permalink / raw)
To: Marek Vasut
Cc: devicetree, Marek Vasut, Geert Uytterhoeven, Simon Horman,
Yoshihiro Shimoda, linux-renesas-soc, linux-mmc
[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]
On Sun, Nov 04, 2018 at 09:37:07PM +0100, Marek Vasut wrote:
> The eMMC card has two supplies, VCC and VCCQ. The VCC supplies the NAND
> array and the VCCQ supplies the bus. On Salvator-X and ULCB, the VCC is
> connected to 3.3V rail, while the VCCQ is connected to 1.8V rail. Adjust
> the pinmux to match the bus, which is always operating in 1.8V mode.
>
> While at it, deduplicate the pinmux entries, which are now the same for
> both default and UHS modes. We still need the two pinctrl entries to
> match the bindings though.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
> Cc: Geert Uytterhoeven <geert+renesas@glider.be>
> Cc: Simon Horman <horms+renesas@verge.net.au>
> Cc: Wolfram Sang <wsa@the-dreams.de>
> Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> Cc: linux-renesas-soc@vger.kernel.org
> Cc: linux-mmc@vger.kernel.org
Tested on M3-N and H3 ES2.0 with HS400 enabled eMMC:
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V2] arm64: dts: renesas: Switch eMMC bus to 1V8 on Salvator-X and ULCB
2018-11-06 10:57 ` Wolfram Sang
@ 2018-11-06 12:14 ` Simon Horman
0 siblings, 0 replies; 3+ messages in thread
From: Simon Horman @ 2018-11-06 12:14 UTC (permalink / raw)
To: Wolfram Sang
Cc: Marek Vasut, devicetree, Marek Vasut, Geert Uytterhoeven,
Yoshihiro Shimoda, linux-renesas-soc, linux-mmc
On Tue, Nov 06, 2018 at 11:57:17AM +0100, Wolfram Sang wrote:
> On Sun, Nov 04, 2018 at 09:37:07PM +0100, Marek Vasut wrote:
> > The eMMC card has two supplies, VCC and VCCQ. The VCC supplies the NAND
> > array and the VCCQ supplies the bus. On Salvator-X and ULCB, the VCC is
> > connected to 3.3V rail, while the VCCQ is connected to 1.8V rail. Adjust
> > the pinmux to match the bus, which is always operating in 1.8V mode.
> >
> > While at it, deduplicate the pinmux entries, which are now the same for
> > both default and UHS modes. We still need the two pinctrl entries to
> > match the bindings though.
> >
> > Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
> > Cc: Geert Uytterhoeven <geert+renesas@glider.be>
> > Cc: Simon Horman <horms+renesas@verge.net.au>
> > Cc: Wolfram Sang <wsa@the-dreams.de>
> > Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> > Cc: linux-renesas-soc@vger.kernel.org
> > Cc: linux-mmc@vger.kernel.org
>
> Tested on M3-N and H3 ES2.0 with HS400 enabled eMMC:
>
> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Thanks, applied for v4.21.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-06 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-04 20:37 [PATCH V2] arm64: dts: renesas: Switch eMMC bus to 1V8 on Salvator-X and ULCB Marek Vasut
2018-11-06 10:57 ` Wolfram Sang
2018-11-06 12:14 ` Simon Horman
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).