Skip to contentSkip to conversation

arm64: dts: allwinner: h6: add eMMC voltage property for Beelink GS1

PATCH Superseded Clément Péron 2 participants 3 messages Sep 28, 2020 – Oct 2, 2020

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: allwinner: h6: add eMMC voltage property for Beelink GS1

VQMMC supply is connected to BLDO2 which provides 1.8V.

Let's reflect this in the device-tree.

Fixes 089bee8dd119 ("arm64: dts: allwinner: h6: Introduce Beelink GS1 board")
---
 arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +1 -0
index 049c21718846..3f20d2c9bbbb 100644
@@ -145,6 +145,7 @@ &mmc2 {
 	vqmmc-supply = <&reg_bldo2>;
 	non-removable;
 	cap-mmc-hw-reset;
+	mmc-hs200-1_8v;
 	bus-width = <8>;
 	status = "okay";
 };
Signature · 1 line
2.25.1
#1 lore raw

Hi,

Quoted 3 lines · Clément Péron

VQMMC supply is connected to BLDO2 which provides 1.8V.

Let's reflect this in the device-tree.

This commit log doesn't really explain what is going on though?

arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts &mmc2 { · line 145

Quoted 12 lines
Fixes 089bee8dd119 ("arm64: dts: allwinner: h6: Introduce Beelink GS1 board")
---
 arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +0 -0
index 049c21718846..3f20d2c9bbbb 100644
@@ -145,6 +145,7 @@ &mmc2 {
 	vqmmc-supply = <&reg_bldo2>;

The Device Tree already expresses that the vqmmc supply is connected to BLDO2 which provides 1.8V here (together with the reg_bldo2 node).

arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts &mmc2 { · line 148

Quoted 3 lines
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +1 -0
 	non-removable;
 	cap-mmc-hw-reset;
+	mmc-hs200-1_8v;

Whereas this indicates that the eMMC supports the HS200 MMC mode at 1.8V

Maxime

#2 lore raw

Hi Maxime,

Quoted 26 lines · Maxime Ripard

Hi,

Quoted 3 lines · Clément Péron

VQMMC supply is connected to BLDO2 which provides 1.8V.

Let's reflect this in the device-tree.

This commit log doesn't really explain what is going on though?

arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts &mmc2 { · line 145

Quoted 12 lines
Fixes 089bee8dd119 ("arm64: dts: allwinner: h6: Introduce Beelink GS1 board")
---
 arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +0 -0
index 049c21718846..3f20d2c9bbbb 100644
@@ -145,6 +145,7 @@ &mmc2 {
      vqmmc-supply = <&reg_bldo2>;

The Device Tree already expresses that the vqmmc supply is connected to BLDO2 which provides 1.8V here (together with the reg_bldo2 node).

Quoted 5 lines

arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts &mmc2 { · line 148

Quoted 3 lines
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +1 -0
      non-removable;
      cap-mmc-hw-reset;
+     mmc-hs200-1_8v;

Whereas this indicates that the eMMC supports the HS200 MMC mode at 1.8V

What about a comment like this:

Sunxi mmc driver can't distinguish at runtime what's the I/O voltage for HS200 mode.
Add a property in the device-tree to notify mmc core about this configuration.

Regards,
Clement

Quoted 2 lines

Maxime