ar71xx: add support for UniFi-AC-Mesh
authorLudwig Thomeczek <ledesrc@wxorx.net>
Wed, 29 Mar 2017 11:38:25 +0000 (13:38 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Mon, 15 May 2017 20:43:33 +0000 (22:43 +0200)
This adds the build option for the new UniFi AC Mesh.
It is a direct hardware copy from the AC Lite.

- SoC: QCA9563-AL3A (775Mhz)
- RAM: 128MiB
- Flash: 16MiB - dual firmware partitions!
- LAN: 1 1000M - POE
- Wireless:
        2.4G: QCA9563
          5G: UniFi Chip, QCA988X compatible

Thanks to Frank Dietz for testing.

Signed-off-by: Ludwig Thomeczek <ledesrc@wxorx.net>
[wrapped too long lines in mach-ubnt-unifiac.c]
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c
target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
target/linux/ar71xx/image/ubnt.mk

index 547e0e408e239d218128d9ce312f3b97f7cb94b7..92ee516235c5d0aa1a7035415a58795294edf092 100755 (executable)
@@ -1157,7 +1157,7 @@ ar71xx_board_detect() {
        *"UniFi AP Pro")
                name="uap-pro"
                ;;
-       *"UniFi-AC-LITE")
+       *"UniFi-AC-LITE/MESH")
                name="unifiac-lite"
                ;;
        *"UniFi-AC-PRO")
index 183e91a41d6763263c3e8a3b0c04cb63b912a1d9..7c3aa77a3e476c2612769eb0bbebc77d0cafbfe6 100644 (file)
@@ -1774,7 +1774,7 @@ config ATH79_MACH_UBNT
        select ATH79_DEV_USB
 
 config ATH79_MACH_UBNT_UNIFIAC
-       bool "Ubiquiti UniFi AC (LITE/LR/PRO) support"
+       bool "Ubiquiti UniFi AC (LITE/LR/MESH/PRO) support"
        select SOC_QCA956X
        select ATH79_DEV_AP9X_PCI if PCI
        select ATH79_DEV_ETH
index 9194bc1c0799d83fca3f6fe76b2602d72e5f4ef8..38195a466b841732aa5d2e4f775498f45c556a62 100644 (file)
@@ -108,8 +108,8 @@ static void __init ubnt_unifiac_lite_setup(void)
                                        ubnt_unifiac_gpio_keys);
 }
 
-MIPS_MACHINE(ATH79_MACH_UBNT_UNIFIAC_LITE, "UBNT-UF-AC-LITE", "Ubiquiti UniFi-AC-LITE",
-            ubnt_unifiac_lite_setup);
+MIPS_MACHINE(ATH79_MACH_UBNT_UNIFIAC_LITE, "UBNT-UF-AC-LITE",
+            "Ubiquiti UniFi-AC-LITE/MESH", ubnt_unifiac_lite_setup);
 
 static struct ar8327_pad_cfg ubnt_unifiac_pro_ar8327_pad0_cfg = {
        .mode = AR8327_PAD_MAC_SGMII,
@@ -175,5 +175,5 @@ static void __init ubnt_unifiac_pro_setup(void)
 }
 
 
-MIPS_MACHINE(ATH79_MACH_UBNT_UNIFIAC_PRO, "UBNT-UF-AC-PRO", "Ubiquiti UniFi-AC-PRO",
-            ubnt_unifiac_pro_setup);
+MIPS_MACHINE(ATH79_MACH_UBNT_UNIFIAC_PRO, "UBNT-UF-AC-PRO",
+            "Ubiquiti UniFi-AC-PRO", ubnt_unifiac_pro_setup);
index 4278f5ed77002a7d31537762380e50d8b833eebe..694470d75b088c3475572d2cdccd8a40b0d3de2b 100644 (file)
@@ -274,7 +274,7 @@ enum ath79_mach_type {
        ATH79_MACH_UBNT_RSPRO,                  /* Ubiquiti RouterStation Pro */
        ATH79_MACH_UBNT_UAP_PRO,                /* Ubiquiti UniFi AP Pro */
        ATH79_MACH_UBNT_UNIFI,                  /* Ubiquiti Unifi */
-       ATH79_MACH_UBNT_UNIFIAC_LITE,           /* Ubiquiti Unifi AC LITE/LR */
+       ATH79_MACH_UBNT_UNIFIAC_LITE,           /* Ubiquiti Unifi AC LITE/LR/MESH */
        ATH79_MACH_UBNT_UNIFIAC_PRO,            /* Ubiquiti Unifi AC PRO */
        ATH79_MACH_UBNT_UNIFI_OUTDOOR,          /* Ubiquiti UnifiAP Outdoor */
        ATH79_MACH_UBNT_UNIFI_OUTDOOR_PLUS,     /* Ubiquiti UnifiAP Outdoor+ */
index b203d6aceaff6a698c8c159c1daf850aa7f7217d..84eaaaa9652d8d1799a466752a358988d8fd3553 100644 (file)
@@ -133,6 +133,11 @@ define Device/ubnt-unifiac-lite
   BOARDNAME := UBNT-UF-AC-LITE
 endef
 
+define Device/ubnt-unifiac-mesh
+  $(Device/ubnt-unifiac-lite)
+  DEVICE_TITLE := Ubiquiti UniFi AC-Mesh
+endef
+
 define Device/ubnt-unifiac-pro
   $(Device/ubnt-unifiac)
   DEVICE_TITLE := Ubiquiti UniFi AC-Pro
@@ -147,7 +152,7 @@ define Device/ubnt-unifi-outdoor
   BOARDNAME := UBNT-U20
   DEVICE_PROFILE := UBNT UBNTUNIFIOUTDOOR
 endef
-TARGET_DEVICES += ubnt-unifi ubnt-unifiac-lite ubnt-unifiac-pro ubnt-unifi-outdoor
+TARGET_DEVICES += ubnt-unifi ubnt-unifiac-lite ubnt-unifiac-mesh ubnt-unifiac-pro ubnt-unifi-outdoor
 
 define Device/ubnt-nano-m-xw
   $(Device/ubnt-xw)