Skip to content

Commit

Permalink
dts: bcm2712: cm5: Force the ANT pins to GPIOs
Browse files Browse the repository at this point in the history
The magic required to make requesting a GPIO automatically change the
pinmux settings is currently absent. Work around that by explicitly
requesting that the ANT pins be in GPIO mode.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Apr 19, 2024
1 parent 8f5ca7f commit 0c341f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/arm/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ dpi_16bit_gpio2: &rp1_dpi_16bit_gpio2 { };
};

&pinctrl_aon {
ant_pins: ant_pins {
function = "gpio";
pins = "aon_gpio5", "aon_gpio6";
};

/* Slight hack - only one PWM pin (status LED) is usable */
Expand Down Expand Up @@ -461,7 +464,7 @@ dpi_16bit_gpio2: &rp1_dpi_16bit_gpio2 { };

/* SDIO2 drives the WLAN interface */
&sdio2 {
pinctrl-0 = <&sdio2_30_pins>;
pinctrl-0 = <&sdio2_30_pins>, <&ant_pins>;
pinctrl-names = "default";
bus-width = <4>;
vmmc-supply = <&wl_on_reg>;
Expand Down

0 comments on commit 0c341f4

Please sign in to comment.