bcm63xx: switch to Kernel 5.15 by default
[openwrt/staging/noltari.git] / target / linux / bcm63xx / patches-5.10 / 516-board-bcm6358.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -9,6 +9,7 @@
4 #include <linux/init.h>
5 #include <linux/kernel.h>
6 #include <linux/string.h>
7 +#include <linux/pci_ids.h>
8 #include <asm/addrspace.h>
9 #include <bcm63xx_board.h>
10 #include <bcm63xx_cpu.h>
11 @@ -1601,6 +1602,88 @@ static struct board_info __initdata boar
12 },
13 };
14
15 +static struct board_info __initdata board_CPVA642 = {
16 + .name = "CPVA642",
17 + .expected_cpu_id = 0x6358,
18 +
19 + .has_pci = 1,
20 + .has_ohci0 = 1,
21 + .has_ehci0 = 1,
22 +
23 + .has_enet1 = 1,
24 + .enet1 = {
25 + .has_phy = 1,
26 + .phy_id = 0,
27 + .force_speed_100 = 1,
28 + .force_duplex_full = 1,
29 + },
30 +};
31 +
32 +static struct board_info __initdata board_ct6373_1 = {
33 + .name = "CT6373-1",
34 + .expected_cpu_id = 0x6358,
35 +
36 + .has_pci = 1,
37 + .has_ohci0 = 1,
38 + .has_ehci0 = 1,
39 +
40 + .has_enet1 = 1,
41 + .enet1 = {
42 + .has_phy = 1,
43 + .phy_id = 0,
44 + .force_speed_100 = 1,
45 + .force_duplex_full = 1,
46 + },
47 +
48 + .use_fallback_sprom = 1,
49 + .fallback_sprom = {
50 + .type = SPROM_BCM4318,
51 + .pci_bus = 0,
52 + .pci_dev = 1,
53 + },
54 +};
55 +
56 +/* D-Link DSL-274xB revison C2/C3 */
57 +static struct board_info __initdata board_dsl_274xb_rev_c = {
58 + .name = "AW4139",
59 + .expected_cpu_id = 0x6358,
60 +
61 + .has_pci = 1,
62 +
63 + .has_enet1 = 1,
64 + .enet1 = {
65 + .has_phy = 1,
66 + .phy_id = 0,
67 + .force_speed_100 = 1,
68 + .force_duplex_full = 1,
69 + },
70 +};
71 +
72 +/* D-Link DVA-G3810BN/TL */
73 +static struct board_info __initdata board_DVAG3810BN = {
74 + .name = "DVAG3810BN",
75 + .expected_cpu_id = 0x6358,
76 +
77 + .has_pccard = 1,
78 + .has_pci = 1,
79 + .has_ohci0 = 1,
80 + .has_ehci0 = 1,
81 +
82 + .has_enet0 = 1,
83 + .enet0 = {
84 + .has_phy = 1,
85 + .use_internal_phy = 1,
86 + },
87 +
88 + .has_enet1 = 1,
89 + .enet1 = {
90 + .has_phy = 1,
91 + .phy_id = 0,
92 + .force_speed_100 = 1,
93 + .force_duplex_full = 1,
94 + },
95 +};
96 +
97 static struct board_info __initdata board_DWVS0 = {
98 .name = "DWV-S0",
99 .expected_cpu_id = 0x6358,
100 @@ -1624,6 +1707,238 @@ static struct board_info __initdata boar
101 .force_duplex_full = 1,
102 },
103 };
104 +
105 +static struct board_info __initdata board_homehub2a = {
106 + .name = "HOMEHUB2A",
107 + .expected_cpu_id = 0x6358,
108 +
109 + .has_pci = 1,
110 + .has_ohci0 = 1,
111 + .has_ehci0 = 1,
112 + .num_usbh_ports = 2,
113 +
114 + .has_enet1 = 1,
115 + .enet1 = {
116 + .has_phy = 1,
117 + .phy_id = 0,
118 + .force_speed_100 = 1,
119 + .force_duplex_full = 1,
120 + },
121 +
122 + .use_fallback_sprom = 1,
123 + .fallback_sprom = {
124 + .type = SPROM_BCM4322,
125 + .pci_bus = 0,
126 + .pci_dev = 1,
127 + },
128 +};
129 +
130 +static struct board_info __initdata board_HW520 = {
131 + .name = "HW6358GW_B",
132 + .expected_cpu_id = 0x6358,
133 +
134 + .has_pci = 1,
135 + .has_ohci0 = 1,
136 + .has_ehci0 = 1,
137 +
138 + .has_enet0 = 1,
139 + .enet0 = {
140 + .has_phy = 1,
141 + .use_internal_phy = 1,
142 + },
143 +
144 + .has_enet1 = 1,
145 + .enet1 = {
146 + .has_phy = 1,
147 + .phy_id = 0,
148 + .force_speed_100 = 1,
149 + .force_duplex_full = 1,
150 + },
151 +
152 + .use_fallback_sprom = 1,
153 + .fallback_sprom = {
154 + .type = SPROM_BCM4318,
155 + .pci_bus = 0,
156 + .pci_dev = 1,
157 + },
158 +};
159 +
160 +static struct board_info __initdata board_HW553 = {
161 + .name = "HW553",
162 + .expected_cpu_id = 0x6358,
163 +
164 + .has_pci = 1,
165 + .has_ohci0 = 1,
166 + .has_ehci0 = 1,
167 + .num_usbh_ports = 2,
168 +
169 + .has_enet1 = 1,
170 + .enet1 = {
171 + .has_phy = 1,
172 + .phy_id = 0,
173 + .force_speed_100 = 1,
174 + .force_duplex_full = 1,
175 + },
176 +
177 + .use_fallback_sprom = 1,
178 + .fallback_sprom = {
179 + .type = SPROM_BCM4318,
180 + .pci_bus = 0,
181 + .pci_dev = 1,
182 + },
183 +};
184 +
185 +static struct board_info __initdata board_HW556_A = {
186 + .name = "HW556_A",
187 + .expected_cpu_id = 0x6358,
188 +
189 + .has_pci = 1,
190 + .has_ohci0 = 1,
191 + .has_ehci0 = 1,
192 + .num_usbh_ports = 2,
193 +
194 + .has_caldata = 1,
195 + .caldata = {
196 + {
197 + .vendor = PCI_VENDOR_ID_ATHEROS,
198 + .caldata_offset = 0xf7e000,
199 + .slot = 1,
200 + .endian_check = 1,
201 + .led_pin = 2,
202 + .led_active_high = 1,
203 + },
204 + },
205 +
206 + .has_enet1 = 1,
207 + .enet1 = {
208 + .has_phy = 1,
209 + .phy_id = 0,
210 + .force_speed_100 = 1,
211 + .force_duplex_full = 1,
212 + },
213 +};
214 +
215 +static struct board_info __initdata board_HW556_B = {
216 + .name = "HW556_B",
217 + .expected_cpu_id = 0x6358,
218 +
219 + .has_pci = 1,
220 + .has_ohci0 = 1,
221 + .has_ehci0 = 1,
222 + .num_usbh_ports = 2,
223 +
224 + .has_caldata = 1,
225 + .caldata = {
226 + {
227 + .vendor = PCI_VENDOR_ID_ATHEROS,
228 + .caldata_offset = 0xefe000,
229 + .slot = 1,
230 + .endian_check = 1,
231 + .led_pin = 2,
232 + .led_active_high = 1,
233 + },
234 + },
235 +
236 + .has_enet1 = 1,
237 + .enet1 = {
238 + .has_phy = 1,
239 + .phy_id = 0,
240 + .force_speed_100 = 1,
241 + .force_duplex_full = 1,
242 + },
243 +};
244 +
245 +static struct board_info __initdata board_HW556_C = {
246 + .name = "HW556_C",
247 + .expected_cpu_id = 0x6358,
248 +
249 + .has_pci = 1,
250 + .has_ohci0 = 1,
251 + .has_ehci0 = 1,
252 + .num_usbh_ports = 2,
253 +
254 + .has_caldata = 1,
255 + .caldata = {
256 + {
257 + .vendor = PCI_VENDOR_ID_RALINK,
258 + .caldata_offset = 0xeffe00,
259 + .slot = 1,
260 + .eeprom = "rt2x00.eeprom",
261 + },
262 + },
263 +
264 + .has_enet1 = 1,
265 + .enet1 = {
266 + .has_phy = 1,
267 + .phy_id = 0,
268 + .force_speed_100 = 1,
269 + .force_duplex_full = 1,
270 + },
271 +};
272 +
273 +static struct board_info __initdata board_nb4_ser_r0 = {
274 + .name = "NB4-SER-r0",
275 + .expected_cpu_id = 0x6358,
276 +
277 + .has_pccard = 1,
278 + .has_pci = 1,
279 + .has_ohci0 = 1,
280 + .has_ehci0 = 1,
281 + .num_usbh_ports = 2,
282 +
283 + .has_enet0 = 1,
284 + .enet0 = {
285 + .has_phy = 1,
286 + .use_internal_phy = 1,
287 + },
288 +
289 + .has_enet1 = 1,
290 + .enet1 = {
291 + .has_phy = 1,
292 + .phy_id = 0,
293 + .force_speed_100 = 1,
294 + .force_duplex_full = 1,
295 + },
296 +};
297 +
298 +static struct board_info __initdata board_nb4_fxc_r1 = {
299 + .name = "NB4-FXC-r1",
300 + .expected_cpu_id = 0x6358,
301 +
302 + .has_pccard = 1,
303 + .has_pci = 1,
304 + .has_ohci0 = 1,
305 + .has_ehci0 = 1,
306 + .num_usbh_ports = 2,
307 +
308 + .has_enet0 = 1,
309 + .enet0 = {
310 + .has_phy = 1,
311 + .use_internal_phy = 1,
312 + },
313 +
314 + .has_enet1 = 1,
315 + .enet1 = {
316 + .has_phy = 1,
317 + .phy_id = 0,
318 + .force_speed_100 = 1,
319 + .force_duplex_full = 1,
320 + },
321 +};
322 +
323 + /* T-Home Speedport W 303V Typ B */
324 +static struct board_info __initdata board_spw303v = {
325 + .name = "96358-502V",
326 + .expected_cpu_id = 0x6358,
327 +
328 + .has_pci = 1,
329 +
330 + .has_enet0 = 1,
331 + .enet0 = {
332 + .has_phy = 1,
333 + .use_internal_phy = 1,
334 + },
335 +};
336 #endif /* CONFIG_BCM63XX_CPU_6358 */
337
338 /*
339 @@ -1694,7 +2009,20 @@ static const struct board_info __initcon
340 &board_96358vw,
341 &board_96358vw2,
342 &board_AGPFS0,
343 + &board_CPVA642,
344 + &board_ct6373_1,
345 + &board_dsl_274xb_rev_c,
346 + &board_DVAG3810BN,
347 &board_DWVS0,
348 + &board_homehub2a,
349 + &board_HW520,
350 + &board_HW553,
351 + &board_HW556_A,
352 + &board_HW556_B,
353 + &board_HW556_C,
354 + &board_nb4_ser_r0,
355 + &board_nb4_fxc_r1,
356 + &board_spw303v,
357 #endif /* CONFIG_BCM63XX_CPU_6358 */
358 };
359
360 @@ -1771,11 +2099,24 @@ static struct of_device_id const bcm963x
361 { .compatible = "alcatel,rg100a", .data = &board_96358vw2, },
362 { .compatible = "brcm,bcm96358vw", .data = &board_96358vw, },
363 { .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
364 + { .compatible = "bt,home-hub-2-a", .data = &board_homehub2a, },
365 + { .compatible = "comtrend,ct-6373", .data = &board_ct6373_1, },
366 { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
367 + { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
368 + { .compatible = "d-link,dva-g3810bn-tl", .data = &board_DVAG3810BN, },
369 + { .compatible = "huawei,echolife-hg520v", .data = &board_HW520, },
370 + { .compatible = "huawei,echolife-hg553", .data = &board_HW553, },
371 + { .compatible = "huawei,echolife-hg556a-a", .data = &board_HW556_A, },
372 + { .compatible = "huawei,echolife-hg556a-b", .data = &board_HW556_B, },
373 + { .compatible = "huawei,echolife-hg556a-c", .data = &board_HW556_C, },
374 { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
375 { .compatible = "pirelli,a226m", .data = &board_DWVS0, },
376 { .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },
377 { .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
378 + { .compatible = "sfr,neufbox-4-sercomm-r0", .data = &board_nb4_ser_r0, },
379 + { .compatible = "sfr,neufbox-4-foxconn-r1", .data = &board_nb4_fxc_r1, },
380 + { .compatible = "t-com,speedport-w-303v", .data = &board_spw303v, },
381 + { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
382 #endif /* CONFIG_BCM63XX_CPU_6358 */
383 #ifdef CONFIG_BCM63XX_CPU_6362
384 #endif /* CONFIG_BCM63XX_CPU_6362 */