]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: marvell: armada-3720-db: Add vmmc regulator for SD slot
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Tue, 29 Aug 2017 13:57:41 +0000 (15:57 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Tue, 19 Sep 2017 14:08:50 +0000 (16:08 +0200)
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>
arch/arm64/boot/dts/marvell/armada-3720-db.dts

index 9df0f06ce6070a4c17c724d52bb956504dc8e2b7..e6e0f38ce6e15913baf8d184ad2077a7812ccbbc 100644 (file)
                          3300000 0x0>;
                enable-active-high;
        };
+
+       vcc_sd_reg2: regulator-vmcc {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc_sd2";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-boot-on;
+               enable-active-high;
+               gpio = <&gpio_exp 4 GPIO_ACTIVE_HIGH>;
+       };
 };
 
 /* Gigabit module on CON19(V2.0)/CON21(V1.4) */
        bus-width = <4>;
        marvell,pad-type = "sd";
        vqmmc-supply = <&vcc_sd_reg1>;
+       vmmc-supply = <&vcc_sd_reg2>;
        status = "okay";
 };