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