ath79: add support for UniFi UK-Ultra
[openwrt/openwrt.git] / target / linux / ath79 / image / generic-ubnt.mk
1 include ./common-ubnt.mk
2
3 define Device/ubnt_aircube-ac
4 $(Device/ubnt-acb)
5 SOC := ar9342
6 DEVICE_MODEL := airCube AC
7 UBNT_CHIP := ar9342
8 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
9 endef
10 TARGET_DEVICES += ubnt_aircube-ac
11
12 define Device/ubnt_aircube-isp
13 $(Device/ubnt-acb)
14 SOC := qca9533
15 DEVICE_MODEL := airCube ISP
16 UBNT_CHIP := qca9533
17 SUPPORTED_DEVICES += ubnt,acb-isp
18 endef
19 TARGET_DEVICES += ubnt_aircube-isp
20
21 define Device/ubnt_bullet-ac
22 $(Device/ubnt-2wa)
23 DEVICE_MODEL := Bullet AC
24 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
25 endef
26 TARGET_DEVICES += ubnt_bullet-ac
27
28 define Device/ubnt_bullet-m-xw
29 $(Device/ubnt-xw)
30 DEVICE_MODEL := Bullet M
31 DEVICE_PACKAGES += rssileds
32 SUPPORTED_DEVICES += bullet-m-xw
33 endef
34 TARGET_DEVICES += ubnt_bullet-m-xw
35
36 define Device/ubnt_edgeswitch-5xp
37 $(Device/ubnt-sw)
38 DEVICE_MODEL := EdgeSwitch 5XP
39 endef
40 TARGET_DEVICES += ubnt_edgeswitch-5xp
41
42 define Device/ubnt_edgeswitch-8xp
43 $(Device/ubnt-sw)
44 DEVICE_MODEL := EdgeSwitch 8XP
45 DEVICE_PACKAGES += kmod-switch-bcm53xx-mdio
46 DEFAULT := n
47 endef
48 TARGET_DEVICES += ubnt_edgeswitch-8xp
49
50 define Device/ubnt_lap-120
51 $(Device/ubnt-wa)
52 DEVICE_MODEL := LiteAP ac (LAP-120)
53 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
54 endef
55 TARGET_DEVICES += ubnt_lap-120
56
57 define Device/ubnt_litebeam-ac-gen2
58 $(Device/ubnt-wa)
59 DEVICE_MODEL := LiteBeam AC
60 DEVICE_VARIANT := Gen2
61 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
62 endef
63 TARGET_DEVICES += ubnt_litebeam-ac-gen2
64
65 define Device/ubnt_nanobeam-ac
66 $(Device/ubnt-wa)
67 DEVICE_MODEL := NanoBeam AC
68 DEVICE_VARIANT := Gen1
69 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
70 endef
71 TARGET_DEVICES += ubnt_nanobeam-ac
72
73 define Device/ubnt_nanobeam-ac-gen2
74 $(Device/ubnt-wa)
75 DEVICE_MODEL := NanoBeam AC
76 DEVICE_VARIANT := Gen2
77 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
78 endef
79 TARGET_DEVICES += ubnt_nanobeam-ac-gen2
80
81 define Device/ubnt_nanobeam-ac-xc
82 $(Device/ubnt-xc)
83 SOC := qca9558
84 DEVICE_MODEL := NanoBeam AC
85 DEVICE_VARIANT := Gen1 (XC)
86 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
87 endef
88 TARGET_DEVICES += ubnt_nanobeam-ac-xc
89
90 define Device/ubnt_nanobeam-m5-xw
91 $(Device/ubnt-xw)
92 DEVICE_MODEL := NanoBeam M5
93 DEVICE_PACKAGES += rssileds
94 SUPPORTED_DEVICES += loco-m-xw
95 endef
96 TARGET_DEVICES += ubnt_nanobeam-m5-xw
97
98 define Device/ubnt_nanostation-ac
99 $(Device/ubnt-wa)
100 DEVICE_MODEL := Nanostation AC
101 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
102 endef
103 TARGET_DEVICES += ubnt_nanostation-ac
104
105 define Device/ubnt_nanostation-ac-loco
106 $(Device/ubnt-wa)
107 DEVICE_MODEL := Nanostation AC loco
108 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
109 endef
110 TARGET_DEVICES += ubnt_nanostation-ac-loco
111
112 define Device/ubnt_nanostation-loco-m-xw
113 $(Device/ubnt-xw)
114 DEVICE_MODEL := Nanostation Loco M
115 DEVICE_PACKAGES += rssileds
116 SUPPORTED_DEVICES += loco-m-xw
117 endef
118 TARGET_DEVICES += ubnt_nanostation-loco-m-xw
119
120 define Device/ubnt_nanostation-m-xw
121 $(Device/ubnt-xw)
122 DEVICE_MODEL := Nanostation M
123 DEVICE_PACKAGES += rssileds
124 SUPPORTED_DEVICES += nanostation-m-xw
125 endef
126 TARGET_DEVICES += ubnt_nanostation-m-xw
127
128 define Device/ubnt_powerbeam-5ac-500
129 $(Device/ubnt-xc)
130 SOC := qca9558
131 DEVICE_MODEL := PowerBeam 5AC
132 DEVICE_VARIANT := 500
133 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
134 endef
135 TARGET_DEVICES += ubnt_powerbeam-5ac-500
136
137 define Device/ubnt_powerbeam-5ac-gen2
138 $(Device/ubnt-wa)
139 DEVICE_MODEL := PowerBeam 5AC
140 DEVICE_VARIANT := Gen2
141 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
142 endef
143 TARGET_DEVICES += ubnt_powerbeam-5ac-gen2
144
145 define Device/ubnt_powerbeam-m2-xw
146 $(Device/ubnt-xw)
147 DEVICE_MODEL := PowerBeam M2
148 DEVICE_PACKAGES += rssileds
149 SUPPORTED_DEVICES += loco-m-xw
150 endef
151 TARGET_DEVICES += ubnt_powerbeam-m2-xw
152
153 define Device/ubnt_powerbeam-m5-xw
154 $(Device/ubnt-xw)
155 DEVICE_MODEL := PowerBeam M5
156 DEVICE_PACKAGES += rssileds
157 SUPPORTED_DEVICES += loco-m-xw
158 endef
159 TARGET_DEVICES += ubnt_powerbeam-m5-xw
160
161 define Device/ubnt_powerbridge-m
162 $(Device/ubnt-xm)
163 SOC := ar7241
164 DEVICE_MODEL := PowerBridge M
165 DEVICE_PACKAGES += rssileds
166 SUPPORTED_DEVICES += bullet-m
167 endef
168 TARGET_DEVICES += ubnt_powerbridge-m
169
170 define Device/ubnt_rocket-5ac-lite
171 $(Device/ubnt-xc)
172 SOC := qca9558
173 DEVICE_MODEL := Rocket 5AC
174 DEVICE_VARIANT := Lite
175 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
176 endef
177 TARGET_DEVICES += ubnt_rocket-5ac-lite
178
179 define Device/ubnt_rocket-m
180 $(Device/ubnt-xm)
181 SOC := ar7241
182 DEVICE_MODEL := Rocket M
183 DEVICE_PACKAGES += rssileds
184 SUPPORTED_DEVICES += rocket-m
185 endef
186 TARGET_DEVICES += ubnt_rocket-m
187
188 define Device/ubnt_routerstation_common
189 DEVICE_PACKAGES := -kmod-ath9k -wpad-basic-mbedtls -uboot-envtools kmod-usb-ohci \
190 kmod-usb2 fconfig
191 DEVICE_VENDOR := Ubiquiti
192 SOC := ar7161
193 LOADER_TYPE := bin
194 LOADER_FLASH_OFFS := 0x50000
195 COMPILE := loader-$(1).bin
196 COMPILE/loader-$(1).bin := loader-okli-compile | lzma | pad-to 128k
197 IMAGE_SIZE := 16000k
198 IMAGES += factory.bin
199 IMAGE/factory.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
200 append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | \
201 mkubntimage $$$$(KDIR)/loader-$(1).bin | check-size
202 IMAGE/sysupgrade.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
203 append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | check-size | \
204 sysupgrade-tar kernel=$$$$(KDIR)/loader-$(1).bin rootfs=$$$$@ | append-metadata
205 KERNEL := kernel-bin | append-dtb | lzma
206 KERNEL_INITRAMFS := kernel-bin | append-dtb
207 DEVICE_COMPAT_VERSION := 2.0
208 DEVICE_COMPAT_MESSAGE := Partition design has changed compared to older versions (19.07 and 21.02) \
209 due to kernel drivers restrictions. Upgrade via sysupgrade mechanism is one way operation. \
210 Downgrading OpenWrt version will involve usage of TFTP recovery or bootloader command line interface.
211 endef
212
213 define Device/ubnt_routerstation
214 $(Device/ubnt_routerstation_common)
215 DEVICE_MODEL := RouterStation
216 UBNT_BOARD := RS
217 UBNT_TYPE := RSx
218 UBNT_CHIP := ar7100
219 DEVICE_PACKAGES += -swconfig
220 endef
221 TARGET_DEVICES += ubnt_routerstation
222
223 define Device/ubnt_routerstation-pro
224 $(Device/ubnt_routerstation_common)
225 DEVICE_MODEL := RouterStation Pro
226 UBNT_BOARD := RSPRO
227 UBNT_TYPE := RSPRO
228 UBNT_CHIP := ar7100pro
229 endef
230 TARGET_DEVICES += ubnt_routerstation-pro
231
232 define Device/ubnt_uk-ultra
233 $(Device/ubnt_unifiac)
234 DEVICE_MODEL := UniFi Swiss Army Knife Ultra
235 DEVICE_PACKAGES += rssileds -swconfig
236 endef
237 TARGET_DEVICES += ubnt_uk-ultra
238
239 define Device/ubnt_unifi-ap
240 $(Device/ubnt-bz)
241 DEVICE_MODEL := UniFi AP
242 SUPPORTED_DEVICES += unifi ubnt,unifi
243 endef
244 TARGET_DEVICES += ubnt_unifi-ap
245
246 define Device/ubnt_unifi-ap-lr
247 $(Device/ubnt-bz)
248 DEVICE_MODEL := UniFi AP
249 DEVICE_VARIANT := LR
250 SUPPORTED_DEVICES += unifi ubnt,unifi ubnt,unifi-ap
251 endef
252 TARGET_DEVICES += ubnt_unifi-ap-lr
253
254 define Device/ubnt_unifiac-lite
255 $(Device/ubnt_unifiac)
256 DEVICE_MODEL := UniFi AC Lite
257 DEVICE_PACKAGES += -swconfig
258 SUPPORTED_DEVICES += unifiac-lite
259 endef
260 TARGET_DEVICES += ubnt_unifiac-lite
261
262 define Device/ubnt_unifiac-lr
263 $(Device/ubnt_unifiac)
264 DEVICE_MODEL := UniFi AC LR
265 DEVICE_PACKAGES += -swconfig
266 SUPPORTED_DEVICES += unifiac-lite ubnt,unifiac-lite
267 endef
268 TARGET_DEVICES += ubnt_unifiac-lr
269
270 define Device/ubnt_unifiac-mesh
271 $(Device/ubnt_unifiac)
272 DEVICE_MODEL := UniFi AC Mesh
273 DEVICE_PACKAGES += -swconfig
274 SUPPORTED_DEVICES += unifiac-lite
275 endef
276 TARGET_DEVICES += ubnt_unifiac-mesh
277
278 define Device/ubnt_unifiac-mesh-pro
279 $(Device/ubnt_unifiac)
280 DEVICE_MODEL := UniFi AC Mesh Pro
281 SUPPORTED_DEVICES += unifiac-pro
282 endef
283 TARGET_DEVICES += ubnt_unifiac-mesh-pro
284
285 define Device/ubnt_unifiac-pro
286 $(Device/ubnt_unifiac)
287 DEVICE_MODEL := UniFi AC Pro
288 DEVICE_PACKAGES += kmod-usb2
289 SUPPORTED_DEVICES += unifiac-pro
290 endef
291 TARGET_DEVICES += ubnt_unifiac-pro
292
293 define Device/ubnt_unifi-ap-outdoor-plus
294 $(Device/ubnt-bz)
295 $(Device/ubnt-unifi-jffs2)
296 DEVICE_MODEL := UniFi AP Outdoor+
297 SUPPORTED_DEVICES += unifi-outdoor-plus
298 endef
299 TARGET_DEVICES += ubnt_unifi-ap-outdoor-plus
300
301 define Device/ubnt_unifi-ap-pro
302 $(Device/ubnt-unifi-jffs2)
303 SOC := ar9344
304 DEVICE_MODEL := UniFi AP Pro
305 UBNT_CHIP := ar934x
306 SUPPORTED_DEVICES += uap-pro
307 endef
308 TARGET_DEVICES += ubnt_unifi-ap-pro