Skip to content

Commit

Permalink
ARM: dts: Declare RPi 4B SD card power regulator
Browse files Browse the repository at this point in the history
Later revisions of the Raspberry Pi 4B have a separate control over the
SD card power. Expose that control to Linux as a fixed regulator with
a GPIO enable.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  • Loading branch information
Phil Elwell committed Jan 29, 2020
1 parent b8f02a9 commit 59c66bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions arch/arm/boot/dts/bcm2711-rpi-4-b.dts
Expand Up @@ -122,6 +122,16 @@
states = <1800000 0x1
3300000 0x0>;
};

sd_vcc_reg: sd_vcc_reg {
compatible = "regulator-fixed";
regulator-name = "vcc-sd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
enable-active-high;
gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;
};
};

&sdhost {
Expand All @@ -132,6 +142,7 @@
status = "okay";
broken-cd;
vqmmc-supply = <&sd_io_1v8_reg>;
vmmc-supply = <&sd_vcc_reg>;
};

&genet {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/configs/bcm2711_defconfig
Expand Up @@ -696,7 +696,7 @@ CONFIG_MFD_ARIZONA_I2C=m
CONFIG_MFD_ARIZONA_SPI=m
CONFIG_MFD_WM5102=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=m
CONFIG_REGULATOR_FIXED_VOLTAGE=y
CONFIG_REGULATOR_ARIZONA_LDO1=m
CONFIG_REGULATOR_ARIZONA_MICSUPP=m
CONFIG_REGULATOR_GPIO=y
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/configs/bcm2711_defconfig
Expand Up @@ -723,7 +723,7 @@ CONFIG_MFD_ARIZONA_I2C=m
CONFIG_MFD_ARIZONA_SPI=m
CONFIG_MFD_WM5102=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=m
CONFIG_REGULATOR_FIXED_VOLTAGE=y
CONFIG_REGULATOR_ARIZONA_LDO1=m
CONFIG_REGULATOR_ARIZONA_MICSUPP=m
CONFIG_REGULATOR_GPIO=y
Expand Down

0 comments on commit 59c66bb

Please sign in to comment.