ath79: add support for TP-Link CPE220 v2
[openwrt/openwrt.git] / target / linux / ath79 / image / generic-tp-link.mk
1 include ./common-tp-link.mk
2
3 define Device/tplink_archer-a7-v5
4 $(Device/tplink-safeloader-uimage)
5 ATH_SOC := qca9563
6 IMAGE_SIZE := 15104k
7 DEVICE_MODEL := Archer A7
8 DEVICE_VARIANT := v5
9 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
10 TPLINK_BOARD_ID := ARCHER-A7-V5
11 BOARDNAME := ARCHER-A7-V5
12 SUPPORTED_DEVICES += archer-a7-v5
13 endef
14 TARGET_DEVICES += tplink_archer-a7-v5
15
16 define Device/tplink_archer-c2-v3
17 $(Device/tplink-safeloader-uimage)
18 ATH_SOC := qca9563
19 IMAGE_SIZE := 7808k
20 DEVICE_MODEL := Archer C2
21 DEVICE_VARIANT := v3
22 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
23 TPLINK_BOARD_ID := ARCHER-C2-V3
24 endef
25 TARGET_DEVICES += tplink_archer-c2-v3
26
27 define Device/tplink_archer-c25-v1
28 $(Device/tplink-safeloader-uimage)
29 ATH_SOC := qca9561
30 IMAGE_SIZE := 7808k
31 DEVICE_MODEL := Archer C25
32 DEVICE_VARIANT := v1
33 TPLINK_BOARD_ID := ARCHER-C25-V1
34 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
35 SUPPORTED_DEVICES += archer-c25-v1
36 endef
37 TARGET_DEVICES += tplink_archer-c25-v1
38
39 define Device/tplink_archer-c58-v1
40 $(Device/tplink-safeloader-uimage)
41 ATH_SOC := qca9561
42 IMAGE_SIZE := 7936k
43 DEVICE_MODEL := Archer C58
44 DEVICE_VARIANT := v1
45 TPLINK_BOARD_ID := ARCHER-C58-V1
46 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
47 SUPPORTED_DEVICES += archer-c58-v1
48 endef
49 TARGET_DEVICES += tplink_archer-c58-v1
50
51 define Device/tplink_archer-c59-v1
52 $(Device/tplink-safeloader-uimage)
53 ATH_SOC := qca9561
54 IMAGE_SIZE := 14528k
55 DEVICE_MODEL := Archer C59
56 DEVICE_VARIANT := v1
57 TPLINK_BOARD_ID := ARCHER-C59-V1
58 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca9888-ct
59 SUPPORTED_DEVICES += archer-c59-v1
60 endef
61 TARGET_DEVICES += tplink_archer-c59-v1
62
63 define Device/tplink_archer-c60-v1
64 $(Device/tplink-safeloader-uimage)
65 ATH_SOC := qca9561
66 IMAGE_SIZE := 7936k
67 DEVICE_MODEL := Archer C60
68 DEVICE_VARIANT := v1
69 TPLINK_BOARD_ID := ARCHER-C60-V1
70 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
71 SUPPORTED_DEVICES += archer-c60-v1
72 endef
73 TARGET_DEVICES += tplink_archer-c60-v1
74
75 define Device/tplink_archer-c60-v2
76 $(Device/tplink-safeloader-uimage)
77 ATH_SOC := qca9561
78 IMAGE_SIZE := 7808k
79 DEVICE_MODEL := Archer C60
80 DEVICE_VARIANT := v2
81 TPLINK_BOARD_ID := ARCHER-C60-V2
82 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
83 SUPPORTED_DEVICES += archer-c60-v2
84 endef
85 TARGET_DEVICES += tplink_archer-c60-v2
86
87 define Device/tplink_archer-c6-v2
88 $(Device/tplink-safeloader-uimage)
89 ATH_SOC := qca9563
90 IMAGE_SIZE := 7808k
91 DEVICE_MODEL := Archer C6
92 DEVICE_VARIANT := v2
93 TPLINK_BOARD_ID := ARCHER-C6-V2
94 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
95 endef
96 TARGET_DEVICES += tplink_archer-c6-v2
97
98 define Device/tplink_archer-c5-v1
99 $(Device/tplink-16mlzma)
100 ATH_SOC := qca9558
101 DEVICE_MODEL := Archer C5
102 DEVICE_VARIANT := v1
103 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
104 TPLINK_HWID := 0xc5000001
105 SUPPORTED_DEVICES += archer-c5
106 endef
107 TARGET_DEVICES += tplink_archer-c5-v1
108
109 define Device/tplink_archer-c7-v1
110 $(Device/tplink-8mlzma)
111 ATH_SOC := qca9558
112 DEVICE_MODEL := Archer C7
113 DEVICE_VARIANT := v1
114 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
115 TPLINK_HWID := 0x75000001
116 SUPPORTED_DEVICES += archer-c7
117 endef
118 TARGET_DEVICES += tplink_archer-c7-v1
119
120 define Device/tplink_archer-c7-v2
121 $(Device/tplink-16mlzma)
122 ATH_SOC := qca9558
123 DEVICE_MODEL := Archer C7
124 DEVICE_VARIANT := v2
125 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
126 TPLINK_HWID := 0xc7000002
127 SUPPORTED_DEVICES += archer-c7
128 IMAGES += factory-us.bin factory-eu.bin
129 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
130 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
131 endef
132 TARGET_DEVICES += tplink_archer-c7-v2
133
134 define Device/tplink_archer-c7-v4
135 $(Device/tplink-safeloader-uimage)
136 ATH_SOC := qca9563
137 IMAGE_SIZE := 15104k
138 DEVICE_MODEL := Archer C7
139 DEVICE_VARIANT := v4
140 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
141 TPLINK_BOARD_ID := ARCHER-C7-V4
142 BOARDNAME := ARCHER-C7-V4
143 SUPPORTED_DEVICES += archer-c7-v4
144 endef
145 TARGET_DEVICES += tplink_archer-c7-v4
146
147 define Device/tplink_archer-c7-v5
148 $(Device/tplink-safeloader-uimage)
149 ATH_SOC := qca9563
150 IMAGE_SIZE := 15360k
151 DEVICE_MODEL := Archer C7
152 DEVICE_VARIANT := v5
153 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
154 TPLINK_BOARD_ID := ARCHER-C7-V5
155 BOARDNAME := ARCHER-C7-V5
156 SUPPORTED_DEVICES += archer-c7-v5
157 endef
158 TARGET_DEVICES += tplink_archer-c7-v5
159
160 define Device/tplink_cpe210-v1
161 $(Device/tplink-loader-okli)
162 ATH_SOC := ar9344
163 IMAGE_SIZE := 7680k
164 DEVICE_MODEL := CPE210
165 DEVICE_VARIANT := v1
166 DEVICE_PACKAGES := rssileds
167 TPLINK_BOARD_ID := CPE210
168 SUPPORTED_DEVICES += cpe210
169 endef
170 TARGET_DEVICES += tplink_cpe210-v1
171
172 define Device/tplink_cpe210-v2
173 $(Device/tplink-safeloader)
174 ATH_SOC := qca9533
175 IMAGE_SIZE := 7680k
176 DEVICE_MODEL := CPE210
177 DEVICE_VARIANT := v2
178 TPLINK_BOARD_ID := CPE210V2
179 DEVICE_PACKAGES := rssileds
180 LOADER_TYPE := elf
181 SUPPORTED_DEVICES += cpe210-v2
182 endef
183 TARGET_DEVICES += tplink_cpe210-v2
184
185 define Device/tplink_cpe210-v3
186 $(Device/tplink-safeloader)
187 ATH_SOC := qca9533
188 IMAGE_SIZE := 7680k
189 DEVICE_MODEL := CPE210
190 DEVICE_VARIANT := v3
191 DEVICE_PACKAGES := rssileds
192 TPLINK_BOARD_ID := CPE210V3
193 LOADER_TYPE := elf
194 SUPPORTED_DEVICES += cpe210-v3
195 endef
196 TARGET_DEVICES += tplink_cpe210-v3
197
198 define Device/tplink_cpe220-v2
199 $(Device/tplink-loader-okli)
200 ATH_SOC := ar9344
201 IMAGE_SIZE := 7680k
202 DEVICE_MODEL := CPE220
203 DEVICE_VARIANT := v2
204 DEVICE_PACKAGES := rssileds
205 TPLINK_BOARD_ID := CPE220V2
206 endef
207 TARGET_DEVICES += tplink_cpe220-v2
208
209 define Device/tplink_cpe510-v1
210 $(Device/tplink-loader-okli)
211 ATH_SOC := ar9344
212 IMAGE_SIZE := 7680k
213 DEVICE_MODEL := CPE510
214 DEVICE_VARIANT := v1
215 DEVICE_PACKAGES := rssileds
216 TPLINK_BOARD_ID := CPE510
217 SUPPORTED_DEVICES += cpe510
218 endef
219 TARGET_DEVICES += tplink_cpe510-v1
220
221 define Device/tplink_cpe510-v2
222 $(Device/tplink-loader-okli)
223 ATH_SOC := ar9344
224 IMAGE_SIZE := 7680k
225 DEVICE_MODEL := CPE510
226 DEVICE_VARIANT := v2
227 DEVICE_PACKAGES := rssileds
228 TPLINK_BOARD_ID := CPE510V2
229 SUPPORTED_DEVICES += cpe510-v2
230 endef
231 TARGET_DEVICES += tplink_cpe510-v2
232
233 define Device/tplink_cpe510-v3
234 $(Device/tplink-loader-okli)
235 ATH_SOC := ar9344
236 IMAGE_SIZE := 7680k
237 DEVICE_MODEL := CPE510
238 DEVICE_VARIANT := v3
239 DEVICE_PACKAGES := rssileds
240 TPLINK_BOARD_ID := CPE510V3
241 SUPPORTED_DEVICES += cpe510-v3
242 endef
243 TARGET_DEVICES += tplink_cpe510-v3
244
245 define Device/tplink_cpe610-v1
246 $(Device/tplink-loader-okli)
247 ATH_SOC := ar9344
248 IMAGE_SIZE := 7680k
249 DEVICE_MODEL := CPE610
250 DEVICE_VARIANT := v1
251 TPLINK_BOARD_ID := CPE610V1
252 endef
253 TARGET_DEVICES += tplink_cpe610-v1
254
255 define Device/tplink_archer-d50-v1
256 ATH_SOC := qca9531
257 DEVICE_VENDOR := TP-Link
258 DEVICE_MODEL := Archer D50
259 DEVICE_VARIANT := v1
260 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
261 BOARDNAME := ARCHER-D50-V1
262 IMAGE_SIZE := 7808k
263 TPLINK_HWID := 0xC1200001
264 TPLINK_HWREV := 0x00000046
265 TPLINK_FLASHLAYOUT := 8Mqca
266 TPLINK_HWREVADD := 0x00000000
267 TPLINK_HVERSION := 3
268 KERNEL := kernel-bin | append-dtb | lzma
269 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | \
270 tplink-v2-header -s -V "ver. 1.0"
271 IMAGES := sysupgrade.bin
272 IMAGE/sysupgrade.bin := tplink-v2-image -s -V "ver. 2.0" | \
273 append-metadata | check-size $$$$(IMAGE_SIZE)
274 SUPPORTED_DEVICES += archer-d50-v1
275 endef
276 TARGET_DEVICES += tplink_archer-d50-v1
277
278 define Device/tplink_re350k-v1
279 $(Device/tplink-safeloader)
280 ATH_SOC := qca9558
281 IMAGE_SIZE := 13760k
282 DEVICE_MODEL := RE350K
283 DEVICE_VARIANT := v1
284 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
285 TPLINK_BOARD_ID := RE350K-V1
286 TPLINK_HWID := 0x0
287 TPLINK_HWREV := 0
288 endef
289 TARGET_DEVICES += tplink_re350k-v1
290
291 define Device/tplink_rex5x-v1
292 $(Device/tplink-safeloader)
293 ATH_SOC := qca9558
294 IMAGE_SIZE := 6016k
295 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
296 TPLINK_HWID := 0x0
297 TPLINK_HWREV := 0
298 endef
299
300 define Device/tplink_re355-v1
301 $(Device/tplink_rex5x-v1)
302 DEVICE_MODEL := RE355
303 DEVICE_VARIANT := v1
304 TPLINK_BOARD_ID := RE355
305 SUPPORTED_DEVICES += re355
306 endef
307 TARGET_DEVICES += tplink_re355-v1
308
309 define Device/tplink_re450-v1
310 $(Device/tplink_rex5x-v1)
311 DEVICE_MODEL := RE450
312 DEVICE_VARIANT := v1
313 TPLINK_BOARD_ID := RE450
314 SUPPORTED_DEVICES += re450
315 endef
316 TARGET_DEVICES += tplink_re450-v1
317
318 define Device/tplink_re450-v2
319 $(Device/tplink-safeloader)
320 ATH_SOC := qca9563
321 IMAGE_SIZE := 6016k
322 DEVICE_MODEL := RE450
323 DEVICE_VARIANT := v2
324 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
325 TPLINK_HWID := 0x0
326 TPLINK_HWREV := 0
327 TPLINK_BOARD_ID := RE450-V2
328 LOADER_TYPE := elf
329 endef
330 TARGET_DEVICES += tplink_re450-v2
331
332 define Device/tplink_tl-wdr3600-v1
333 $(Device/tplink-8mlzma)
334 ATH_SOC := ar9344
335 DEVICE_MODEL := TL-WDR3600
336 DEVICE_VARIANT := v1
337 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
338 TPLINK_HWID := 0x36000001
339 SUPPORTED_DEVICES += tl-wdr4300
340 endef
341 TARGET_DEVICES += tplink_tl-wdr3600-v1
342
343 define Device/tplink_tl-wdr4300-v1
344 $(Device/tplink-8mlzma)
345 ATH_SOC := ar9344
346 DEVICE_MODEL := TL-WDR4300
347 DEVICE_VARIANT := v1
348 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
349 TPLINK_HWID := 0x43000001
350 SUPPORTED_DEVICES += tl-wdr4300
351 endef
352 TARGET_DEVICES += tplink_tl-wdr4300-v1
353
354 define Device/tplink_tl-wdr4900-v2
355 $(Device/tplink-8mlzma)
356 ATH_SOC := qca9558
357 DEVICE_MODEL := TL-WDR4900
358 DEVICE_VARIANT := v2
359 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
360 TPLINK_HWID := 0x49000002
361 endef
362 TARGET_DEVICES += tplink_tl-wdr4900-v2
363
364 define Device/tplink_tl-wr810n-v1
365 $(Device/tplink-8mlzma)
366 ATH_SOC := qca9531
367 DEVICE_MODEL := TL-WR810N
368 DEVICE_VARIANT := v1
369 TPLINK_HWID := 0x8100001
370 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
371 endef
372 TARGET_DEVICES += tplink_tl-wr810n-v1
373
374 define Device/tplink_tl-wr810n-v2
375 $(Device/tplink-8mlzma)
376 ATH_SOC := qca9533
377 DEVICE_MODEL := TL-WR810N
378 DEVICE_VARIANT := v2
379 TPLINK_HWID := 0x8100002
380 endef
381 TARGET_DEVICES += tplink_tl-wr810n-v2
382
383 define Device/tplink_tl-wr710n-v1
384 $(Device/tplink-8mlzma)
385 ATH_SOC := ar9331
386 DEVICE_MODEL := TL-WR710N
387 DEVICE_VARIANT := v1
388 DEVICE_PACKAGES := kmod-usb-core kmod-usb-chipidea2 kmod-usb-ledtrig-usbport
389 TPLINK_HWID := 0x07100001
390 SUPPORTED_DEVICES += tl-wr710n
391 endef
392 TARGET_DEVICES += tplink_tl-wr710n-v1
393
394 define Device/tplink_tl-wr842n-v1
395 $(Device/tplink-8m)
396 ATH_SOC := ar7241
397 DEVICE_MODEL := TL-WR842N/ND
398 DEVICE_VARIANT := v1
399 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
400 TPLINK_HWID := 0x8420001
401 endef
402 TARGET_DEVICES += tplink_tl-wr842n-v1
403
404 define Device/tplink_tl-wr842n-v2
405 $(Device/tplink-8mlzma)
406 ATH_SOC := ar9341
407 DEVICE_MODEL := TL-WR842N/ND
408 DEVICE_VARIANT := v2
409 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
410 TPLINK_HWID := 0x8420002
411 SUPPORTED_DEVICES += tl-wr842n-v2
412 endef
413 TARGET_DEVICES += tplink_tl-wr842n-v2
414
415 define Device/tplink_tl-wr842n-v3
416 $(Device/tplink-16mlzma)
417 ATH_SOC := qca9533
418 DEVICE_MODEL := TL-WR842N
419 DEVICE_VARIANT := v3
420 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
421 TPLINK_HWID := 0x8420003
422 SUPPORTED_DEVICES += tl-wr842n-v3
423 endef
424 TARGET_DEVICES += tplink_tl-wr842n-v3
425
426 define Device/tplink_tl-wr1043nd-v1
427 $(Device/tplink-8m)
428 ATH_SOC := ar9132
429 DEVICE_MODEL := TL-WR1043N/ND
430 DEVICE_VARIANT := v1
431 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
432 TPLINK_HWID := 0x10430001
433 SUPPORTED_DEVICES += tl-wr1043nd
434 endef
435 TARGET_DEVICES += tplink_tl-wr1043nd-v1
436
437 define Device/tplink_tl-wr1043nd-v2
438 $(Device/tplink-8mlzma)
439 ATH_SOC := qca9558
440 DEVICE_MODEL := TL-WR1043N/ND
441 DEVICE_VARIANT := v2
442 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
443 TPLINK_HWID := 0x10430002
444 SUPPORTED_DEVICES += tl-wr1043nd-v2
445 endef
446 TARGET_DEVICES += tplink_tl-wr1043nd-v2
447
448 define Device/tplink_tl-wr1043nd-v3
449 $(Device/tplink-8mlzma)
450 ATH_SOC := qca9558
451 DEVICE_MODEL := TL-WR1043N/ND
452 DEVICE_VARIANT := v3
453 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
454 TPLINK_HWID := 0x10430003
455 SUPPORTED_DEVICES += tl-wr1043nd-v3
456 endef
457 TARGET_DEVICES += tplink_tl-wr1043nd-v3
458
459 define Device/tplink_tl-wr1043nd-v4
460 $(Device/tplink-safeloader)
461 ATH_SOC := qca9563
462 IMAGE_SIZE := 15552k
463 DEVICE_MODEL := TL-WR1043N/ND
464 DEVICE_VARIANT := v4
465 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
466 TPLINK_HWID := 0x10430004
467 TPLINK_BOARD_ID := TLWR1043NDV4
468 SUPPORTED_DEVICES += tl-wr1043nd-v4
469 endef
470 TARGET_DEVICES += tplink_tl-wr1043nd-v4
471
472 define Device/tplink_tl-wr1043n-v5
473 $(Device/tplink-safeloader-uimage)
474 ATH_SOC := qca9563
475 IMAGE_SIZE := 15104k
476 DEVICE_MODEL := TL-WR1043N
477 DEVICE_VARIANT := v5
478 TPLINK_BOARD_ID := TLWR1043NV5
479 SUPPORTED_DEVICES += tl-wr1043n-v5
480 endef
481 TARGET_DEVICES += tplink_tl-wr1043n-v5
482
483 define Device/tplink_tl-wr2543-v1
484 $(Device/tplink-8mlzma)
485 ATH_SOC := ar7242
486 DEVICE_MODEL := TL-WR2543N/ND
487 DEVICE_VARIANT := v1
488 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
489 TPLINK_HWID := 0x25430001
490 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99 | \
491 append-metadata | check-size $$$$(IMAGE_SIZE)
492 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
493 SUPPORTED_DEVICES += tl-wr2543-v1
494 endef
495 TARGET_DEVICES += tplink_tl-wr2543-v1