Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerBeam 5ac-620 support #840

Merged
merged 1 commit into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions SUPPORTED_DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ PicoStation M2 || 2 | ath79 | tiny (2) | ubnt_picostation-m | 32MB | unknown | s
PowerBeam AC 5 Gen2 || 5 | ath79 | generic | ubnt_powerbeam-5ac-gen2 | 128MB | unknown | released
PowerBeam AC 5 400 || 5 | ath79 | generic | ubnt_powerbeam-5ac-400 | 128MB | unknown | nightly
PowerBeam AC 5 500 | PBE-5AC-500 <br> PBE-5AC-500-US | 5 | ath79 | generic | ubnt_powerbeam-5ac-500 | 128MB | stable | released
PowerBeam AC 5 620 || 5 | ath79 | generic | ubnt_powerbeam-5ac-620 | 128MB | unknown | nightly
PowerBeam-M2-400 || 2 | ath79 | generic | ubnt_powerbeam-m2-xw | 64MB | stable | released
PowerBeam-M5-300 || 5 | ath79 | generic | ubnt_powerbeam-m5-300 | 64MB | stable | released
PowerBeam-M5-400 || 5 | ath79 | generic | ubnt_powerbeam-m5-xw | 64MB | stable | released
Expand Down
1 change: 1 addition & 0 deletions configs/ath79-generic.config
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_powerbeam-m2-xw=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_powerbeam-m5-xw=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_powerbeam-5ac-400=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_powerbeam-5ac-500=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_powerbeam-5ac-620=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_powerbeam-5ac-gen2=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_powerbridge-m=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_rocket-5ac-lite=y
Expand Down
5 changes: 5 additions & 0 deletions files/etc/radios.json
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@
"maxpower" : "22",
"pwroffset" : "4"
},
"0xe5f5": {
"name" : "Ubiquiti PowerBeam 5AC 620",
"maxpower" : "23",
"pwroffset" : "1"
},
"0xe6e5" : {
"name" : "Ubiquiti PowerBeam M5 400-ISO",
"maxpower" : "22",
Expand Down
43 changes: 38 additions & 5 deletions patches/749-ubiquiti-extra-support.patch
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,26 @@
ubnt,powerbeam-5ac-500|\
--- a/target/linux/ath79/image/generic-ubnt.mk
+++ b/target/linux/ath79/image/generic-ubnt.mk
@@ -165,6 +165,14 @@
@@ -165,6 +165,23 @@
endef
TARGET_DEVICES += ubnt_powerbeam-5ac-gen2

+define Device/ubnt_powerbeam-5ac-400
+ $(Device/ubnt-wa)
+ DEVICE_MODEL := PowerBeam 5AC 400
+ DEVICE_MODEL := PowerBeam 5AC
+ DEVICE_VARIANT := 400
+ DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
+endef
+TARGET_DEVICES += ubnt_powerbeam-5ac-400
+
+define Device/ubnt_powerbeam-5ac-620
+ $(Device/ubnt-xc)
+ SOC := qca9558
+ DEVICE_MODEL := PowerBeam 5AC
+ DEVICE_VARIANT := 620
+ DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
+endef
+TARGET_DEVICES += ubnt_powerbeam-5ac-620
+
define Device/ubnt_powerbeam-m2-xw
$(Device/ubnt-xw)
Expand Down Expand Up @@ -149,23 +158,36 @@
+ };
+ };
+};
--- /dev/null
+++ b/target/linux/ath79/dts/qca9558_ubnt_powerbeam-5ac-620.dts
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+#include "qca9558_ubnt_powerbeam-5ac-500.dts"
+
+/ {
+ compatible = "ubnt,powerbeam-5ac-620", "ubnt,xc", "qca,qca9558";
+ model = "Ubiquiti PowerBeam 5AC 620";
+};
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -101,6 +101,7 @@
@@ -101,6 +101,8 @@
ubnt,nanostation-ac-loco|\
ubnt,nanostation-loco-m-xw|\
ubnt,powerbeam-5ac-500|\
+ ubnt,powerbeam-5ac-400|\
+ ubnt,powerbeam-5ac-620|\
ubnt,powerbeam-5ac-gen2|\
ubnt,powerbeam-m2-xw|\
ubnt,powerbeam-m5-xw|\
--- a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -47,6 +47,7 @@
@@ -47,6 +47,8 @@
ubnt,nanobeam-ac-xc|\
ubnt,nanostation-ac|\
ubnt,nanostation-ac-loco|\
+ ubnt,powerbeam-5ac-400|\
+ ubnt,powerbeam-5ac-620|\
ubnt,powerbeam-5ac-500|\
ubnt,powerbeam-5ac-gen2|\
ubnt,rocket-5ac-lite|\
Expand Down Expand Up @@ -311,11 +333,12 @@
ubnt,nanobeam-m5-1[69]|\
ubnt,nanostation-ac-loco|\
ubnt,nanostation-loco-m-xw|\
@@ -762,6 +763,7 @@
@@ -762,6 +763,8 @@
ubnt,litebeam-ac-gen2|\
ubnt,nanobeam-ac-gen2|\
ubnt,nanobeam-ac-xc|\
+ ubnt,nanobeam-ac-gen2-xc|\
+ ubnt,powerbeam-5ac-620|\
ubnt,powerbeam-5ac-500|\
ubnt,powerbeam-5ac-gen2)
label_mac=$(mtd_get_mac_binary art 0x5006)
Expand All @@ -329,3 +352,13 @@
ubnt,nanobeam-ac-xc|\
ubnt,nanostation-ac|\
ubnt,nanostation-ac-loco|\
--- a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -49,6 +49,7 @@
ubnt,nanostation-ac-loco|\
ubnt,powerbeam-5ac-400|\
ubnt,powerbeam-5ac-500|\
+ ubnt,powerbeam-5ac-620|\
ubnt,powerbeam-5ac-gen2|\
ubnt,rocket-5ac-lite|\
ubnt,unifiac-pro|\