bcm27xx: add support for Raspberry Pi 4 Model A and Zero 3 W

Both boards are based on the BCM2711 SoC. Their device trees were
added with the recent rpi-6.18.y patch update. Build them into the
32-bit (bcm2709) and 64-bit (bcm2711) images and add their
compatibles to SUPPORTED_DEVICES.

Neither board has Ethernet, so set wlan0 as the default LAN
interface.

On the Zero 3 W, Wi-Fi does not work yet. Its chip (CYW43436) is a
BCM43430 rev 2 or later, for which brcmfmac requests
brcmfmac43430b0-sdio, as on Zero 2 W boards with the same chip.
Raspberry Pi ships this firmware only in its own firmware package,
not in linux-firmware, so it is not available in OpenWrt yet. The
wlan0 default is already in place for when the firmware is added.

Signed-off-by: Joshua Covington <joshuacov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26804
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Joshua Covington authored and Robert Marko committed 2026-11-26 10:51:40 +01:00
1 parent a8b41710e3
commit 1f25fbcad0
2 files changed
+20 -11

No files matched your search

@@ -26,7 +26,9 @@ raspberrypi,model-b-rev2)
ucidef_set_interface_lan "eth0"
;;
raspberrypi,4-model-a |\
raspberrypi,model-zero-2 |\
raspberrypi,model-zero-3-w |\
raspberrypi,model-zero-w)
ucidef_set_interface_lan "wlan0"
;;
+18 -11
View File
@@ -110,29 +110,32 @@ define Device/rpi-2
DEVICE_ALT0_MODEL := 3A+/3B/3B+/CM3/Zero2/Zero2W/CM0
DEVICE_ALT0_VARIANT := (32bit)
DEVICE_ALT1_VENDOR := Raspberry Pi
DEVICE_ALT1_MODEL := 4B/400/CM4/CM4S
DEVICE_ALT1_MODEL := 4A/4B/400/CM4/CM4S/Zero3W
DEVICE_ALT1_VARIANT := (32bit)
DEVICE_DTS := \
broadcom/bcm2709-rpi-2-b broadcom/bcm2710-rpi-2-b \
broadcom/bcm2710-rpi-3-b broadcom/bcm2710-rpi-3-b-plus \
broadcom/bcm2710-rpi-cm3 broadcom/bcm2711-rpi-4-b \
broadcom/bcm2711-rpi-400 broadcom/bcm2711-rpi-cm4-io \
broadcom/bcm2711-rpi-cm4 broadcom/bcm2711-rpi-cm4s \
broadcom/bcm2710-rpi-cm3 broadcom/bcm2711-rpi-4-a \
broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400 \
broadcom/bcm2711-rpi-cm4-io broadcom/bcm2711-rpi-cm4 \
broadcom/bcm2711-rpi-cm4s broadcom/bcm2711-rpi-zero-3-w \
broadcom/bcm2710-rpi-zero-2 broadcom/bcm2710-rpi-zero-2-w \
broadcom/bcm2710-rpi-cm0
SUPPORTED_DEVICES := \
rpi-2-b \
rpi-3-a-plus \
rpi-3-b rpi-3-b-plus \
rpi-4-b rpi-400 \
rpi-4-a rpi-4-b rpi-400 \
rpi-cm rpi-cm3 \
rpi-zero-2 rpi-zero-2-w rpi-cm0 \
rpi-zero-2 rpi-zero-2-w rpi-zero-3-w rpi-cm0 \
raspberrypi,2-model-b raspberrypi,2-model-b-rev2 \
raspberrypi,3-model-a-plus raspberrypi,3-model-b \
raspberrypi,3-model-b-plus raspberrypi,3-compute-module \
raspberrypi,compute-module-3 raspberrypi,400 \
raspberrypi,4-compute-module raspberrypi,4-compute-module-s raspberrypi,4-model-b \
raspberrypi,model-zero-2 raspberrypi,model-zero-2-w raspberrypi,0-compute-module
raspberrypi,4-compute-module raspberrypi,4-compute-module-s \
raspberrypi,4-model-a raspberrypi,4-model-b \
raspberrypi,model-zero-2 raspberrypi,model-zero-2-w \
raspberrypi,model-zero-3-w raspberrypi,0-compute-module
DEVICE_PACKAGES := \
$(WIFI_43430_FW) \
$(WIFI_43455_FW) \
@@ -175,20 +178,24 @@ ifeq ($(SUBTARGET),bcm2710)
endif
define Device/rpi-4
DEVICE_MODEL := 4B/400/CM4/CM4S
DEVICE_MODEL := 4A/4B/400/CM4/CM4S/Zero3W
DEVICE_VARIANT := (64bit)
KERNEL_IMG := kernel8.img
DEVICE_DTS := \
broadcom/bcm2711-rpi-4-a \
broadcom/bcm2711-rpi-4-b \
broadcom/bcm2711-rpi-400 \
broadcom/bcm2711-rpi-cm4-io \
broadcom/bcm2711-rpi-cm4 \
broadcom/bcm2711-rpi-cm4s
broadcom/bcm2711-rpi-cm4s \
broadcom/bcm2711-rpi-zero-3-w
SUPPORTED_DEVICES := \
raspberrypi,400 \
raspberrypi,4-compute-module \
raspberrypi,4-compute-module-s \
raspberrypi,4-model-b
raspberrypi,4-model-a \
raspberrypi,4-model-b \
raspberrypi,model-zero-3-w
DEVICE_PACKAGES := \
$(WIFI_43455_FW) \
$(BRCM_WIFI_DRIVER) \