Skip to content

Commit 8f5ca7f

Browse files
committed
dts: bcm2712: cm5: Add antenna controls
Use the same ant1/ant2/noant controls as CM4. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 14b38bd commit 8f5ca7f

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,22 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
670670
output-high;
671671
line-name = "RP1 RUN pin";
672672
};
673+
674+
ant1: ant1-hog {
675+
gpio-hog;
676+
gpios = <5 GPIO_ACTIVE_HIGH>;
677+
/* internal antenna enabled */
678+
output-high;
679+
line-name = "ant1";
680+
};
681+
682+
ant2: ant2-hog {
683+
gpio-hog;
684+
gpios = <6 GPIO_ACTIVE_HIGH>;
685+
/* external antenna disabled */
686+
output-low;
687+
line-name = "ant2";
688+
};
673689
};
674690

675691
&rp1_gpio {
@@ -840,6 +856,19 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
840856
drm_fb2_rp1_dpi = <&aliases>, "drm-fb2=",&dpi;
841857
drm_fb2_vc4 = <&aliases>, "drm-fb2=",&vc4;
842858

859+
ant1 = <&ant1>,"output-high?=on",
860+
<&ant1>, "output-low?=off",
861+
<&ant2>, "output-high?=off",
862+
<&ant2>, "output-low?=on";
863+
ant2 = <&ant1>,"output-high?=off",
864+
<&ant1>, "output-low?=on",
865+
<&ant2>, "output-high?=on",
866+
<&ant2>, "output-low?=off";
867+
noant = <&ant1>,"output-high?=off",
868+
<&ant1>, "output-low?=on",
869+
<&ant2>, "output-high?=off",
870+
<&ant2>, "output-low?=on";
871+
843872
fan_temp0 = <&cpu_tepid>,"temperature:0";
844873
fan_temp1 = <&cpu_warm>,"temperature:0";
845874
fan_temp2 = <&cpu_hot>,"temperature:0";

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ Name: <The base DTB>
130130
Info: Configures the base Raspberry Pi hardware
131131
Load: <loaded automatically>
132132
Params:
133-
ant1 Select antenna 1 (default). CM4 only.
133+
ant1 Select antenna 1 (default). CM4/5 only.
134134

135-
ant2 Select antenna 2. CM4 only.
135+
ant2 Select antenna 2. CM4/5 only.
136136

137-
noant Disable both antennas. CM4 only.
137+
noant Disable both antennas. CM4/5 only.
138138

139139
audio Set to "on" to enable the onboard ALSA audio
140140
interface (default "off")

0 commit comments

Comments
 (0)