bcm53xx: disable unused switch ports in downstream patch
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-6.1 / 304-ARM-dts-BCM5301X-Specify-switch-ports-for-remaining-.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Subject: [PATCH] ARM: dts: BCM5301X: Specify switch ports for remaining
3 devices
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
8 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
9 ---
10
11 --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
12 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
13 @@ -92,3 +92,41 @@
14 &usb3_phy {
15 status = "okay";
16 };
17 +
18 +&srab {
19 + status = "okay";
20 +
21 + ports {
22 + port@0 {
23 + label = "lan1";
24 + };
25 +
26 + port@1 {
27 + label = "lan2";
28 + };
29 +
30 + port@2 {
31 + label = "lan3";
32 + };
33 +
34 + port@3 {
35 + label = "lan4";
36 + };
37 +
38 + port@4 {
39 + label = "wan";
40 + };
41 +
42 + port@5 {
43 + label = "cpu";
44 + };
45 +
46 + port@7 {
47 + status = "disabled";
48 + };
49 +
50 + port@8 {
51 + status = "disabled";
52 + };
53 + };
54 +};
55 --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
56 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
57 @@ -83,3 +83,41 @@
58 &usb3_phy {
59 status = "okay";
60 };
61 +
62 +&srab {
63 + status = "okay";
64 +
65 + ports {
66 + port@0 {
67 + label = "wan";
68 + };
69 +
70 + port@1 {
71 + label = "lan1";
72 + };
73 +
74 + port@2 {
75 + label = "lan2";
76 + };
77 +
78 + port@3 {
79 + label = "lan3";
80 + };
81 +
82 + port@4 {
83 + label = "lan4";
84 + };
85 +
86 + port@5 {
87 + label = "cpu";
88 + };
89 +
90 + port@7 {
91 + status = "disabled";
92 + };
93 +
94 + port@8 {
95 + status = "disabled";
96 + };
97 + };
98 +};
99 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
100 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
101 @@ -149,3 +149,41 @@
102 &usb3_phy {
103 status = "okay";
104 };
105 +
106 +&srab {
107 + status = "okay";
108 +
109 + ports {
110 + port@0 {
111 + label = "lan1";
112 + };
113 +
114 + port@1 {
115 + label = "lan2";
116 + };
117 +
118 + port@2 {
119 + label = "lan3";
120 + };
121 +
122 + port@3 {
123 + label = "lan4";
124 + };
125 +
126 + port@4 {
127 + label = "wan";
128 + };
129 +
130 + port@5 {
131 + label = "cpu";
132 + };
133 +
134 + port@7 {
135 + status = "disabled";
136 + };
137 +
138 + port@8 {
139 + status = "disabled";
140 + };
141 + };
142 +};
143 --- a/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
144 +++ b/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
145 @@ -46,3 +46,41 @@
146 &usb3_phy {
147 status = "okay";
148 };
149 +
150 +&srab {
151 + status = "okay";
152 +
153 + ports {
154 + port@0 {
155 + label = "lan1";
156 + };
157 +
158 + port@1 {
159 + label = "lan2";
160 + };
161 +
162 + port@2 {
163 + label = "lan3";
164 + };
165 +
166 + port@3 {
167 + label = "lan4";
168 + };
169 +
170 + port@4 {
171 + label = "wan";
172 + };
173 +
174 + port@5 {
175 + label = "cpu";
176 + };
177 +
178 + port@7 {
179 + status = "disabled";
180 + };
181 +
182 + port@8 {
183 + status = "disabled";
184 + };
185 + };
186 +};
187 --- a/arch/arm/boot/dts/bcm4708-linksys-ea6500-v2.dts
188 +++ b/arch/arm/boot/dts/bcm4708-linksys-ea6500-v2.dts
189 @@ -43,3 +43,41 @@
190 &usb3_phy {
191 status = "okay";
192 };
193 +
194 +&srab {
195 + status = "okay";
196 +
197 + ports {
198 + port@0 {
199 + label = "lan1";
200 + };
201 +
202 + port@1 {
203 + label = "lan2";
204 + };
205 +
206 + port@2 {
207 + label = "lan3";
208 + };
209 +
210 + port@3 {
211 + label = "lan4";
212 + };
213 +
214 + port@4 {
215 + label = "wan";
216 + };
217 +
218 + port@5 {
219 + label = "cpu";
220 + };
221 +
222 + port@7 {
223 + status = "disabled";
224 + };
225 +
226 + port@8 {
227 + status = "disabled";
228 + };
229 + };
230 +};
231 --- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
232 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
233 @@ -86,3 +86,41 @@
234 &usb3_phy {
235 status = "okay";
236 };
237 +
238 +&srab {
239 + status = "okay";
240 +
241 + ports {
242 + port@0 {
243 + label = "lan1";
244 + };
245 +
246 + port@1 {
247 + label = "lan2";
248 + };
249 +
250 + port@2 {
251 + label = "lan3";
252 + };
253 +
254 + port@3 {
255 + label = "lan4";
256 + };
257 +
258 + port@4 {
259 + label = "wan";
260 + };
261 +
262 + port@5 {
263 + label = "cpu";
264 + };
265 +
266 + port@7 {
267 + status = "disabled";
268 + };
269 +
270 + port@8 {
271 + status = "disabled";
272 + };
273 + };
274 +};
275 --- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
276 +++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
277 @@ -77,3 +77,41 @@
278 &usb3_phy {
279 status = "okay";
280 };
281 +
282 +&srab {
283 + status = "okay";
284 +
285 + ports {
286 + port@0 {
287 + label = "wan";
288 + };
289 +
290 + port@1 {
291 + label = "lan1";
292 + };
293 +
294 + port@2 {
295 + label = "lan2";
296 + };
297 +
298 + port@3 {
299 + label = "lan3";
300 + };
301 +
302 + port@4 {
303 + label = "lan4";
304 + };
305 +
306 + port@5 {
307 + label = "cpu";
308 + };
309 +
310 + port@7 {
311 + status = "disabled";
312 + };
313 +
314 + port@8 {
315 + status = "disabled";
316 + };
317 + };
318 +};
319 --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
320 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
321 @@ -77,6 +77,40 @@
322 status = "okay";
323 };
324
325 +&srab {
326 + status = "okay";
327 +
328 + ports {
329 + port@0 {
330 + label = "wan";
331 + };
332 +
333 + port@1 {
334 + label = "lan1";
335 + };
336 +
337 + port@2 {
338 + label = "lan2";
339 + };
340 +
341 + port@3 {
342 + label = "lan3";
343 + };
344 +
345 + port@5 {
346 + status = "disabled";
347 + };
348 +
349 + port@7 {
350 + label = "cpu";
351 + };
352 +
353 + port@8 {
354 + status = "disabled";
355 + };
356 + };
357 +};
358 +
359 &nandcs {
360 partitions {
361 compatible = "fixed-partitions";
362 --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
363 +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
364 @@ -130,3 +130,41 @@
365 &usb3_phy {
366 status = "okay";
367 };
368 +
369 +&srab {
370 + status = "okay";
371 +
372 + ports {
373 + port@0 {
374 + label = "lan1";
375 + };
376 +
377 + port@1 {
378 + label = "lan2";
379 + };
380 +
381 + port@2 {
382 + label = "lan3";
383 + };
384 +
385 + port@3 {
386 + label = "lan4";
387 + };
388 +
389 + port@4 {
390 + label = "wan";
391 + };
392 +
393 + port@5 {
394 + label = "cpu";
395 + };
396 +
397 + port@7 {
398 + status = "disabled";
399 + };
400 +
401 + port@8 {
402 + status = "disabled";
403 + };
404 + };
405 +};
406 --- a/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
407 +++ b/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
408 @@ -47,3 +47,41 @@
409 &usb3_phy {
410 status = "okay";
411 };
412 +
413 +&srab {
414 + status = "okay";
415 +
416 + ports {
417 + port@0 {
418 + label = "lan1";
419 + };
420 +
421 + port@1 {
422 + label = "lan2";
423 + };
424 +
425 + port@2 {
426 + label = "lan3";
427 + };
428 +
429 + port@3 {
430 + label = "lan4";
431 + };
432 +
433 + port@4 {
434 + label = "wan";
435 + };
436 +
437 + port@5 {
438 + status = "disabled";
439 + };
440 +
441 + port@7 {
442 + status = "disabled";
443 + };
444 +
445 + port@8 {
446 + label = "cpu";
447 + };
448 + };
449 +};
450 --- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
451 +++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
452 @@ -104,3 +104,41 @@
453 &usb3_phy {
454 status = "okay";
455 };
456 +
457 +&srab {
458 + status = "okay";
459 +
460 + ports {
461 + port@0 {
462 + label = "wan";
463 + };
464 +
465 + port@1 {
466 + label = "lan1";
467 + };
468 +
469 + port@2 {
470 + label = "lan2";
471 + };
472 +
473 + port@3 {
474 + label = "lan3";
475 + };
476 +
477 + port@4 {
478 + label = "lan4";
479 + };
480 +
481 + port@5 {
482 + label = "cpu";
483 + };
484 +
485 + port@7 {
486 + status = "disabled";
487 + };
488 +
489 + port@8 {
490 + status = "disabled";
491 + };
492 + };
493 +};
494 --- a/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
495 +++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
496 @@ -94,3 +94,41 @@
497 &usb3_phy {
498 status = "okay";
499 };
500 +
501 +&srab {
502 + status = "okay";
503 +
504 + ports {
505 + port@0 {
506 + label = "wan";
507 + };
508 +
509 + port@1 {
510 + label = "lan1";
511 + };
512 +
513 + port@2 {
514 + label = "lan2";
515 + };
516 +
517 + port@3 {
518 + label = "lan3";
519 + };
520 +
521 + port@4 {
522 + label = "lan4";
523 + };
524 +
525 + port@5 {
526 + status = "disabled";
527 + };
528 +
529 + port@7 {
530 + status = "disabled";
531 + };
532 +
533 + port@8 {
534 + label = "cpu";
535 + };
536 + };
537 +};
538 --- a/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
539 +++ b/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
540 @@ -38,6 +38,40 @@
541 status = "okay";
542 };
543
544 +&srab {
545 + status = "okay";
546 +
547 + ports {
548 + port@0 {
549 + label = "lan1";
550 + };
551 +
552 + port@1 {
553 + label = "lan2";
554 + };
555 +
556 + port@2 {
557 + label = "lan3";
558 + };
559 +
560 + port@3 {
561 + label = "wan";
562 + };
563 +
564 + port@5 {
565 + label = "cpu";
566 + };
567 +
568 + port@7 {
569 + status = "disabled";
570 + };
571 +
572 + port@8 {
573 + status = "disabled";
574 + };
575 + };
576 +};
577 +
578 &nandcs {
579 partitions {
580 compatible = "fixed-partitions";
581 --- a/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
582 +++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
583 @@ -91,6 +91,44 @@
584 };
585 };
586
587 +&srab {
588 + status = "okay";
589 +
590 + ports {
591 + port@0 {
592 + label = "wan";
593 + };
594 +
595 + port@1 {
596 + label = "lan1";
597 + };
598 +
599 + port@2 {
600 + label = "lan2";
601 + };
602 +
603 + port@3 {
604 + label = "lan3";
605 + };
606 +
607 + port@4 {
608 + label = "lan4";
609 + };
610 +
611 + port@5 {
612 + label = "cpu";
613 + };
614 +
615 + port@7 {
616 + status = "disabled";
617 + };
618 +
619 + port@8 {
620 + status = "disabled";
621 + };
622 + };
623 +};
624 +
625 &spi_nor {
626 status = "okay";
627
628 --- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
629 +++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
630 @@ -100,6 +100,44 @@
631 vcc-gpio = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
632 };
633
634 +&srab {
635 + status = "okay";
636 +
637 + ports {
638 + port@0 {
639 + label = "wan";
640 + };
641 +
642 + port@1 {
643 + label = "lan1";
644 + };
645 +
646 + port@2 {
647 + label = "lan2";
648 + };
649 +
650 + port@3 {
651 + label = "lan3";
652 + };
653 +
654 + port@4 {
655 + label = "lan4";
656 + };
657 +
658 + port@5 {
659 + label = "cpu";
660 + };
661 +
662 + port@7 {
663 + status = "disabled";
664 + };
665 +
666 + port@8 {
667 + status = "disabled";
668 + };
669 + };
670 +};
671 +
672 &spi_nor {
673 status = "okay";
674
675 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
676 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
677 @@ -107,3 +107,42 @@
678 &usb3_phy {
679 status = "okay";
680 };
681 +
682 +&srab {
683 + status = "okay";
684 +
685 + ports {
686 + port@0 {
687 + label = "lan1";
688 + };
689 +
690 + port@1 {
691 + label = "lan2";
692 + };
693 +
694 + port@2 {
695 + label = "lan3";
696 + };
697 +
698 + port@3 {
699 + label = "lan4";
700 + };
701 +
702 + port@4 {
703 + label = "wan";
704 + };
705 +
706 + port@5 {
707 + label = "cpu";
708 + };
709 +
710 + port@7 {
711 + status = "disabled";
712 + };
713 +
714 + port@8 {
715 + status = "disabled";
716 + };
717 + };
718 +};
719 +