Skip to contentSkip to conversation

arm64: dts: renesas: ulcb: Switch eMMC bus to 1V8

PATCH Superseded Marek Vasut 3 participants 9 messages Oct 28, 2018 – Nov 5, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arm64: dts: renesas: ulcb: Switch eMMC bus to 1V8

The eMMC card has two supplies, VCC and VCCQ. The VCC supplies the NAND array and the VCCQ supplies the bus. On this particular board, 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.

Cc Geert Uytterhoeven <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/arm64/boot/dts/renesas/ulcb.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/ulcb.dtsi +1 -1
index 0ead552d7eae..f2fabead5031 100644
@@ -329,7 +329,7 @@
 	sdhi2_pins: sd2 {
 		groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
 		function = "sdhi2";
-		power-source = <3300>;
+		power-source = <1800>;
 	};
 
 	sdhi2_pins_uhs: sd2_uhs {
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 arm64: dts: renesas: salvator: Switch eMMC bus to 1V8

The eMMC card has two supplies, VCC and VCCQ. The VCC supplies the NAND array and the VCCQ supplies the bus. On this particular board, 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.

Cc Geert Uytterhoeven <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/salvator-common.dtsi +1 -1
index 7d3d866a0063..d9a309b28fcf 100644
@@ -602,7 +602,7 @@
 	sdhi2_pins: sd2 {
 		groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
 		function = "sdhi2";
-		power-source = <3300>;
+		power-source = <1800>;
 	};
 
 	sdhi2_pins_uhs: sd2_uhs {
Signature · 1 line
2.17.1
#2 lore raw

Re: [PATCH 2/2] arm64: dts: renesas: salvator: Switch eMMC bus to 1V8

Hi Marek,

Quoted 6 lines · Marek Vasut

The eMMC card has two supplies, VCC and VCCQ. The VCC supplies the NAND array and the VCCQ supplies the bus. On this particular board, 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.

Thanks for this!

I think Olof (and thus, Simon ;)) will be happy if those two patches are merged.

Other than that, I think we should remove sdhi2_pins_uhs then because it is the same as sdhi2_pins. And then use later "pinctrl-1 = <&sdhi2_pins>;". So, basically the same phandles for both pinctrls. We can re-add the second one when we need it.

Quoted 25 lines
Cc Geert Uytterhoeven <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/salvator-common.dtsi +1 -1
index 7d3d866a0063..d9a309b28fcf 100644
@@ -602,7 +602,7 @@
 	sdhi2_pins: sd2 {
 		groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
 		function = "sdhi2";
-		power-source = <3300>;
+		power-source = <1800>;
 	};
 
 	sdhi2_pins_uhs: sd2_uhs {
Signature · 1 line
2.17.1
#3 lore raw

Re: [PATCH 2/2] arm64: dts: renesas: salvator: Switch eMMC bus to 1V8

Quoted 1 line · Wolfram Sang

Hi Marek,

Hi,

Quoted 6 lines · Marek Vasut
Quoted 5 lines

The eMMC card has two supplies, VCC and VCCQ. The VCC supplies the NAND array and the VCCQ supplies the bus. On this particular board, 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.

Quoted 6 lines
Quoted 1 line

Thanks for this!

I think Olof (and thus, Simon ;)) will be happy if those two patches are merged.

Fine by me.

Quoted 4 lines

Other than that, I think we should remove sdhi2_pins_uhs then because it is the same as sdhi2_pins. And then use later "pinctrl-1 = <&sdhi2_pins>;". So, basically the same phandles for both pinctrls. We can re-add the second one when we need it.

I wonder if removing the sdhi2_pins_uhs is what we want to do, given that we might need to adjust TDSEL or pull resistor configurations for the HS200/HS400 modes in the future.

Thoughts ?

Quoted 25 lines
Quoted 25 lines
Cc Geert Uytterhoeven <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
---
 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/salvator-common.dtsi +1 -1
index 7d3d866a0063..d9a309b28fcf 100644
@@ -602,7 +602,7 @@
 	sdhi2_pins: sd2 {
 		groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
 		function = "sdhi2";
-		power-source = <3300>;
+		power-source = <1800>;
 	};
 
 	sdhi2_pins_uhs: sd2_uhs {
Signature · 1 line
2.17.1
Signature · 2 lines
Best regards,
Marek Vasut
#4 lore raw

Re: [PATCH 2/2] arm64: dts: renesas: salvator: Switch eMMC bus to 1V8

Quoted 7 lines
Quoted 3 lines

<&sdhi2_pins>;". So, basically the same phandles for both pinctrls. We can re-add the second one when we need it.

I wonder if removing the sdhi2_pins_uhs is what we want to do, given that we might need to adjust TDSEL or pull resistor configurations for the HS200/HS400 modes in the future.

Well, quoting myself "We can re-add the second one when we need it". It is possible but a tad unlikely. That's my take on it but it is ultimately up to Simon, of course.

#5 lore raw

Re: [PATCH 2/2] arm64: dts: renesas: salvator: Switch eMMC bus to 1V8

Quoted 11 lines · Wolfram Sang
Quoted 7 lines
Quoted 3 lines

<&sdhi2_pins>;". So, basically the same phandles for both pinctrls. We can re-add the second one when we need it.

I wonder if removing the sdhi2_pins_uhs is what we want to do, given that we might need to adjust TDSEL or pull resistor configurations for the HS200/HS400 modes in the future.

Well, quoting myself "We can re-add the second one when we need it". It is possible but a tad unlikely. That's my take on it but it is ultimately up to Simon, of course.

I agree we can add stuff later if we need it.
But can we discuss this in the context of describing the hardware?

#6 lore raw

Re: [PATCH 2/2] arm64: dts: renesas: salvator: Switch eMMC bus to 1V8

Quoted 9 lines · Simon Horman
Quoted 8 lines · Wolfram Sang
Quoted 7 lines
Quoted 3 lines

<&sdhi2_pins>;". So, basically the same phandles for both pinctrls. We can re-add the second one when we need it.

I wonder if removing the sdhi2_pins_uhs is what we want to do, given that we might need to adjust TDSEL or pull resistor configurations for the HS200/HS400 modes in the future.

Quoted 6 lines
Quoted 3 lines

Well, quoting myself "We can re-add the second one when we need it". It is possible but a tad unlikely. That's my take on it but it is ultimately up to Simon, of course.

I agree we can add stuff later if we need it.
But can we discuss this in the context of describing the hardware?

I'm not sure I understand this remark. Anyway, I'll be spinning a V2 of the patchset, which will be a single patch.

Signature · 2 lines
Best regards,
Marek Vasut
#7 lore raw

Re: [PATCH 2/2] arm64: dts: renesas: salvator: Switch eMMC bus to 1V8

In reply to Simon Horman
Quoted 2 lines

But can we discuss this in the context of describing the hardware?

The SDHI node needs two kinds of pinmux settings, one for normal speeds and one for highspeeds. They might differ in supplied voltage, i.e. 3v3 and 1v8. This eMMC always works with 1v8, so both settings needed by the SDHI node are the same currently. That might change if we add new features to pinmux nodes like TDSEL/capacity support. My guess is that this is not so likely to happen so I suggested using just one node.

But it has a taste of bike-shedding to it :)

#8 lore raw

Re: [PATCH 2/2] arm64: dts: renesas: salvator: Switch eMMC bus to 1V8

Quoted 11 lines · Wolfram Sang
Quoted 2 lines

But can we discuss this in the context of describing the hardware?

The SDHI node needs two kinds of pinmux settings, one for normal speeds and one for highspeeds. They might differ in supplied voltage, i.e. 3v3 and 1v8. This eMMC always works with 1v8, so both settings needed by the SDHI node are the same currently. That might change if we add new features to pinmux nodes like TDSEL/capacity support. My guess is that this is not so likely to happen so I suggested using just one node.

But it has a taste of bike-shedding to it :)

V2 is out, including the deduplication.

Signature · 2 lines
Best regards,
Marek Vasut