Skip to content

Commit 4b60603

Browse files
pelwellpopcornmix
authored andcommitted
dts: Add noanthogs parameter to CM4 and CM5
By default, the antenna selection on CM4 and CM5 is fixed at boot time, with the dtparams ant1, ant2 and noant selecting which should be enabled. Add a new dtparam - noanthogs - which leaves the GPIOs free to be controlled at runtime by the OS. N.B. Using this parameter without suitable OS support will leave both antennae disabled, resulting in attenuated WiFi and Bluetooth signals. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 029b4b7 commit 4b60603

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,8 @@ i2c_csi_dsi0: &i2c0 {
493493
<&ant1>, "output-low?=on",
494494
<&ant2>, "output-high?=off",
495495
<&ant2>, "output-low?=on";
496+
noanthogs = <&ant1>,"status=disabled",
497+
<&ant2>, "status=disabled";
496498

497499
pcie_tperst_clk_ms = <&pcie0>,"brcm,tperst-clk-ms:0";
498500
};

arch/arm/boot/dts/overlays/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ Params:
153153

154154
noant Disable both antennas. CM4/5 only.
155155

156+
noanthogs Disable the GPIO hogs on the antenna controls
157+
so they can be controlled at runtime. Note that
158+
using this parameter without suitable OS
159+
support will result in attenuated WiFi and
160+
Bluetooth signals. CM4/5 only.
161+
156162
audio Set to "on" to enable the onboard ALSA audio
157163
interface (default "off")
158164

arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,5 +708,7 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
708708
<&ant1>, "output-low?=on",
709709
<&ant2>, "output-high?=off",
710710
<&ant2>, "output-low?=on";
711+
noanthogs = <&ant1>,"status=disabled",
712+
<&ant2>, "status=disabled";
711713
};
712714
};

0 commit comments

Comments
 (0)