aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Ziegler <dev@andreas-ziegler.de>2019-10-06 19:48:34 +0200
committerDavid Bauer <mail@david-bauer.net>2019-10-15 18:13:54 +0200
commit07c1ddf522dbe6085af664cf03a41f636a70b99c (patch)
tree34f0d3956634e60cd0e9466d59a8d16258f3c17f
parent089b4f16aa3bec4b2231ca53cd4a3a0f4f6929a2 (diff)
downloadupstream-07c1ddf522dbe6085af664cf03a41f636a70b99c.tar.gz
upstream-07c1ddf522dbe6085af664cf03a41f636a70b99c.tar.bz2
upstream-07c1ddf522dbe6085af664cf03a41f636a70b99c.zip
ath79: add support for UniFi AC-LR
The Unifi AC-LR has identical hardware to the Unifi AC-Lite. The antenna setup is different according to the vendor, which explains the thicker enclosure. Therefore, it is helpful to know the exact device variant, instead of having "Ubiquiti UniFi-AC-LITE/LR". Signed-off-by: Andreas Ziegler <dev@andreas-ziegler.de> [fix legacy name in commit message; add old boardname to SUPPORTED_DEVICES] Signed-off-by: David Bauer <mail@david-bauer.net>
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata1
-rw-r--r--target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dts2
-rw-r--r--target/linux/ath79/dts/qca9563_ubnt_unifiac-lr.dts9
-rw-r--r--target/linux/ath79/image/generic-ubnt.mk7
5 files changed, 19 insertions, 1 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network
index 0de17adb9d..fe74bddbf1 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -50,6 +50,7 @@ ath79_setup_interfaces()
ubnt,nanostation-ac-loco|\
ubnt,rocket-m|\
ubnt,unifiac-lite|\
+ ubnt,unifiac-lr|\
ubnt,unifiac-mesh|\
ubnt,unifi|\
wd,mynet-wifi-rangeextender|\
diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index ebc1fc24d0..9d6b643a8e 100644
--- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -102,6 +102,7 @@ case "$FIRMWARE" in
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary info 0x8) +1)
;;
ubnt,unifiac-lite|\
+ ubnt,unifiac-lr|\
ubnt,unifiac-mesh|\
ubnt,unifiac-mesh-pro|\
ubnt,lap-120|\
diff --git a/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dts b/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dts
index a3ae7089d5..7b9fa0701b 100644
--- a/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dts
+++ b/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dts
@@ -5,5 +5,5 @@
/ {
compatible = "ubnt,unifiac-lite", "qca,qca9563";
- model = "Ubiquiti UniFi-AC-LITE/LR";
+ model = "Ubiquiti UniFi-AC-LITE";
};
diff --git a/target/linux/ath79/dts/qca9563_ubnt_unifiac-lr.dts b/target/linux/ath79/dts/qca9563_ubnt_unifiac-lr.dts
new file mode 100644
index 0000000000..a1e542ada6
--- /dev/null
+++ b/target/linux/ath79/dts/qca9563_ubnt_unifiac-lr.dts
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "qca9563_ubnt_unifiac-lite.dtsi"
+
+/ {
+ compatible = "ubnt,unifiac-lr", "qca,qca9563";
+ model = "Ubiquiti UniFi-AC-LR";
+};
diff --git a/target/linux/ath79/image/generic-ubnt.mk b/target/linux/ath79/image/generic-ubnt.mk
index 6ae766e293..984b18ccae 100644
--- a/target/linux/ath79/image/generic-ubnt.mk
+++ b/target/linux/ath79/image/generic-ubnt.mk
@@ -225,6 +225,13 @@ define Device/ubnt_unifiac-lite
endef
TARGET_DEVICES += ubnt_unifiac-lite
+define Device/ubnt_unifiac-lr
+ $(Device/ubnt_unifiac)
+ DEVICE_MODEL := UniFi AC-LR
+ SUPPORTED_DEVICES += unifiac-lite ubnt,unifiac-lite
+endef
+TARGET_DEVICES += ubnt_unifiac-lr
+
define Device/ubnt_unifiac-mesh
$(Device/ubnt_unifiac)
DEVICE_MODEL := UniFi AC-Mesh