1 From ba4aebce23b2affb810b8a60eae853674d2cded2 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Mon, 5 Jun 2023 15:21:09 +0200
4 Subject: [PATCH] ARM: dts: BCM5301X: Describe switch ports in the main DTS
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 All Northstar SoCs have BCM5301x switches (BCM53011, BCM53012) with 8
10 ports (0-8 without 6). By design 3 switch ports (5, 7 and 8) are
11 hardwired to 3 on-SoC Ethernet interfaces. Switch port 8 requires
14 It seems that global Northstar .dtsi file is the best place to describe
15 those hw details. Only device specific bits (like labels) should go to
18 This seems to fit well with a tiny exception of Asus RT-AC88U which
19 somehow was designed to have switch 5 connected to an extra switch. This
20 case was simply handled with a /delete-property/.
22 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
23 Reviewed-by: Christian Lamparter <chunkeey@gmail.com> (MR32+MR26)
24 Link: https://lore.kernel.org/r/20230605132109.7933-1-zajec5@gmail.com
25 Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
27 arch/arm/boot/dts/bcm-ns.dtsi | 41 ++++++++++++++++++-
28 .../bcm4708-buffalo-wzr-1166dhp-common.dtsi | 7 ----
29 arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts | 4 --
30 arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts | 3 --
31 arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 7 ----
32 arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 7 ----
33 .../boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 7 ----
34 arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts | 3 --
35 arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts | 7 ----
36 arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 12 ------
37 arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 17 +-------
38 arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 12 ------
39 arch/arm/boot/dts/bcm47094-dlink-dir-890l.dts | 12 ------
40 .../boot/dts/bcm47094-linksys-panamera.dts | 34 ++++-----------
41 arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts | 7 ----
42 arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts | 4 --
43 arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts | 7 ----
44 arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts | 3 --
45 arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 7 ----
46 .../boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 7 ----
47 arch/arm/boot/dts/bcm53015-meraki-mr26.dts | 3 --
48 arch/arm/boot/dts/bcm53016-meraki-mr32.dts | 3 --
49 22 files changed, 51 insertions(+), 163 deletions(-)
51 --- a/arch/arm/boot/dts/bcm-ns.dtsi
52 +++ b/arch/arm/boot/dts/bcm-ns.dtsi
57 - /* ports are defined in board DTS */
84 + ethernet = <&gmac0>;
89 + ethernet = <&gmac1>;
94 + ethernet = <&gmac2>;
104 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp-common.dtsi
105 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1166dhp-common.dtsi
106 @@ -159,34 +159,27 @@
137 - ethernet = <&gmac0>;
141 --- a/arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts
142 +++ b/arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts
159 - ethernet = <&gmac0>;
163 --- a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
164 +++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
176 - ethernet = <&gmac0>;
180 --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
181 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
182 @@ -100,34 +100,27 @@
213 - ethernet = <&gmac0>;
217 --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
218 +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
219 @@ -123,34 +123,27 @@
250 - ethernet = <&gmac0>;
254 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
255 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
256 @@ -123,34 +123,27 @@
287 - ethernet = <&gmac0>;
291 --- a/arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts
292 +++ b/arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts
304 - ethernet = <&gmac0>;
308 --- a/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
309 +++ b/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
310 @@ -124,36 +124,29 @@
336 nvmem-cells = <&et0macaddr 5>;
337 nvmem-cell-names = "mac-address";
343 - ethernet = <&gmac0>;
347 --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
348 +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
349 @@ -191,39 +191,27 @@
380 - ethernet = <&gmac2>;
389 --- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
390 +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
391 @@ -181,32 +181,28 @@
421 + /delete-property/ethernet;
431 - ethernet = <&gmac1>;
440 - ethernet = <&gmac2>;
450 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
451 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
452 @@ -124,39 +124,27 @@
483 - ethernet = <&gmac2>;
492 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-890l.dts
493 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-890l.dts
494 @@ -172,40 +172,28 @@
525 - ethernet = <&gmac2>;
535 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
536 +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
537 @@ -207,29 +207,32 @@
572 - ethernet = <&gmac0>;
581 - ethernet = <&gmac1>;
590 - ethernet = <&gmac2>;
610 --- a/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
611 +++ b/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
618 nvmem-cells = <&et0macaddr 1>;
619 nvmem-cell-names = "mac-address";
645 - ethernet = <&gmac0>;
649 --- a/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
650 +++ b/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
667 - ethernet = <&gmac0>;
671 --- a/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
672 +++ b/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
679 nvmem-cells = <&et0macaddr 1>;
680 nvmem-cell-names = "mac-address";
706 - ethernet = <&gmac0>;
710 --- a/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
711 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
723 - ethernet = <&gmac0>;
727 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
728 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
729 @@ -123,36 +123,29 @@
755 nvmem-cells = <&et0macaddr 5>;
756 nvmem-cell-names = "mac-address";
762 - ethernet = <&gmac0>;
766 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
767 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
794 nvmem-cells = <&et0macaddr 5>;
795 nvmem-cell-names = "mac-address";
801 - ethernet = <&gmac0>;
805 --- a/arch/arm/boot/dts/bcm53015-meraki-mr26.dts
806 +++ b/arch/arm/boot/dts/bcm53015-meraki-mr26.dts
807 @@ -115,14 +115,11 @@
818 - ethernet = <&gmac0>;
822 --- a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
823 +++ b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
824 @@ -176,14 +176,11 @@
835 - ethernet = <&gmac0>;