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

ARM: dts: bcm2711: Add vmmc regulator in emmc2

The SD card power can be controlled trough a pin routed into the board's
external GPIO expander. Turn that into a regulator and provide it to
emmc2.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20200306174413.20634-12-nsaenzjulienne@suse.de

+11
+11
arch/arm/boot/dts/bcm2711-rpi-4-b.dts
··· 53 53 3300000 0x0>; 54 54 status = "okay"; 55 55 }; 56 + 57 + sd_vcc_reg: sd_vcc_reg { 58 + compatible = "regulator-fixed"; 59 + regulator-name = "vcc-sd"; 60 + regulator-min-microvolt = <3300000>; 61 + regulator-max-microvolt = <3300000>; 62 + regulator-boot-on; 63 + enable-active-high; 64 + gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>; 65 + }; 56 66 }; 57 67 58 68 &firmware { ··· 181 171 /* EMMC2 is used to drive the SD card */ 182 172 &emmc2 { 183 173 vqmmc-supply = <&sd_io_1v8_reg>; 174 + vmmc-supply = <&sd_vcc_reg>; 184 175 broken-cd; 185 176 status = "okay"; 186 177 };