Skip to content

Commit

Permalink
dts: bcm2712: cm5: Add antenna controls
Browse files Browse the repository at this point in the history
Use the same ant1/ant2/noant controls as CM4.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed Apr 19, 2024
1 parent 14b38bd commit 8f5ca7f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions arch/arm/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,22 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
output-high;
line-name = "RP1 RUN pin";
};

ant1: ant1-hog {
gpio-hog;
gpios = <5 GPIO_ACTIVE_HIGH>;
/* internal antenna enabled */
output-high;
line-name = "ant1";
};

ant2: ant2-hog {
gpio-hog;
gpios = <6 GPIO_ACTIVE_HIGH>;
/* external antenna disabled */
output-low;
line-name = "ant2";
};
};

&rp1_gpio {
Expand Down Expand Up @@ -840,6 +856,19 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
drm_fb2_rp1_dpi = <&aliases>, "drm-fb2=",&dpi;
drm_fb2_vc4 = <&aliases>, "drm-fb2=",&vc4;

ant1 = <&ant1>,"output-high?=on",
<&ant1>, "output-low?=off",
<&ant2>, "output-high?=off",
<&ant2>, "output-low?=on";
ant2 = <&ant1>,"output-high?=off",
<&ant1>, "output-low?=on",
<&ant2>, "output-high?=on",
<&ant2>, "output-low?=off";
noant = <&ant1>,"output-high?=off",
<&ant1>, "output-low?=on",
<&ant2>, "output-high?=off",
<&ant2>, "output-low?=on";

fan_temp0 = <&cpu_tepid>,"temperature:0";
fan_temp1 = <&cpu_warm>,"temperature:0";
fan_temp2 = <&cpu_hot>,"temperature:0";
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ Name: <The base DTB>
Info: Configures the base Raspberry Pi hardware
Load: <loaded automatically>
Params:
ant1 Select antenna 1 (default). CM4 only.
ant1 Select antenna 1 (default). CM4/5 only.

ant2 Select antenna 2. CM4 only.
ant2 Select antenna 2. CM4/5 only.

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

audio Set to "on" to enable the onboard ALSA audio
interface (default "off")
Expand Down

0 comments on commit 8f5ca7f

Please sign in to comment.