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