ath79: add support for TP-Link Archer C6 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_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-c58-v1
16 $(Device/tplink-safeloader-uimage)
17 ATH_SOC := qca9561
18 IMAGE_SIZE := 7936k
19 DEVICE_TITLE := TP-LINK Archer C58 v1
20 TPLINK_BOARD_ID := ARCHER-C58-V1
21 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
22 SUPPORTED_DEVICES += archer-c58-v1
23 endef
24 TARGET_DEVICES += tplink_archer-c58-v1
25
26 define Device/tplink_archer-c59-v1
27 $(Device/tplink-safeloader-uimage)
28 ATH_SOC := qca9561
29 IMAGE_SIZE := 14528k
30 DEVICE_TITLE := TP-LINK Archer C59 v1
31 TPLINK_BOARD_ID := ARCHER-C59-V1
32 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca9888-ct
33 SUPPORTED_DEVICES += archer-c59-v1
34 endef
35 TARGET_DEVICES += tplink_archer-c59-v1
36
37 define Device/tplink_archer-c6-v2
38 $(Device/tplink-safeloader-uimage)
39 ATH_SOC := qca9563
40 IMAGE_SIZE := 7808k
41 DEVICE_TITLE := TP-LINK Archer C6 v2
42 TPLINK_BOARD_ID := ARCHER-C6-V2
43 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
44 endef
45 TARGET_DEVICES += tplink_archer-c6-v2
46
47 define Device/tplink_archer-c7-v1
48 $(Device/tplink-8mlzma)
49 ATH_SOC := qca9558
50 DEVICE_TITLE := TP-LINK Archer C7 v1
51 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
52 TPLINK_HWID := 0x75000001
53 endef
54 TARGET_DEVICES += tplink_archer-c7-v1
55
56 define Device/tplink_archer-c7-v2
57 $(Device/tplink-16mlzma)
58 ATH_SOC := qca9558
59 DEVICE_TITLE := TP-LINK Archer C7 v2
60 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
61 TPLINK_HWID := 0xc7000002
62 IMAGES += factory-us.bin factory-eu.bin
63 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
64 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
65 endef
66 TARGET_DEVICES += tplink_archer-c7-v2
67
68 define Device/tplink_archer-c7-v5
69 $(Device/tplink-safeloader-uimage)
70 ATH_SOC := qca9563
71 IMAGE_SIZE := 15360k
72 DEVICE_TITLE := TP-LINK Archer C7 v5
73 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
74 TPLINK_BOARD_ID := ARCHER-C7-V5
75 BOARDNAME := ARCHER-C7-V5
76 SUPPORTED_DEVICES += archer-c7-v5
77 endef
78 TARGET_DEVICES += tplink_archer-c7-v5
79
80 define Device/tplink_re450-v2
81 $(Device/tplink)
82 ATH_SOC := qca9563
83 IMAGE_SIZE := 6016k
84 DEVICE_TITLE := TP-LINK RE450 v2
85 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
86 TPLINK_HWID := 0x0
87 TPLINK_HWREV := 0
88 TPLINK_BOARD_ID := RE450-V2
89 LOADER_TYPE := elf
90 KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header -O
91 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
92 append-metadata | check-size $$$$(IMAGE_SIZE)
93 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
94 endef
95 TARGET_DEVICES += tplink_re450-v2
96
97 define Device/tplink_tl-wdr3600
98 $(Device/tplink-8mlzma)
99 ATH_SOC := ar9344
100 DEVICE_TITLE := TP-LINK TL-WDR3600
101 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
102 TPLINK_HWID := 0x36000001
103 SUPPORTED_DEVICES += tl-wdr3600
104 endef
105 TARGET_DEVICES += tplink_tl-wdr3600
106
107 define Device/tplink_tl-wdr4300
108 $(Device/tplink-8mlzma)
109 ATH_SOC := ar9344
110 DEVICE_TITLE := TP-LINK TL-WDR4300
111 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
112 TPLINK_HWID := 0x43000001
113 SUPPORTED_DEVICES += tl-wdr4300
114 endef
115 TARGET_DEVICES += tplink_tl-wdr4300
116
117 define Device/tplink_tl-wdr4900-v2
118 $(Device/tplink-8mlzma)
119 ATH_SOC := qca9558
120 DEVICE_TITLE := TP-LINK TL-WDR4900 v2
121 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
122 TPLINK_HWID := 0x49000002
123 endef
124 TARGET_DEVICES += tplink_tl-wdr4900-v2
125
126 define Device/tplink_tl-wr1043nd-v1
127 $(Device/tplink-8m)
128 ATH_SOC := ar9132
129 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
130 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
131 TPLINK_HWID := 0x10430001
132 SUPPORTED_DEVICES += tl-wr1043nd
133 endef
134 TARGET_DEVICES += tplink_tl-wr1043nd-v1
135
136 define Device/tplink_tl-wr810n-v1
137 $(Device/tplink-8mlzma)
138 ATH_SOC := qca9531
139 DEVICE_TITLE := TP-LINK TL-WR810N v1
140 TPLINK_HWID := 0x8100001
141 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
142 endef
143 TARGET_DEVICES += tplink_tl-wr810n-v1
144
145 define Device/tplink_tl-wr810n-v2
146 $(Device/tplink-8mlzma)
147 ATH_SOC := qca9533
148 DEVICE_TITLE := TP-LINK TL-WR810N v2
149 TPLINK_HWID := 0x8100002
150 endef
151 TARGET_DEVICES += tplink_tl-wr810n-v2
152
153 define Device/tplink_tl-wr842n-v1
154 $(Device/tplink-8m)
155 ATH_SOC := ar7241
156 DEVICE_TITLE := TP-LINK TL-WR842N/ND v1
157 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
158 TPLINK_HWID := 0x8420001
159 endef
160 TARGET_DEVICES += tplink_tl-wr842n-v1
161
162 define Device/tplink_tl-wr842n-v2
163 $(Device/tplink-8mlzma)
164 ATH_SOC := ar9341
165 DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
166 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
167 TPLINK_HWID := 0x8420002
168 SUPPORTED_DEVICES += tl-wr842n-v2
169 endef
170 TARGET_DEVICES += tplink_tl-wr842n-v2
171
172 define Device/tplink_tl-wr1043nd-v2
173 $(Device/tplink-8mlzma)
174 ATH_SOC := qca9558
175 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
176 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
177 TPLINK_HWID := 0x10430002
178 SUPPORTED_DEVICES += tl-wr1043nd-v2
179 endef
180 TARGET_DEVICES += tplink_tl-wr1043nd-v2
181
182 define Device/tplink_tl-wr1043nd-v3
183 $(Device/tplink-8mlzma)
184 ATH_SOC := qca9558
185 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
186 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
187 TPLINK_HWID := 0x10430003
188 SUPPORTED_DEVICES += tl-wr1043nd-v3
189 endef
190 TARGET_DEVICES += tplink_tl-wr1043nd-v3
191
192 define Device/tplink_tl-wr1043nd-v4
193 $(Device/tplink)
194 ATH_SOC := qca9563
195 IMAGE_SIZE := 15552k
196 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
197 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
198 TPLINK_HWID := 0x10430004
199 TPLINK_BOARD_ID := TLWR1043NDV4
200 KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header -O
201 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
202 append-metadata | check-size $$$$(IMAGE_SIZE)
203 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
204 SUPPORTED_DEVICES += tl-wr1043nd-v4
205 endef
206 TARGET_DEVICES += tplink_tl-wr1043nd-v4
207
208 define Device/tplink_tl-wr2543-v1
209 $(Device/tplink-8mlzma)
210 ATH_SOC := ar7242
211 DEVICE_TITLE := TP-LINK TL-WR2543N/ND v1
212 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
213 TPLINK_HWID := 0x25430001
214 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99 | \
215 append-metadata | check-size $$$$(IMAGE_SIZE)
216 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
217 SUPPORTED_DEVICES += tl-wr2543-v1
218 endef
219 TARGET_DEVICES += tplink_tl-wr2543-v1