lede/target/linux/bcm27xx/patches-6.12/950-0717-dts-Add-noanthogs-parameter-to-CM4-and-CM5.patch
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= d81c03f05e bcm27xx: add 6.12 patches from RPi repo
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.12.y
With the following command:
git format-patch -N v6.12.27..HEAD
(HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e)

Exceptions:
- (def)configs patches
- github workflows patches
- applied & reverted patches
- readme patches
- wireless patches

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-06-20 17:01:06 +08:00

57 lines
2.2 KiB
Diff

From 20ee52558693a7a5c6e23a03101a5963af32c4b0 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Fri, 20 Dec 2024 15:08:52 +0000
Subject: [PATCH] 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>
---
arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dts | 2 ++
arch/arm/boot/dts/overlays/README | 6 ++++++
arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi | 2 ++
3 files changed, 10 insertions(+)
--- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dts
+++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dts
@@ -493,6 +493,8 @@ i2c_csi_dsi0: &i2c0 {
<&ant1>, "output-low?=on",
<&ant2>, "output-high?=off",
<&ant2>, "output-low?=on";
+ noanthogs = <&ant1>,"status=disabled",
+ <&ant2>, "status=disabled";
pcie_tperst_clk_ms = <&pcie0>,"brcm,tperst-clk-ms:0";
};
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -153,6 +153,12 @@ Params:
noant Disable both antennas. CM4/5 only.
+ noanthogs Disable the GPIO hogs on the antenna controls
+ so they can be controlled at runtime. Note that
+ using this parameter without suitable OS
+ support will result in attenuated WiFi and
+ Bluetooth signals. CM4/5 only.
+
audio Set to "on" to enable the onboard ALSA audio
interface (default "off")
--- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi
+++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi
@@ -708,5 +708,7 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
<&ant1>, "output-low?=on",
<&ant2>, "output-high?=off",
<&ant2>, "output-low?=on";
+ noanthogs = <&ant1>,"status=disabled",
+ <&ant2>, "status=disabled";
};
};