ath79: add support for TP-Link Archer C60 v3
[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_TITLE := TP-Link Archer A7 v5
8 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
9 TPLINK_BOARD_ID := ARCHER-A7-V5
10 BOARDNAME := ARCHER-A7-V5
11 endef
12 TARGET_DEVICES += tplink_archer-a7-v5
13
14 define Device/tplink_archer-c2-v3
15 $(Device/tplink-safeloader-uimage)
16 ATH_SOC := qca9563
17 IMAGE_SIZE := 7808k
18 DEVICE_TITLE := TP-Link Archer C2 v3
19 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
20 TPLINK_BOARD_ID := ARCHER-C2-V3
21 endef
22 TARGET_DEVICES += tplink_archer-c2-v3
23
24 define Device/tplink_archer-c25-v1
25 $(Device/tplink-safeloader-uimage)
26 ATH_SOC := qca9561
27 IMAGE_SIZE := 7808k
28 DEVICE_TITLE := TP-Link Archer C25 v1
29 TPLINK_BOARD_ID := ARCHER-C25-V1
30 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
31 SUPPORTED_DEVICES += archer-c25-v1
32 endef
33 TARGET_DEVICES += tplink_archer-c25-v1
34
35 define Device/tplink_archer-c58-v1
36 $(Device/tplink-safeloader-uimage)
37 ATH_SOC := qca9561
38 IMAGE_SIZE := 7936k
39 DEVICE_TITLE := TP-Link Archer C58 v1
40 TPLINK_BOARD_ID := ARCHER-C58-V1
41 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9888-ct
42 SUPPORTED_DEVICES += archer-c58-v1
43 endef
44 TARGET_DEVICES += tplink_archer-c58-v1
45
46 define Device/tplink_archer-c59-v1
47 $(Device/tplink-safeloader-uimage)
48 ATH_SOC := qca9561
49 IMAGE_SIZE := 14528k
50 DEVICE_TITLE := TP-Link Archer C59 v1
51 TPLINK_BOARD_ID := ARCHER-C59-V1
52 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca9888-ct
53 SUPPORTED_DEVICES += archer-c59-v1
54 endef
55 TARGET_DEVICES += tplink_archer-c59-v1
56
57 define Device/tplink_archer-c60-v1
58 $(Device/tplink-safeloader-uimage)
59 ATH_SOC := qca9561
60 IMAGE_SIZE := 7936k
61 DEVICE_TITLE := TP-Link Archer C60 v1
62 TPLINK_BOARD_ID := ARCHER-C60-V1
63 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9888-ct
64 SUPPORTED_DEVICES += archer-c60-v1
65 endef
66 TARGET_DEVICES += tplink_archer-c60-v1
67
68 define Device/tplink_archer-c60-v2
69 $(Device/tplink-safeloader-uimage)
70 ATH_SOC := qca9561
71 IMAGE_SIZE := 7808k
72 DEVICE_TITLE := TP-Link Archer C60 v2
73 TPLINK_BOARD_ID := ARCHER-C60-V2
74 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9888-ct
75 SUPPORTED_DEVICES += archer-c60-v2
76 endef
77 TARGET_DEVICES += tplink_archer-c60-v2
78
79 define Device/tplink_archer-c60-v3
80 $(Device/tplink-safeloader-uimage)
81 ATH_SOC := qca9561
82 IMAGE_SIZE := 7808k
83 DEVICE_TITLE := TP-Link Archer C60 v3
84 TPLINK_BOARD_ID := ARCHER-C60-V3
85 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9888-ct
86 endef
87 TARGET_DEVICES += tplink_archer-c60-v3
88
89 define Device/tplink_archer-c6-v2
90 $(Device/tplink-safeloader-uimage)
91 ATH_SOC := qca9563
92 IMAGE_SIZE := 7808k
93 DEVICE_TITLE := TP-Link Archer C6 v2
94 TPLINK_BOARD_ID := ARCHER-C6-V2
95 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
96 endef
97 TARGET_DEVICES += tplink_archer-c6-v2
98
99 define Device/tplink_archer-c5-v1
100 $(Device/tplink-16mlzma)
101 ATH_SOC := qca9558
102 DEVICE_TITLE := TP-Link Archer C5 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_TITLE := TP-Link Archer C7 v1
113 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
114 TPLINK_HWID := 0x75000001
115 SUPPORTED_DEVICES += archer-c7
116 endef
117 TARGET_DEVICES += tplink_archer-c7-v1
118
119 define Device/tplink_archer-c7-v2
120 $(Device/tplink-16mlzma)
121 ATH_SOC := qca9558
122 DEVICE_TITLE := TP-Link Archer C7 v2
123 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
124 TPLINK_HWID := 0xc7000002
125 SUPPORTED_DEVICES += archer-c7
126 IMAGES += factory-us.bin factory-eu.bin
127 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
128 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
129 endef
130 TARGET_DEVICES += tplink_archer-c7-v2
131
132 define Device/tplink_archer-c7-v4
133 $(Device/tplink-safeloader-uimage)
134 ATH_SOC := qca9563
135 IMAGE_SIZE := 15104k
136 DEVICE_TITLE := TP-Link Archer C7 v4
137 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
138 TPLINK_BOARD_ID := ARCHER-C7-V4
139 BOARDNAME := ARCHER-C7-V4
140 SUPPORTED_DEVICES += archer-c7-v4
141 endef
142 TARGET_DEVICES += tplink_archer-c7-v4
143
144 define Device/tplink_archer-c7-v5
145 $(Device/tplink-safeloader-uimage)
146 ATH_SOC := qca9563
147 IMAGE_SIZE := 15360k
148 DEVICE_TITLE := TP-Link Archer C7 v5
149 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
150 TPLINK_BOARD_ID := ARCHER-C7-V5
151 BOARDNAME := ARCHER-C7-V5
152 SUPPORTED_DEVICES += archer-c7-v5
153 endef
154 TARGET_DEVICES += tplink_archer-c7-v5
155
156 define Device/tplink_cpe210-v2
157 $(Device/tplink-safeloader)
158 ATH_SOC := qca9533
159 IMAGE_SIZE := 7680k
160 DEVICE_TITLE := TP-Link CPE210 v2
161 TPLINK_BOARD_ID := CPE210V2
162 DEVICE_PACKAGES := rssileds
163 LOADER_TYPE := elf
164 SUPPORTED_DEVICES += cpe210-v2
165 endef
166 TARGET_DEVICES += tplink_cpe210-v2
167
168 define Device/tplink_cpe210-v3
169 $(Device/tplink-safeloader)
170 ATH_SOC := qca9533
171 IMAGE_SIZE := 7680k
172 DEVICE_TITLE := TP-Link CPE210 v3
173 DEVICE_PACKAGES := rssileds
174 TPLINK_BOARD_ID := CPE210V3
175 LOADER_TYPE := elf
176 SUPPORTED_DEVICES += cpe210-v3
177 endef
178 TARGET_DEVICES += tplink_cpe210-v3
179
180 define Device/tplink_cpe220-v3
181 $(Device/tplink-safeloader)
182 ATH_SOC := qca9533
183 IMAGE_SIZE := 7680k
184 DEVICE_TITLE := TP-Link CPE220 v3
185 DEVICE_PACKAGES := rssileds
186 TPLINK_BOARD_ID := CPE220V3
187 LOADER_TYPE := elf
188 endef
189 TARGET_DEVICES += tplink_cpe220-v3
190
191 define Device/tplink_archer-d50-v1
192 ATH_SOC := qca9531
193 DEVICE_TITLE := TP-Link Archer D50 v1
194 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
195 BOARDNAME := ARCHER-D50-V1
196 IMAGE_SIZE := 7808k
197 TPLINK_HWID := 0xC1200001
198 TPLINK_HWREV := 0x00000046
199 TPLINK_FLASHLAYOUT := 8Mqca
200 TPLINK_HWREVADD := 0x00000000
201 TPLINK_HVERSION := 3
202 KERNEL := kernel-bin | append-dtb | lzma
203 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | \
204 tplink-v2-header -s -V "ver. 1.0"
205 IMAGES := sysupgrade.bin
206 IMAGE/sysupgrade.bin := tplink-v2-image -s -V "ver. 2.0" | \
207 append-metadata | check-size $$$$(IMAGE_SIZE)
208 endef
209 TARGET_DEVICES += tplink_archer-d50-v1
210
211 define Device/tplink_re350k-v1
212 $(Device/tplink-safeloader)
213 ATH_SOC := qca9558
214 IMAGE_SIZE := 13760k
215 DEVICE_TITLE := TP-Link RE350K v1
216 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
217 TPLINK_BOARD_ID := RE350K-V1
218 TPLINK_HWID := 0x0
219 TPLINK_HWREV := 0
220 endef
221 TARGET_DEVICES += tplink_re350k-v1
222
223 define Device/tplink_re450-v2
224 $(Device/tplink-safeloader)
225 ATH_SOC := qca9563
226 IMAGE_SIZE := 6016k
227 DEVICE_TITLE := TP-Link RE450 v2
228 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
229 TPLINK_HWID := 0x0
230 TPLINK_HWREV := 0
231 TPLINK_BOARD_ID := RE450-V2
232 LOADER_TYPE := elf
233 endef
234 TARGET_DEVICES += tplink_re450-v2
235
236 define Device/tplink_tl-wdr3600-v1
237 $(Device/tplink-8mlzma)
238 ATH_SOC := ar9344
239 DEVICE_TITLE := TP-Link TL-WDR3600 v1
240 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
241 TPLINK_HWID := 0x36000001
242 SUPPORTED_DEVICES += tl-wdr4300
243 endef
244 TARGET_DEVICES += tplink_tl-wdr3600-v1
245
246 define Device/tplink_tl-wdr4300-v1
247 $(Device/tplink-8mlzma)
248 ATH_SOC := ar9344
249 DEVICE_TITLE := TP-Link TL-WDR4300 v1
250 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
251 TPLINK_HWID := 0x43000001
252 SUPPORTED_DEVICES += tl-wdr4300
253 endef
254 TARGET_DEVICES += tplink_tl-wdr4300-v1
255
256 define Device/tplink_tl-wdr4300-v1-il
257 $(Device/tplink-8mlzma)
258 ATH_SOC := ar9344
259 DEVICE_TITLE := TP-Link TL-WDR4300 v1 (IL)
260 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
261 TPLINK_HWID := 0x43008001
262 SUPPORTED_DEVICES += tl-wdr4300
263 endef
264 TARGET_DEVICES += tplink_tl-wdr4300-v1-il
265
266 define Device/tplink_tl-wdr4900-v2
267 $(Device/tplink-8mlzma)
268 ATH_SOC := qca9558
269 DEVICE_TITLE := TP-Link TL-WDR4900 v2
270 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
271 TPLINK_HWID := 0x49000002
272 endef
273 TARGET_DEVICES += tplink_tl-wdr4900-v2
274
275 define Device/tplink_tl-wr810n-v1
276 $(Device/tplink-8mlzma)
277 ATH_SOC := qca9531
278 DEVICE_TITLE := TP-Link TL-WR810N v1
279 TPLINK_HWID := 0x8100001
280 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
281 endef
282 TARGET_DEVICES += tplink_tl-wr810n-v1
283
284 define Device/tplink_tl-wr810n-v2
285 $(Device/tplink-8mlzma)
286 ATH_SOC := qca9533
287 DEVICE_TITLE := TP-Link TL-WR810N v2
288 TPLINK_HWID := 0x8100002
289 endef
290 TARGET_DEVICES += tplink_tl-wr810n-v2
291
292 define Device/tplink_tl-wr710n-v1
293 $(Device/tplink-8mlzma)
294 ATH_SOC := ar9331
295 DEVICE_TITLE := TP-Link TL-WR710N v1
296 DEVICE_PACKAGES := kmod-usb-core kmod-usb-chipidea2 kmod-usb-ledtrig-usbport
297 TPLINK_HWID := 0x07100001
298 SUPPORTED_DEVICES += tl-wr710n
299 endef
300 TARGET_DEVICES += tplink_tl-wr710n-v1
301
302 define Device/tplink_tl-wr842n-v1
303 $(Device/tplink-8m)
304 ATH_SOC := ar7241
305 DEVICE_TITLE := TP-Link TL-WR842N/ND v1
306 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
307 TPLINK_HWID := 0x8420001
308 endef
309 TARGET_DEVICES += tplink_tl-wr842n-v1
310
311 define Device/tplink_tl-wr842n-v2
312 $(Device/tplink-8mlzma)
313 ATH_SOC := ar9341
314 DEVICE_TITLE := TP-Link TL-WR842N/ND v2
315 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
316 TPLINK_HWID := 0x8420002
317 SUPPORTED_DEVICES += tl-wr842n-v2
318 endef
319 TARGET_DEVICES += tplink_tl-wr842n-v2
320
321 define Device/tplink_tl-wr842n-v3
322 $(Device/tplink-16mlzma)
323 ATH_SOC := qca9533
324 DEVICE_TITLE := TP-Link TL-WR842N v3
325 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
326 TPLINK_HWID := 0x8420003
327 SUPPORTED_DEVICES += tl-wr842n-v3
328 endef
329 TARGET_DEVICES += tplink_tl-wr842n-v3
330
331 define Device/tplink_tl-wr1043nd-v1
332 $(Device/tplink-8m)
333 ATH_SOC := ar9132
334 DEVICE_TITLE := TP-Link TL-WR1043N/ND v1
335 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
336 TPLINK_HWID := 0x10430001
337 SUPPORTED_DEVICES += tl-wr1043nd
338 endef
339 TARGET_DEVICES += tplink_tl-wr1043nd-v1
340
341 define Device/tplink_tl-wr1043nd-v2
342 $(Device/tplink-8mlzma)
343 ATH_SOC := qca9558
344 DEVICE_TITLE := TP-Link TL-WR1043N/ND v2
345 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
346 TPLINK_HWID := 0x10430002
347 SUPPORTED_DEVICES += tl-wr1043nd-v2
348 endef
349 TARGET_DEVICES += tplink_tl-wr1043nd-v2
350
351 define Device/tplink_tl-wr1043nd-v3
352 $(Device/tplink-8mlzma)
353 ATH_SOC := qca9558
354 DEVICE_TITLE := TP-Link TL-WR1043N/ND v3
355 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
356 TPLINK_HWID := 0x10430003
357 SUPPORTED_DEVICES += tl-wr1043nd-v2
358 endef
359 TARGET_DEVICES += tplink_tl-wr1043nd-v3
360
361 define Device/tplink_tl-wr1043nd-v4
362 $(Device/tplink-safeloader)
363 ATH_SOC := qca9563
364 IMAGE_SIZE := 15552k
365 DEVICE_TITLE := TP-Link TL-WR1043N/ND v4
366 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
367 TPLINK_HWID := 0x10430004
368 TPLINK_BOARD_ID := TLWR1043NDV4
369 SUPPORTED_DEVICES += tl-wr1043nd-v4
370 endef
371 TARGET_DEVICES += tplink_tl-wr1043nd-v4
372
373 define Device/tplink_tl-wr1043n-v5
374 $(Device/tplink-safeloader-uimage)
375 ATH_SOC := qca9563
376 IMAGE_SIZE := 15104k
377 DEVICE_TITLE := TP-Link TL-WR1043N v5
378 TPLINK_BOARD_ID := TLWR1043NV5
379 SUPPORTED_DEVICES += tl-wr1043n-v5
380 endef
381 TARGET_DEVICES += tplink_tl-wr1043n-v5
382
383 define Device/tplink_tl-wr2543-v1
384 $(Device/tplink-8mlzma)
385 ATH_SOC := ar7242
386 DEVICE_TITLE := TP-Link TL-WR2543N/ND v1
387 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
388 TPLINK_HWID := 0x25430001
389 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99 | \
390 append-metadata | check-size $$$$(IMAGE_SIZE)
391 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
392 SUPPORTED_DEVICES += tl-wr2543n
393 endef
394 TARGET_DEVICES += tplink_tl-wr2543-v1