ath79: add support for TP-Link CPE210 v1
[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_cpe510-v2
199 $(Device/tplink-loader-okli)
200 ATH_SOC := ar9344
201 IMAGE_SIZE := 7680k
202 DEVICE_MODEL := CPE510
203 DEVICE_VARIANT := v2
204 DEVICE_PACKAGES := rssileds
205 TPLINK_BOARD_ID := CPE510V2
206 SUPPORTED_DEVICES += cpe510-v2
207 endef
208 TARGET_DEVICES += tplink_cpe510-v2
209
210 define Device/tplink_cpe510-v3
211 $(Device/tplink-loader-okli)
212 ATH_SOC := ar9344
213 IMAGE_SIZE := 7680k
214 DEVICE_MODEL := CPE510
215 DEVICE_VARIANT := v3
216 DEVICE_PACKAGES := rssileds
217 TPLINK_BOARD_ID := CPE510V3
218 SUPPORTED_DEVICES += cpe510-v3
219 endef
220 TARGET_DEVICES += tplink_cpe510-v3
221
222 define Device/tplink_cpe610-v1
223 $(Device/tplink-loader-okli)
224 ATH_SOC := ar9344
225 IMAGE_SIZE := 7680k
226 DEVICE_MODEL := CPE610
227 DEVICE_VARIANT := v1
228 TPLINK_BOARD_ID := CPE610V1
229 endef
230 TARGET_DEVICES += tplink_cpe610-v1
231
232 define Device/tplink_archer-d50-v1
233 ATH_SOC := qca9531
234 DEVICE_VENDOR := TP-Link
235 DEVICE_MODEL := Archer D50
236 DEVICE_VARIANT := v1
237 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
238 BOARDNAME := ARCHER-D50-V1
239 IMAGE_SIZE := 7808k
240 TPLINK_HWID := 0xC1200001
241 TPLINK_HWREV := 0x00000046
242 TPLINK_FLASHLAYOUT := 8Mqca
243 TPLINK_HWREVADD := 0x00000000
244 TPLINK_HVERSION := 3
245 KERNEL := kernel-bin | append-dtb | lzma
246 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | \
247 tplink-v2-header -s -V "ver. 1.0"
248 IMAGES := sysupgrade.bin
249 IMAGE/sysupgrade.bin := tplink-v2-image -s -V "ver. 2.0" | \
250 append-metadata | check-size $$$$(IMAGE_SIZE)
251 SUPPORTED_DEVICES += archer-d50-v1
252 endef
253 TARGET_DEVICES += tplink_archer-d50-v1
254
255 define Device/tplink_re350k-v1
256 $(Device/tplink-safeloader)
257 ATH_SOC := qca9558
258 IMAGE_SIZE := 13760k
259 DEVICE_MODEL := RE350K
260 DEVICE_VARIANT := v1
261 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
262 TPLINK_BOARD_ID := RE350K-V1
263 TPLINK_HWID := 0x0
264 TPLINK_HWREV := 0
265 endef
266 TARGET_DEVICES += tplink_re350k-v1
267
268 define Device/tplink_rex5x-v1
269 $(Device/tplink-safeloader)
270 ATH_SOC := qca9558
271 IMAGE_SIZE := 6016k
272 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
273 TPLINK_HWID := 0x0
274 TPLINK_HWREV := 0
275 endef
276
277 define Device/tplink_re355-v1
278 $(Device/tplink_rex5x-v1)
279 DEVICE_MODEL := RE355
280 DEVICE_VARIANT := v1
281 TPLINK_BOARD_ID := RE355
282 SUPPORTED_DEVICES += re355
283 endef
284 TARGET_DEVICES += tplink_re355-v1
285
286 define Device/tplink_re450-v1
287 $(Device/tplink_rex5x-v1)
288 DEVICE_MODEL := RE450
289 DEVICE_VARIANT := v1
290 TPLINK_BOARD_ID := RE450
291 SUPPORTED_DEVICES += re450
292 endef
293 TARGET_DEVICES += tplink_re450-v1
294
295 define Device/tplink_re450-v2
296 $(Device/tplink-safeloader)
297 ATH_SOC := qca9563
298 IMAGE_SIZE := 6016k
299 DEVICE_MODEL := RE450
300 DEVICE_VARIANT := v2
301 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
302 TPLINK_HWID := 0x0
303 TPLINK_HWREV := 0
304 TPLINK_BOARD_ID := RE450-V2
305 LOADER_TYPE := elf
306 endef
307 TARGET_DEVICES += tplink_re450-v2
308
309 define Device/tplink_tl-wdr3600-v1
310 $(Device/tplink-8mlzma)
311 ATH_SOC := ar9344
312 DEVICE_MODEL := TL-WDR3600
313 DEVICE_VARIANT := v1
314 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
315 TPLINK_HWID := 0x36000001
316 SUPPORTED_DEVICES += tl-wdr4300
317 endef
318 TARGET_DEVICES += tplink_tl-wdr3600-v1
319
320 define Device/tplink_tl-wdr4300-v1
321 $(Device/tplink-8mlzma)
322 ATH_SOC := ar9344
323 DEVICE_MODEL := TL-WDR4300
324 DEVICE_VARIANT := v1
325 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
326 TPLINK_HWID := 0x43000001
327 SUPPORTED_DEVICES += tl-wdr4300
328 endef
329 TARGET_DEVICES += tplink_tl-wdr4300-v1
330
331 define Device/tplink_tl-wdr4900-v2
332 $(Device/tplink-8mlzma)
333 ATH_SOC := qca9558
334 DEVICE_MODEL := TL-WDR4900
335 DEVICE_VARIANT := v2
336 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
337 TPLINK_HWID := 0x49000002
338 endef
339 TARGET_DEVICES += tplink_tl-wdr4900-v2
340
341 define Device/tplink_tl-wr810n-v1
342 $(Device/tplink-8mlzma)
343 ATH_SOC := qca9531
344 DEVICE_MODEL := TL-WR810N
345 DEVICE_VARIANT := v1
346 TPLINK_HWID := 0x8100001
347 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
348 endef
349 TARGET_DEVICES += tplink_tl-wr810n-v1
350
351 define Device/tplink_tl-wr810n-v2
352 $(Device/tplink-8mlzma)
353 ATH_SOC := qca9533
354 DEVICE_MODEL := TL-WR810N
355 DEVICE_VARIANT := v2
356 TPLINK_HWID := 0x8100002
357 endef
358 TARGET_DEVICES += tplink_tl-wr810n-v2
359
360 define Device/tplink_tl-wr710n-v1
361 $(Device/tplink-8mlzma)
362 ATH_SOC := ar9331
363 DEVICE_MODEL := TL-WR710N
364 DEVICE_VARIANT := v1
365 DEVICE_PACKAGES := kmod-usb-core kmod-usb-chipidea2 kmod-usb-ledtrig-usbport
366 TPLINK_HWID := 0x07100001
367 SUPPORTED_DEVICES += tl-wr710n
368 endef
369 TARGET_DEVICES += tplink_tl-wr710n-v1
370
371 define Device/tplink_tl-wr842n-v1
372 $(Device/tplink-8m)
373 ATH_SOC := ar7241
374 DEVICE_MODEL := TL-WR842N/ND
375 DEVICE_VARIANT := v1
376 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
377 TPLINK_HWID := 0x8420001
378 endef
379 TARGET_DEVICES += tplink_tl-wr842n-v1
380
381 define Device/tplink_tl-wr842n-v2
382 $(Device/tplink-8mlzma)
383 ATH_SOC := ar9341
384 DEVICE_MODEL := TL-WR842N/ND
385 DEVICE_VARIANT := v2
386 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
387 TPLINK_HWID := 0x8420002
388 SUPPORTED_DEVICES += tl-wr842n-v2
389 endef
390 TARGET_DEVICES += tplink_tl-wr842n-v2
391
392 define Device/tplink_tl-wr842n-v3
393 $(Device/tplink-16mlzma)
394 ATH_SOC := qca9533
395 DEVICE_MODEL := TL-WR842N
396 DEVICE_VARIANT := v3
397 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
398 TPLINK_HWID := 0x8420003
399 SUPPORTED_DEVICES += tl-wr842n-v3
400 endef
401 TARGET_DEVICES += tplink_tl-wr842n-v3
402
403 define Device/tplink_tl-wr1043nd-v1
404 $(Device/tplink-8m)
405 ATH_SOC := ar9132
406 DEVICE_MODEL := TL-WR1043N/ND
407 DEVICE_VARIANT := v1
408 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
409 TPLINK_HWID := 0x10430001
410 SUPPORTED_DEVICES += tl-wr1043nd
411 endef
412 TARGET_DEVICES += tplink_tl-wr1043nd-v1
413
414 define Device/tplink_tl-wr1043nd-v2
415 $(Device/tplink-8mlzma)
416 ATH_SOC := qca9558
417 DEVICE_MODEL := TL-WR1043N/ND
418 DEVICE_VARIANT := v2
419 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
420 TPLINK_HWID := 0x10430002
421 SUPPORTED_DEVICES += tl-wr1043nd-v2
422 endef
423 TARGET_DEVICES += tplink_tl-wr1043nd-v2
424
425 define Device/tplink_tl-wr1043nd-v3
426 $(Device/tplink-8mlzma)
427 ATH_SOC := qca9558
428 DEVICE_MODEL := TL-WR1043N/ND
429 DEVICE_VARIANT := v3
430 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
431 TPLINK_HWID := 0x10430003
432 SUPPORTED_DEVICES += tl-wr1043nd-v3
433 endef
434 TARGET_DEVICES += tplink_tl-wr1043nd-v3
435
436 define Device/tplink_tl-wr1043nd-v4
437 $(Device/tplink-safeloader)
438 ATH_SOC := qca9563
439 IMAGE_SIZE := 15552k
440 DEVICE_MODEL := TL-WR1043N/ND
441 DEVICE_VARIANT := v4
442 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
443 TPLINK_HWID := 0x10430004
444 TPLINK_BOARD_ID := TLWR1043NDV4
445 SUPPORTED_DEVICES += tl-wr1043nd-v4
446 endef
447 TARGET_DEVICES += tplink_tl-wr1043nd-v4
448
449 define Device/tplink_tl-wr1043n-v5
450 $(Device/tplink-safeloader-uimage)
451 ATH_SOC := qca9563
452 IMAGE_SIZE := 15104k
453 DEVICE_MODEL := TL-WR1043N
454 DEVICE_VARIANT := v5
455 TPLINK_BOARD_ID := TLWR1043NV5
456 SUPPORTED_DEVICES += tl-wr1043n-v5
457 endef
458 TARGET_DEVICES += tplink_tl-wr1043n-v5
459
460 define Device/tplink_tl-wr2543-v1
461 $(Device/tplink-8mlzma)
462 ATH_SOC := ar7242
463 DEVICE_MODEL := TL-WR2543N/ND
464 DEVICE_VARIANT := v1
465 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
466 TPLINK_HWID := 0x25430001
467 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99 | \
468 append-metadata | check-size $$$$(IMAGE_SIZE)
469 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
470 SUPPORTED_DEVICES += tl-wr2543-v1
471 endef
472 TARGET_DEVICES += tplink_tl-wr2543-v1