Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: marvell: armada-3720-db: Add vmmc regulator for SD slot

By adding this regulator, a proper reset is done during boot. Without
this, the UHS failed to be detected after a warm reboot when the SD card
remained in the slot, then it fallback to an HS.

Note that the vmcc is supported by the xenon driver only with the
following fix: "mmc: sdhci-xenon: add set_power callback".

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

+11
+11
arch/arm64/boot/dts/marvell/armada-3720-db.dts
··· 94 94 3300000 0x0>; 95 95 enable-active-high; 96 96 }; 97 + 98 + vcc_sd_reg2: regulator-vmcc { 99 + compatible = "regulator-fixed"; 100 + regulator-name = "vcc_sd2"; 101 + regulator-min-microvolt = <3300000>; 102 + regulator-max-microvolt = <3300000>; 103 + regulator-boot-on; 104 + enable-active-high; 105 + gpio = <&gpio_exp 4 GPIO_ACTIVE_HIGH>; 106 + }; 97 107 }; 98 108 99 109 /* Gigabit module on CON19(V2.0)/CON21(V1.4) */ ··· 189 179 bus-width = <4>; 190 180 marvell,pad-type = "sd"; 191 181 vqmmc-supply = <&vcc_sd_reg1>; 182 + vmmc-supply = <&vcc_sd_reg2>; 192 183 status = "okay"; 193 184 }; 194 185