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