Skip to content

Commit b1b8f45

Browse files
lategoodbyeanholt
authored andcommitted
ARM: dts: bcm2837: Add missing GPIOs of Expander
After commit a98d90e ("gpio: raspberrypi-exp: Driver for RPi3 GPIO expander via mailbox service") we are able to control the rest of the GPIOs of the RPi 3. So add all the missing parts (ACT LED, Wifi & BT control, HDMI detect) to the DT. Signed-off-by: Stefan Wahren <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Eric Anholt <[email protected]>
1 parent c4bb978 commit b1b8f45

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

arch/arm/boot/dts/bcm2837-rpi-3-b.dts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@
2020

2121
leds {
2222
act {
23-
gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
23+
gpios = <&expgpio 2 GPIO_ACTIVE_HIGH>;
2424
};
2525
};
26+
27+
wifi_pwrseq: wifi-pwrseq {
28+
compatible = "mmc-pwrseq-simple";
29+
reset-gpios = <&expgpio 1 GPIO_ACTIVE_HIGH>;
30+
};
2631
};
2732

2833
&firmware {
@@ -48,6 +53,10 @@
4853
status = "okay";
4954
};
5055

56+
&hdmi {
57+
hpd-gpios = <&expgpio 4 GPIO_ACTIVE_LOW>;
58+
};
59+
5160
/* uart0 communicates with the BT module */
5261
&uart0 {
5362
pinctrl-names = "default";
@@ -57,6 +66,7 @@
5766
bluetooth {
5867
compatible = "brcm,bcm43438-bt";
5968
max-speed = <2000000>;
69+
shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
6070
};
6171
};
6272

@@ -69,11 +79,19 @@
6979

7080
/* SDHCI is used to control the SDIO for wireless */
7181
&sdhci {
82+
#address-cells = <1>;
83+
#size-cells = <0>;
7284
pinctrl-names = "default";
7385
pinctrl-0 = <&emmc_gpio34>;
7486
status = "okay";
7587
bus-width = <4>;
7688
non-removable;
89+
mmc-pwrseq = <&wifi_pwrseq>;
90+
91+
brcmf: wifi@1 {
92+
reg = <1>;
93+
compatible = "brcm,bcm4329-fmac";
94+
};
7795
};
7896

7997
/* SDHOST is used to drive the SD card */

0 commit comments

Comments
 (0)