bcm27xx: update to latest patches from RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0404-ARM-dts-Declare-RPi-4B-SD-card-power-regulator.patch
1 From ade82688b687b3340ca5e7883646ad51291d49cd Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Tue, 30 Jul 2019 12:37:02 +0100
4 Subject: [PATCH] ARM: dts: Declare RPi 4B SD card power regulator
5
6 Later revisions of the Raspberry Pi 4B have a separate control over the
7 SD card power. Expose that control to Linux as a fixed regulator with
8 a GPIO enable.
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
11 ---
12 arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 11 +++++++++++
13 3 files changed, 13 insertions(+), 2 deletions(-)
14
15 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
16 +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
17 @@ -122,6 +122,16 @@
18 states = <1800000 0x1
19 3300000 0x0>;
20 };
21 +
22 + sd_vcc_reg: sd_vcc_reg {
23 + compatible = "regulator-fixed";
24 + regulator-name = "vcc-sd";
25 + regulator-min-microvolt = <3300000>;
26 + regulator-max-microvolt = <3300000>;
27 + regulator-boot-on;
28 + enable-active-high;
29 + gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;
30 + };
31 };
32
33 &sdhost {
34 @@ -132,6 +142,7 @@
35 status = "okay";
36 broken-cd;
37 vqmmc-supply = <&sd_io_1v8_reg>;
38 + vmmc-supply = <&sd_vcc_reg>;
39 };
40
41 &genet {