Skip to contentSkip to conversation

ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port

PATCH New Rosen Penev 1 participant 23 messages Nov 21

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 cover ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port

This series describes the switch on fourteen more BCM5301X boards, makes switch port 8 / gmac2 the CPU port on the single-CPU-port boards whose MAC address can be assigned to gmac2, and disables the GMACs that a board does not use.

Patches 1-8 describe the switch ports on the RT-AC56U, RT-AC68U, RT-N18U, R7000, EA6300 and Phicomm K3. They also set the WAN MAC address from nvram, so userspace doesn't have to. The EA6300 and K3 get an nvram node for that. The port mappings come from OpenWrt.

Patches 9-19 do the same for the R6300 v2, EA6500 v2, R8500, WZR-900DHP, WZR-1750DHP, WXR-1900DHP, Archer C5 v2 and Archer C9 v1. The R6300 v2, EA6500 v2 and R8500 get an nvram node and use port 8 (gmac2) with the MAC address from et0macaddr (et2macaddr on the R8500). The Buffalo and TP-Link boards have no MAC address described, so they use port 5 (gmac0), which gets et0macaddr through the SPROM fallback.

Patch 20 is a fix: on the DIR-885L the nvram MAC address has been on gmac0 since port 8 became its only CPU port. It moves it to gmac2.

Patch 21 moves the CPU port from port 5 (gmac0), or port 7 (gmac1) on the RT-AC87U, to port 8 (gmac2) on the remaining single-CPU-port boards. Port 8 is the switch's IMP port, and gmac2 is present on all Northstar SoCs. The nvram MAC address moves to gmac2 as well, and the R6250 gets an nvram node for it. Boards whose MAC address only comes from the SPROM fallback (et0macaddr for gmac0) stay on port 5, since gmac2 would read et2macaddr instead.

Patch 22 disables all GMACs in bcm-ns.dtsi and enables only the ones each board uses. Boards with a switch node enable the GMACs behind their CPU ports. Boards without one keep gmac0-gmac2, because nothing configures their switch and which GMAC carries traffic depends on the bootloader. Boards with several CPU ports (RT-AC3100, RT-AC3200, RT-AC5300, RT-AC88U, WXR-1750DHP) keep them all.

Compile-tested only. Every patch builds, and dtbs_check output for all BCM5301X boards is unchanged by the series.

An AI coding assistant (Claude Code, Claude Opus 5.5) was used to review the series, write patches 9-21 and parts of 22, check the board descriptions against OpenWrt, and draft the commit messages and this cover letter.

Changes in v3:
- R6250: set status in the existing &gmac2 node instead of adding a
second one.
- DWL-8610AP: enable gmac2 too, like the other boards without a switch
node.
- Link to v2: https://lore.kernel.org/linux-devicetree/[email protected]/

Changes in v2:
- Squash the per-board port 8/gmac2 conversions (AC87U, SR400AC, Luxul,
R6250, Meraki MR26/MR32) into one patch (Florian). The DIR-885L patch
stays separate since it carries a Fixes: tag.
- R6250: add an nvram node and take the gmac2 MAC address from
et0macaddr, so it doesn't get a random one.
- Keep Buffalo WZR-600DHP2/WZR-1166DHP/WZR-1166DHP2 and BCM953012ER on
port 5/gmac0: they have no MAC address in DT and would get a random
one from the empty et2macaddr SPROM fallback.
- Boards without a switch node keep gmac0, gmac1 and gmac2 enabled
instead of only gmac2, since their switch is left as the bootloader
configured it.
- Describe the switch on the R6300 v2, EA6500 v2, R8500, WZR-900DHP, WZR-1750DHP, WXR-1900DHP, Archer C5 v2 and Archer C9 v1 (new patches
9-19), taking the port mappings and MAC address sources from OpenWrt.
- Link to v1: https://lore.kernel.org/linux-devicetree/[email protected]/

Rosen Penev (22):
ARM: dts: BCM5301X: AC56U: specify switch
ARM: dts: BCM5301X: AC68U: specify switch
ARM: dts: BCM5301X: N18U: specify switch
ARM: dts: BCM5301X: R7000: specify switch
ARM: dts: BCM5301X: EA6300: set gmac2 MAC address from nvram
ARM: dts: BCM5301X: EA6300: specify switch
ARM: dts: BCM5301X: phicomm-k3: add nvram node
ARM: dts: BCM5301X: phicomm-k3: specify switch
ARM: dts: BCM5301X: R6300 v2: add nvram node
ARM: dts: BCM5301X: R6300 v2: specify switch
ARM: dts: BCM5301X: EA6500 v2: add nvram node
ARM: dts: BCM5301X: EA6500 v2: specify switch
ARM: dts: BCM5301X: R8500: add nvram node
ARM: dts: BCM5301X: R8500: specify switch
ARM: dts: BCM5301X: WZR-900DHP: specify switch
ARM: dts: BCM5301X: WZR-1750DHP: specify switch
ARM: dts: BCM5301X: WXR-1900DHP: specify switch
ARM: dts: BCM5301X: Archer C5 v2: specify switch
ARM: dts: BCM5301X: Archer C9 v1: specify switch
ARM: dts: BCM5301X: DIR-885L: use gmac2
ARM: dts: BCM5301X: use gmac2 as the CPU port
ARM: dts: BCM5301X: enable GMACs in boards that use them

 arch/arm/boot/dts/broadcom/bcm-ns.dtsi        |  8 +++
 .../dts/broadcom/bcm4708-asus-rt-ac56u.dts    | 39 ++++++++++++++
 .../dts/broadcom/bcm4708-asus-rt-ac68u.dts    | 39 ++++++++++++++
 .../broadcom/bcm4708-buffalo-wxr-1750dhp.dts  | 12 +++++
 .../bcm4708-buffalo-wzr-1166dhp-common.dtsi   |  4 ++
 .../broadcom/bcm4708-buffalo-wzr-1750dhp.dts  | 42 +++++++++++++++
 .../broadcom/bcm4708-linksys-ea6300-v1.dts    | 48 +++++++++++++++++
 .../broadcom/bcm4708-linksys-ea6500-v2.dts    | 53 +++++++++++++++++++
 .../dts/broadcom/bcm4708-luxul-xap-1510.dts   |  8 +--
 .../dts/broadcom/bcm4708-luxul-xwc-1000.dts   |  8 +--
 .../dts/broadcom/bcm4708-netgear-r6250.dts    | 20 ++++++-
 .../dts/broadcom/bcm4708-netgear-r6300-v2.dts | 53 +++++++++++++++++++
 .../dts/broadcom/bcm4708-smartrg-sr400ac.dts  | 10 ++--
 .../dts/broadcom/bcm47081-asus-rt-n18u.dts    | 39 ++++++++++++++
 .../broadcom/bcm47081-buffalo-wzr-600dhp2.dts |  4 ++
 .../broadcom/bcm47081-buffalo-wzr-900dhp.dts  | 42 +++++++++++++++
 .../dts/broadcom/bcm47081-luxul-xap-1410.dts  |  8 +--
 .../dts/broadcom/bcm47081-luxul-xwr-1200.dts  |  8 +--
 .../broadcom/bcm47081-tplink-archer-c5-v2.dts | 42 +++++++++++++++
 .../dts/broadcom/bcm4709-asus-rt-ac3200.dts   |  6 +++
 .../dts/broadcom/bcm4709-asus-rt-ac87u.dts    |  8 ++-
 .../broadcom/bcm4709-buffalo-wxr-1900dhp.dts  | 42 +++++++++++++++
 .../dts/broadcom/bcm4709-linksys-ea9200.dts   |  2 +
 .../dts/broadcom/bcm4709-netgear-r7000.dts    | 39 ++++++++++++++
 .../dts/broadcom/bcm4709-netgear-r8000.dts    |  4 ++
 .../broadcom/bcm4709-tplink-archer-c9-v1.dts  | 42 +++++++++++++++
 .../dts/broadcom/bcm47094-asus-rt-ac3100.dts  |  6 +++
 .../dts/broadcom/bcm47094-asus-rt-ac5300.dts  |  6 +++
 .../dts/broadcom/bcm47094-asus-rt-ac88u.dts   |  8 +--
 .../dts/broadcom/bcm47094-dlink-dir-885l.dts  |  4 +-
 .../dts/broadcom/bcm47094-dlink-dir-890l.dts  |  2 +
 .../broadcom/bcm47094-linksys-panamera.dts    |  4 ++
 .../dts/broadcom/bcm47094-luxul-abr-4500.dts  |  8 +--
 .../dts/broadcom/bcm47094-luxul-xap-1610.dts  |  8 +--
 .../dts/broadcom/bcm47094-luxul-xbr-4500.dts  |  8 +--
 .../dts/broadcom/bcm47094-luxul-xwc-2000.dts  |  8 +--
 .../dts/broadcom/bcm47094-luxul-xwr-3100.dts  |  8 +--
 .../broadcom/bcm47094-luxul-xwr-3150-v1.dts   |  8 +--
 .../dts/broadcom/bcm47094-netgear-r8500.dts   | 53 +++++++++++++++++++
 .../boot/dts/broadcom/bcm47094-phicomm-k3.dts | 53 +++++++++++++++++++
 .../dts/broadcom/bcm53015-meraki-mr26.dts     | 21 ++------
 .../broadcom/bcm53016-dlink-dwl-8610ap.dts    |  8 +++
 .../dts/broadcom/bcm53016-meraki-mr32.dts     | 23 ++------
 arch/arm/boot/dts/broadcom/bcm94708.dts       | 12 +++++
 arch/arm/boot/dts/broadcom/bcm94709.dts       | 12 +++++
 arch/arm/boot/dts/broadcom/bcm953012er.dts    |  4 ++
 arch/arm/boot/dts/broadcom/bcm953012hr.dts    | 12 +++++
 arch/arm/boot/dts/broadcom/bcm953012k.dts     | 12 +++++
 48 files changed, 834 insertions(+), 84 deletions(-)

base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726

Signature · 1 line
2.56.1
#1 lore raw

PATCH v3 1/22 ARM: dts: BCM5301X: AC56U: specify switch

Add labels to clarify which port is what.

Also set WAN MAC from nvram, which is offset by 1. Set in dts to avoid having to handle this in userspace.

The port mapping is taken from OpenWrt.

---
 .../dts/broadcom/bcm4708-asus-rt-ac56u.dts    | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts +37 -0
index 708599f8c4be..574fc4f76e75 100644
@@ -106,3 +106,40 @@ &gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "lan1";
+		};
+
+		port@1 {
+			label = "lan2";
+		};
+
+		port@2 {
+			label = "lan3";
+		};
+
+		port@3 {
+			label = "lan4";
+		};
+
+		port@4 {
+			label = "wan";
+
+			nvmem-cells = <&et0macaddr 1>;
+			nvmem-cell-names = "mac-address";
+		};
+
+		port@5 {
+			status = "disabled";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#2 lore raw

PATCH v3 2/22 ARM: dts: BCM5301X: AC68U: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Also set WAN MAC from nvram, which is offset by 1. Set in dts to avoid having to handle this in userspace.

The port mapping is taken from OpenWrt.

---
 .../dts/broadcom/bcm4708-asus-rt-ac68u.dts    | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts +37 -0
index 6e82d2af9f1c..0f369c5d6a5c 100644
@@ -97,3 +97,40 @@ &gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "wan";
+
+			nvmem-cells = <&et0macaddr 1>;
+			nvmem-cell-names = "mac-address";
+		};
+
+		port@1 {
+			label = "lan1";
+		};
+
+		port@2 {
+			label = "lan2";
+		};
+
+		port@3 {
+			label = "lan3";
+		};
+
+		port@4 {
+			label = "lan4";
+		};
+
+		port@5 {
+			status = "disabled";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#3 lore raw

PATCH v3 3/22 ARM: dts: BCM5301X: N18U: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Also set WAN MAC from nvram, which is offset by 1. Set in dts to avoid having to handle this in userspace.

The port mapping is taken from OpenWrt.

---
 .../dts/broadcom/bcm47081-asus-rt-n18u.dts    | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts +37 -0
index 5874e6b606de..4ae4e2d00b7c 100644
@@ -91,3 +91,40 @@ &gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "wan";
+
+			nvmem-cells = <&et0macaddr 1>;
+			nvmem-cell-names = "mac-address";
+		};
+
+		port@1 {
+			label = "lan1";
+		};
+
+		port@2 {
+			label = "lan2";
+		};
+
+		port@3 {
+			label = "lan3";
+		};
+
+		port@4 {
+			label = "lan4";
+		};
+
+		port@5 {
+			status = "disabled";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#4 lore raw

PATCH v3 4/22 ARM: dts: BCM5301X: R7000: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Also set WAN MAC from nvram, which is offset by 1. Set in dts to avoid having to handle this in userspace.

The port mapping is taken from OpenWrt.

---
 .../dts/broadcom/bcm4709-netgear-r7000.dts    | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts +37 -0
index 6ea845f3ac1d..65affe615bb8 100644
@@ -118,3 +118,40 @@ &gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "wan";
+
+			nvmem-cells = <&et0macaddr 1>;
+			nvmem-cell-names = "mac-address";
+		};
+
+		port@1 {
+			label = "lan1";
+		};
+
+		port@2 {
+			label = "lan2";
+		};
+
+		port@3 {
+			label = "lan3";
+		};
+
+		port@4 {
+			label = "lan4";
+		};
+
+		port@5 {
+			status = "disabled";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#5 lore raw

PATCH v3 5/22 ARM: dts: BCM5301X: EA6300: set gmac2 MAC address from nvram

In reply to Rosen Penev

Describe the et0macaddr nvram cell and assign it to gmac2, so the MAC address doesn't have to be set from userspace.

gmac2 connects to switch port 8, the switch's IMP port, which the next patch makes the only CPU port.

---
 arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts +9 -0
index 03d5546a147c..f8dd08cc7cca 100644
@@ -24,6 +24,10 @@ memory@0 {
 	nvram@1c080000 {
 		compatible = "brcm,nvram";
 		reg = <0x1c080000 0x180000>;
+
+		et0macaddr: et0macaddr {
+			#nvmem-cell-cells = <1>;
+		};
 	};
 
 	gpio-keys {
@@ -50,3 +54,8 @@ &usb3_phy {
 &usb3 {
 	vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
 };
+
+&gmac2 {
+	nvmem-cells = <&et0macaddr 0>;
+	nvmem-cell-names = "mac-address";
+};
Signature · 1 line
2.56.1
#6 lore raw

PATCH v3 6/22 ARM: dts: BCM5301X: EA6300: specify switch

In reply to Rosen Penev

bcm-ns.dtsi specifies a default layout that is not correct for the EA6300. Also allows setting the WAN MAC address properly.

The port mapping is taken from OpenWrt.

---
 .../broadcom/bcm4708-linksys-ea6300-v1.dts    | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts +37 -0
index f8dd08cc7cca..bca4c440a499 100644
@@ -59,3 +59,40 @@ &gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "lan1";
+		};
+
+		port@1 {
+			label = "lan2";
+		};
+
+		port@2 {
+			label = "lan3";
+		};
+
+		port@3 {
+			label = "lan4";
+		};
+
+		port@4 {
+			label = "wan";
+
+			nvmem-cells = <&et0macaddr 1>;
+			nvmem-cell-names = "mac-address";
+		};
+
+		port@5 {
+			status = "disabled";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#7 lore raw

PATCH v3 7/22 ARM: dts: BCM5301X: phicomm-k3: add nvram node

In reply to Rosen Penev

Add it and set the MAC address for gmac2, to avoid having to handle it in userspace.

The nvram size was taken from a boot log posted online.

---
 arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts +14 -0
index bb1bc4e61bc2..5b9250976f13 100644
@@ -28,6 +28,15 @@ button-restart {
 			gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
 		};
 	};
+
+	nvram@1c080000 {
+		compatible = "brcm,nvram";
+		reg = <0x1c080000 0x100000>;
+
+		et0macaddr: et0macaddr {
+			#nvmem-cell-cells = <1>;
+		};
+	};
 };
 
 &uart1 {
@@ -38,6 +47,11 @@ &usb3_phy {
 	status = "okay";
 };
 
+&gmac2 {
+	nvmem-cells = <&et0macaddr 0>;
+	nvmem-cell-names = "mac-address";
+};
+
 &nandcs {
 	partitions {
 		compatible = "fixed-partitions";
Signature · 1 line
2.56.1
#8 lore raw

PATCH v3 8/22 ARM: dts: BCM5301X: phicomm-k3: specify switch

In reply to Rosen Penev

bcm-ns.dtsi specifies a default layout that is not correct for the K3, which has three LAN ports and a WAN port on switch ports 0-3. Port 4 is unused, so disable it. Also allows setting the WAN MAC address properly.

The port mapping is taken from OpenWrt.

---
 .../boot/dts/broadcom/bcm47094-phicomm-k3.dts | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts +37 -0
index 5b9250976f13..018faf90fd4d 100644
@@ -52,6 +52,43 @@ &gmac2 {
 	nvmem-cell-names = "mac-address";
 };
 
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "lan1";
+		};
+
+		port@1 {
+			label = "lan2";
+		};
+
+		port@2 {
+			label = "lan3";
+		};
+
+		port@3 {
+			label = "wan";
+
+			nvmem-cells = <&et0macaddr 1>;
+			nvmem-cell-names = "mac-address";
+		};
+
+		port@4 {
+			status = "disabled";
+		};
+
+		port@5 {
+			status = "disabled";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+	};
+};
+
 &nandcs {
 	partitions {
 		compatible = "fixed-partitions";
Signature · 1 line
2.56.1
#9 lore raw

PATCH v3 9/22 ARM: dts: BCM5301X: R6300 v2: add nvram node

In reply to Rosen Penev

Add it and assign its et0macaddr cell to gmac2, so the MAC address doesn't have to be set from userspace.

The nvram partition follows the 512 KiB boot partition and is 1.5 MiB, as on the R6250.

gmac2 connects to switch port 8, the switch's IMP port, which the next patch makes the only CPU port.

---
 .../boot/dts/broadcom/bcm4708-netgear-r6300-v2.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/broadcom/bcm4708-netgear-r6300-v2.dts +14 -0
index 55f0d9e90d5f..1b99fe442dda 100644
@@ -25,6 +25,15 @@ memory@0 {
 		      <0x88000000 0x08000000>;
 	};
 
+	nvram@1c080000 {
+		compatible = "brcm,nvram";
+		reg = <0x1c080000 0x180000>;
+
+		et0macaddr: et0macaddr {
+			#nvmem-cell-cells = <1>;
+		};
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -90,3 +99,8 @@ &usb3_phy {
 &usb3 {
 	vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
 };
+
+&gmac2 {
+	nvmem-cells = <&et0macaddr 0>;
+	nvmem-cell-names = "mac-address";
+};
Signature · 1 line
2.56.1
#10 lore raw

PATCH v3 10/22 ARM: dts: BCM5301X: R6300 v2: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Also set the WAN MAC address from nvram, which is offset by 1.

The port mapping is taken from OpenWrt.

---
 .../dts/broadcom/bcm4708-netgear-r6300-v2.dts | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/boot/dts/broadcom/bcm4708-netgear-r6300-v2.dts +37 -0
index 1b99fe442dda..2d7bbc4ded60 100644
@@ -104,3 +104,40 @@ &gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "lan1";
+		};
+
+		port@1 {
+			label = "lan2";
+		};
+
+		port@2 {
+			label = "lan3";
+		};
+
+		port@3 {
+			label = "lan4";
+		};
+
+		port@4 {
+			label = "wan";
+
+			nvmem-cells = <&et0macaddr 1>;
+			nvmem-cell-names = "mac-address";
+		};
+
+		port@5 {
+			status = "disabled";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#11 lore raw

PATCH v3 11/22 ARM: dts: BCM5301X: EA6500 v2: add nvram node

In reply to Rosen Penev

Add it and assign its et0macaddr cell to gmac2, so the MAC address doesn't have to be set from userspace.

The nvram partition layout is the same as on the EA6300 v1.

gmac2 connects to switch port 8, the switch's IMP port, which the next patch makes the only CPU port.

---
 .../dts/broadcom/bcm4708-linksys-ea6500-v2.dts     | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts +14 -0
index ad246f9a734a..d9e4f84058e3 100644
@@ -23,6 +23,15 @@ memory@0 {
 		      <0x88000000 0x08000000>;
 	};
 
+	nvram@1c080000 {
+		compatible = "brcm,nvram";
+		reg = <0x1c080000 0x180000>;
+
+		et0macaddr: et0macaddr {
+			#nvmem-cell-cells = <1>;
+		};
+	};
+
 	gpio-keys {
 		compatible = "gpio-keys";
 
@@ -47,3 +56,8 @@ &usb3_phy {
 &usb3 {
 	vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
 };
+
+&gmac2 {
+	nvmem-cells = <&et0macaddr 0>;
+	nvmem-cell-names = "mac-address";
+};
Signature · 1 line
2.56.1
#12 lore raw

PATCH v3 12/22 ARM: dts: BCM5301X: EA6500 v2: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Also set the WAN MAC address from nvram, which is offset by 1.

The port mapping is taken from OpenWrt.

---
 .../broadcom/bcm4708-linksys-ea6500-v2.dts    | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts +37 -0
index d9e4f84058e3..8b3074684e78 100644
@@ -61,3 +61,40 @@ &gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "lan1";
+		};
+
+		port@1 {
+			label = "lan2";
+		};
+
+		port@2 {
+			label = "lan3";
+		};
+
+		port@3 {
+			label = "lan4";
+		};
+
+		port@4 {
+			label = "wan";
+
+			nvmem-cells = <&et0macaddr 1>;
+			nvmem-cell-names = "mac-address";
+		};
+
+		port@5 {
+			status = "disabled";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#13 lore raw

PATCH v3 13/22 ARM: dts: BCM5301X: R8500: add nvram node

In reply to Rosen Penev

Add it and assign its et2macaddr cell to gmac2, so the MAC address doesn't have to be set from userspace.

The nvram partition follows the 512 KiB boot partition and is 1.5 MiB, as on the other Netgear Northstar boards.

gmac2 connects to switch port 8, the switch's IMP port, which the next patch makes the only CPU port.

---
 .../boot/dts/broadcom/bcm47094-netgear-r8500.dts   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts +14 -0
index 76d562610654..d312afdb750f 100644
@@ -22,6 +22,15 @@ memory@0 {
 		      <0x88000000 0x18000000>;
 	};
 
+	nvram@1c080000 {
+		compatible = "brcm,nvram";
+		reg = <0x1c080000 0x180000>;
+
+		et2macaddr: et2macaddr {
+			#nvmem-cell-cells = <1>;
+		};
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -94,3 +103,8 @@ button-rfkill {
 &usb3_phy {
 	status = "okay";
 };
+
+&gmac2 {
+	nvmem-cells = <&et2macaddr 0>;
+	nvmem-cell-names = "mac-address";
+};
Signature · 1 line
2.56.1
#14 lore raw

PATCH v3 14/22 ARM: dts: BCM5301X: R8500: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Also set the WAN MAC address from nvram, which is offset by 1.

The port mapping is taken from OpenWrt.

---
 .../dts/broadcom/bcm47094-netgear-r8500.dts   | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts +37 -0
index d312afdb750f..2518f25b0eaa 100644
@@ -108,3 +108,40 @@ &gmac2 {
 	nvmem-cells = <&et2macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "wan";
+
+			nvmem-cells = <&et2macaddr 1>;
+			nvmem-cell-names = "mac-address";
+		};
+
+		port@1 {
+			label = "lan1";
+		};
+
+		port@2 {
+			label = "lan2";
+		};
+
+		port@3 {
+			label = "lan3";
+		};
+
+		port@4 {
+			label = "lan4";
+		};
+
+		port@5 {
+			status = "disabled";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#15 lore raw

PATCH v3 15/22 ARM: dts: BCM5301X: WZR-900DHP: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Use port 5 (gmac0) as the CPU port. No MAC address is described for the board, so gmac2 would get the SPROM fallback et2macaddr, which these boards do not set, while gmac0 gets et0macaddr.

The port mapping is taken from OpenWrt.

---
 .../broadcom/bcm47081-buffalo-wzr-900dhp.dts  | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-900dhp.dts +38 -0
index 7655e4ff2d1c..6cb27ea2dd94 100644
@@ -107,3 +107,41 @@ button-restart {
 &usb3_phy {
 	status = "okay";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "lan1";
+		};
+
+		port@1 {
+			label = "lan2";
+		};
+
+		port@2 {
+			label = "lan3";
+		};
+
+		port@3 {
+			label = "lan4";
+		};
+
+		port@4 {
+			label = "wan";
+		};
+
+		port@5 {
+			label = "cpu";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+
+		port@8 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#16 lore raw

PATCH v3 16/22 ARM: dts: BCM5301X: WZR-1750DHP: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Use port 5 (gmac0) as the CPU port. No MAC address is described for the board, so gmac2 would get the SPROM fallback et2macaddr, which these boards do not set, while gmac0 gets et0macaddr.

The port mapping is taken from OpenWrt.

---
 .../broadcom/bcm4708-buffalo-wzr-1750dhp.dts  | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1750dhp.dts +38 -0
index 95ef6ca7210b..459ed246030b 100644
@@ -149,3 +149,41 @@ &spi_nor {
 &usb3_phy {
 	status = "okay";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "lan1";
+		};
+
+		port@1 {
+			label = "lan2";
+		};
+
+		port@2 {
+			label = "lan3";
+		};
+
+		port@3 {
+			label = "lan4";
+		};
+
+		port@4 {
+			label = "wan";
+		};
+
+		port@5 {
+			label = "cpu";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+
+		port@8 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#17 lore raw

PATCH v3 17/22 ARM: dts: BCM5301X: WXR-1900DHP: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Use port 5 (gmac0) as the CPU port. No MAC address is described for the board, so gmac2 would get the SPROM fallback et2macaddr, which these boards do not set, while gmac0 gets et0macaddr.

The port mapping is taken from OpenWrt.

---
 .../broadcom/bcm4709-buffalo-wxr-1900dhp.dts  | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm/boot/dts/broadcom/bcm4709-buffalo-wxr-1900dhp.dts +38 -0
index b7cd2faa30ce..6543eb8aa9f5 100644
@@ -130,3 +130,41 @@ &spi_nor {
 &usb3_phy {
 	status = "okay";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "lan1";
+		};
+
+		port@1 {
+			label = "lan2";
+		};
+
+		port@2 {
+			label = "lan3";
+		};
+
+		port@3 {
+			label = "lan4";
+		};
+
+		port@4 {
+			label = "wan";
+		};
+
+		port@5 {
+			label = "cpu";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+
+		port@8 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#18 lore raw

PATCH v3 18/22 ARM: dts: BCM5301X: Archer C5 v2: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Use port 5 (gmac0) as the CPU port. No MAC address is described for the board, so gmac2 would get the SPROM fallback et2macaddr, which these boards do not set, while gmac0 gets et0macaddr.

The port mapping is taken from OpenWrt.

---
 .../broadcom/bcm47081-tplink-archer-c5-v2.dts | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm/boot/dts/broadcom/bcm47081-tplink-archer-c5-v2.dts +38 -0
index b6a5886698b2..54898849b87f 100644
@@ -111,3 +111,41 @@ partition-file-system {
 &usb2 {
 	vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "wan";
+		};
+
+		port@1 {
+			label = "lan1";
+		};
+
+		port@2 {
+			label = "lan2";
+		};
+
+		port@3 {
+			label = "lan3";
+		};
+
+		port@4 {
+			label = "lan4";
+		};
+
+		port@5 {
+			label = "cpu";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+
+		port@8 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#19 lore raw

PATCH v3 19/22 ARM: dts: BCM5301X: Archer C9 v1: specify switch

In reply to Rosen Penev

Add labels to clarify which port is what.

Use port 5 (gmac0) as the CPU port. No MAC address is described for the board, so gmac2 would get the SPROM fallback et2macaddr, which these boards do not set, while gmac0 gets et0macaddr.

The port mapping is taken from OpenWrt.

---
 .../broadcom/bcm4709-tplink-archer-c9-v1.dts  | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm/boot/dts/broadcom/bcm4709-tplink-archer-c9-v1.dts +38 -0
index 5a8b2b1567e6..c38396ac1288 100644
@@ -120,3 +120,41 @@ partition-file-system {
 &usb3_phy {
 	status = "okay";
 };
+
+&srab {
+	status = "okay";
+
+	ports {
+		port@0 {
+			label = "wan";
+		};
+
+		port@1 {
+			label = "lan1";
+		};
+
+		port@2 {
+			label = "lan2";
+		};
+
+		port@3 {
+			label = "lan3";
+		};
+
+		port@4 {
+			label = "lan4";
+		};
+
+		port@5 {
+			label = "cpu";
+		};
+
+		port@7 {
+			status = "disabled";
+		};
+
+		port@8 {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
2.56.1
#20 lore raw

PATCH v3 20/22 ARM: dts: BCM5301X: DIR-885L: use gmac2

In reply to Rosen Penev

Commit 473baeab9294 ("ARM: dts: BCM5301X: Explicitly disable unused switch CPU ports") left port 8 as the only CPU port, and port 8 connects to gmac2. The MAC address from nvram is still assigned to gmac0, which no enabled CPU port uses. It is also the et2macaddr cell, which belongs to gmac2 by name.

Assign it to gmac2 instead.

Fixes 473baeab9294 ("ARM: dts: BCM5301X: Explicitly disable unused switch CPU ports")
---
 arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts +1 -1
index c5099defe9f9..b64ba9afa736 100644
@@ -121,7 +121,7 @@ &usb3 {
 	vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et2macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
Signature · 1 line
2.56.1
#21 lore raw

PATCH v3 21/22 ARM: dts: BCM5301X: use gmac2 as the CPU port

In reply to Rosen Penev

Port 8 is the switch's IMP port and connects to gmac2, which is present on all Northstar SoCs. Several boards with a single CPU port use port 5 (gmac0) or port 7 (gmac1) instead. Switch them to port 8 and assign the nvram MAC address to gmac2:

- AC87U: the MAC address is assigned to gmac0, but port 5 is disabled and port 7 (gmac1) is the CPU port, so the interface that carries the traffic never gets it.
- SR400AC, Luxul, R6250 and Meraki MR26/MR32: port 5 is the CPU port. R6250 had no nvram node, so add one. gmac0 got et0macaddr through the SPROM fallback, which gmac2 (et2macaddr) would not.

The Meraki port 5 fixed-link only repeated the bcm-ns.dtsi default, and bcm-ns.dtsi already describes the port 8 fixed-link and links port 8 to gmac2, so drop it.

Boards that use several CPU ports, and boards whose MAC address is only known from the SPROM fallback (Buffalo WZR-600DHP2/WZR-1166DHP/ WZR-1166DHP2, BCM953012ER), are left unchanged.

---
 .../dts/broadcom/bcm4708-luxul-xap-1510.dts   |  6 +++---
 .../dts/broadcom/bcm4708-luxul-xwc-1000.dts   |  6 +++---
 .../dts/broadcom/bcm4708-netgear-r6250.dts    | 18 ++++++++++++++++--
 .../dts/broadcom/bcm4708-smartrg-sr400ac.dts  |  8 ++------
 .../dts/broadcom/bcm47081-luxul-xap-1410.dts  |  6 +++---
 .../dts/broadcom/bcm47081-luxul-xwr-1200.dts  |  6 +++---
 .../dts/broadcom/bcm4709-asus-rt-ac87u.dts    |  6 +-----
 .../dts/broadcom/bcm47094-luxul-abr-4500.dts  |  6 +++---
 .../dts/broadcom/bcm47094-luxul-xap-1610.dts  |  6 +++---
 .../dts/broadcom/bcm47094-luxul-xbr-4500.dts  |  6 +++---
 .../dts/broadcom/bcm47094-luxul-xwc-2000.dts  |  6 +++---
 .../dts/broadcom/bcm47094-luxul-xwr-3100.dts  |  6 +++---
 .../broadcom/bcm47094-luxul-xwr-3150-v1.dts   |  6 +++---
 .../dts/broadcom/bcm53015-meraki-mr26.dts     | 19 +++++++------------
 .../dts/broadcom/bcm53016-meraki-mr32.dts     | 15 +++++----------
 15 files changed, 61 insertions(+), 65 deletions(-)
arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts +3 -3
index 72e960c888ac..3375b234fc9b 100644
@@ -61,7 +61,7 @@ button-restart {
 	};
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
@@ -83,7 +83,7 @@ port@4 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -91,7 +91,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts +3 -3
index 750e17482371..26ac2f2ed5a3 100644
@@ -68,7 +68,7 @@ button-restart {
 	};
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
@@ -86,7 +86,7 @@ port@4 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -94,7 +94,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts +16 -2
index 2bdbc7d18b0e..81c2e6652a27 100644
@@ -26,6 +26,15 @@ memory@0 {
 		      <0x88000000 0x08000000>;
 	};
 
+	nvram@1c080000 {
+		compatible = "brcm,nvram";
+		reg = <0x1c080000 0x180000>;
+
+		et0macaddr: et0macaddr {
+			#nvmem-cell-cells = <1>;
+		};
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -83,6 +92,11 @@ button-restart {
 	};
 };
 
+&gmac2 {
+	nvmem-cells = <&et0macaddr 0>;
+	nvmem-cell-names = "mac-address";
+};
+
 &usb3 {
 	vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
 };
@@ -120,7 +134,7 @@ port@4 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -128,7 +142,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts +2 -6
index 03f4a6d37a67..60661dde8ca5 100644
@@ -128,7 +128,7 @@ &spi_nor {
 	status = "okay";
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
@@ -161,14 +161,10 @@ port@4 {
 		};
 
 		port@5 {
-			label = "cpu";
-		};
-
-		port@7 {
 			status = "disabled";
 		};
 
-		port@8 {
+		port@7 {
 			status = "disabled";
 		};
 	};
arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts +3 -3
index 0198b5f9e4a7..2b152115d03e 100644
@@ -61,7 +61,7 @@ button-restart {
 	};
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
@@ -79,7 +79,7 @@ port@4 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -87,7 +87,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts +3 -3
index 73ff1694a4a0..b5664216dcef 100644
@@ -110,7 +110,7 @@ &usb2 {
 	vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
@@ -146,7 +146,7 @@ port@4 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -154,7 +154,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts +1 -5
index 2fed02ebb1d7..4114c6eda1ac 100644
@@ -71,7 +71,7 @@ button-restart {
 	};
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et1macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
@@ -108,10 +108,6 @@ port@5 {
 		};
 
 		port@7 {
-			label = "cpu";
-		};
-
-		port@8 {
 			status = "disabled";
 		};
 	};
arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts +3 -3
index e374062eb5b7..00aa28a2e70e 100644
@@ -65,7 +65,7 @@ &usb3 {
 	vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
@@ -105,7 +105,7 @@ port@4 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -113,7 +113,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts +3 -3
index 3a33705c2969..04420ebf056a 100644
@@ -59,7 +59,7 @@ button-restart {
 	};
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
@@ -98,7 +98,7 @@ port@1 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -106,7 +106,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts +3 -3
index cf95af9db1e6..765b74919fcd 100644
@@ -65,7 +65,7 @@ &usb3 {
 	vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
@@ -105,7 +105,7 @@ port@4 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -113,7 +113,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts +3 -3
index 992c19e1cfa1..eb4bdf8c9c7e 100644
@@ -55,7 +55,7 @@ &uart1 {
 	status = "okay";
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
@@ -73,7 +73,7 @@ port@0 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -81,7 +81,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts +3 -3
index 4d0ba315a204..d5436d70ecbf 100644
@@ -105,7 +105,7 @@ &usb3 {
 	vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
@@ -145,7 +145,7 @@ port@4 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -153,7 +153,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts +3 -3
index 8e487f60a2cc..64d3634d130c 100644
@@ -76,7 +76,7 @@ button-restart {
 	};
 };
 
-&gmac0 {
+&gmac2 {
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
@@ -136,7 +136,7 @@ port@4 {
 		};
 
 		port@5 {
-			label = "cpu";
+			status = "disabled";
 		};
 
 		port@7 {
@@ -144,7 +144,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts +7 -12
index 08abfdc63d18..890945a5690b 100644
@@ -58,17 +58,17 @@ &uart1 {
 };
 
 &gmac0 {
-	status = "okay";
-
-	nvmem-cells = <&macaddr_board_config_66>;
-	nvmem-cell-names = "mac-address";
+	status = "disabled";
 };
 
 &gmac1 {
 	status = "disabled";
 };
 &gmac2 {
-	status = "disabled";
+	status = "okay";
+
+	nvmem-cells = <&macaddr_board_config_66>;
+	nvmem-cell-names = "mac-address";
 };
 &gmac3 {
 	status = "disabled";
@@ -137,12 +137,7 @@ port@0 {
 		};
 
 		port@5 {
-			label = "cpu";
-
-			fixed-link {
-				speed = <1000>;
-				full-duplex;
-			};
+			status = "disabled";
 		};
 
 		port@7 {
@@ -150,7 +145,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts +5 -10
index 45bd27906f29..d6dc448b2849 100644
@@ -104,15 +104,15 @@ &uart2 {
 };
 
 &gmac0 {
-	nvmem-cell-names = "mac-address";
-	nvmem-cells = <&mac_address>;
+	status = "disabled";
 };
 
 &gmac1 {
 	status = "disabled";
 };
 &gmac2 {
-	status = "disabled";
+	nvmem-cell-names = "mac-address";
+	nvmem-cells = <&mac_address>;
 };
 &gmac3 {
 	status = "disabled";
@@ -178,12 +178,7 @@ port@0 {
 		};
 
 		port@5 {
-			label = "cpu";
-
-			fixed-link {
-				speed = <1000>;
-				full-duplex;
-			};
+			status = "disabled";
 		};
 
 		port@7 {
@@ -191,7 +186,7 @@ port@7 {
 		};
 
 		port@8 {
-			status = "disabled";
+			label = "cpu";
 		};
 	};
 };
Signature · 1 line
2.56.1
#22 lore raw

PATCH v3 22/22 ARM: dts: BCM5301X: enable GMACs in boards that use them

In reply to Rosen Penev

bcm-ns.dtsi enables all four GMACs, so every board probes and registers network interfaces for GMACs that are not connected to anything.

Disable them by default and enable them per board:

- Boards with a switch node enable the GMACs connected to the switch's enabled CPU ports (port 5: gmac0, port 7: gmac1, port 8: gmac2).
- Boards without a switch node keep gmac0, gmac1 and gmac2. Without the switch node, b53 does not configure the switch and it stays as the bootloader left it, so which GMAC carries the traffic is unknown.

gmac3 has no fixed-link and no board describes what it connects to, so it stays disabled everywhere.

---
 arch/arm/boot/dts/broadcom/bcm-ns.dtsi               |  8 ++++++++
 arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts |  2 ++
 arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts |  2 ++
 .../dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts     | 12 ++++++++++++
 .../broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi |  4 ++++
 .../dts/broadcom/bcm4708-buffalo-wzr-1750dhp.dts     |  4 ++++
 .../boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts  |  2 ++
 .../boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts  |  2 ++
 .../arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts |  2 ++
 .../arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts |  2 ++
 arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts |  2 ++
 .../boot/dts/broadcom/bcm4708-netgear-r6300-v2.dts   |  2 ++
 .../boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts    |  2 ++
 arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts |  2 ++
 .../dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts    |  4 ++++
 .../dts/broadcom/bcm47081-buffalo-wzr-900dhp.dts     |  4 ++++
 .../boot/dts/broadcom/bcm47081-luxul-xap-1410.dts    |  2 ++
 .../boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts    |  2 ++
 .../dts/broadcom/bcm47081-tplink-archer-c5-v2.dts    |  4 ++++
 .../arm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts |  6 ++++++
 arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts |  2 ++
 .../dts/broadcom/bcm4709-buffalo-wxr-1900dhp.dts     |  4 ++++
 .../arm/boot/dts/broadcom/bcm4709-linksys-ea9200.dts |  2 ++
 arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts |  2 ++
 arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts |  4 ++++
 .../dts/broadcom/bcm4709-tplink-archer-c9-v1.dts     |  4 ++++
 .../boot/dts/broadcom/bcm47094-asus-rt-ac3100.dts    |  6 ++++++
 .../boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts    |  6 ++++++
 .../arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts |  8 ++++----
 .../boot/dts/broadcom/bcm47094-dlink-dir-885l.dts    |  2 ++
 .../boot/dts/broadcom/bcm47094-dlink-dir-890l.dts    |  2 ++
 .../boot/dts/broadcom/bcm47094-linksys-panamera.dts  |  4 ++++
 .../boot/dts/broadcom/bcm47094-luxul-abr-4500.dts    |  2 ++
 .../boot/dts/broadcom/bcm47094-luxul-xap-1610.dts    |  2 ++
 .../boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts    |  2 ++
 .../boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts    |  2 ++
 .../boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts    |  2 ++
 .../boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts |  2 ++
 .../arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts |  2 ++
 arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts   |  2 ++
 arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts  | 10 ----------
 .../boot/dts/broadcom/bcm53016-dlink-dwl-8610ap.dts  |  8 ++++++++
 arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts  | 12 ++----------
 arch/arm/boot/dts/broadcom/bcm94708.dts              | 12 ++++++++++++
 arch/arm/boot/dts/broadcom/bcm94709.dts              | 12 ++++++++++++
 arch/arm/boot/dts/broadcom/bcm953012er.dts           |  4 ++++
 arch/arm/boot/dts/broadcom/bcm953012hr.dts           | 12 ++++++++++++
 arch/arm/boot/dts/broadcom/bcm953012k.dts            | 12 ++++++++++++
 48 files changed, 190 insertions(+), 24 deletions(-)
arch/arm/boot/dts/broadcom/bcm-ns.dtsi +8 -0
index 707c8693b282..850b74a0fe6a 100644
@@ -335,6 +335,8 @@ gmac0: ethernet@24000 {
 			reg = <0x24000 0x800>;
 			phy-mode = "internal";
 
+			status = "disabled";
+
 			fixed-link {
 				speed = <1000>;
 				full-duplex;
@@ -345,6 +347,8 @@ gmac1: ethernet@25000 {
 			reg = <0x25000 0x800>;
 			phy-mode = "internal";
 
+			status = "disabled";
+
 			fixed-link {
 				speed = <1000>;
 				full-duplex;
@@ -355,6 +359,8 @@ gmac2: ethernet@26000 {
 			reg = <0x26000 0x800>;
 			phy-mode = "internal";
 
+			status = "disabled";
+
 			fixed-link {
 				speed = <1000>;
 				full-duplex;
@@ -363,6 +369,8 @@ fixed-link {
 
 		gmac3: ethernet@27000 {
 			reg = <0x27000 0x800>;
+
+			status = "disabled";
 		};
 	};
 
arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts +2 -0
index 574fc4f76e75..433e3719cab6 100644
@@ -103,6 +103,8 @@ &usb3_phy {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts +2 -0
index 0f369c5d6a5c..9b741a402de5 100644
@@ -94,6 +94,8 @@ &usb3_phy {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts +12 -0
index f5c95c9a712e..62b028c0fb1e 100644
@@ -136,3 +136,15 @@ &usb3 {
 &usb3_phy {
 	status = "okay";
 };
+
+&gmac0 {
+	status = "okay";
+};
+
+&gmac1 {
+	status = "okay";
+};
+
+&gmac2 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi +4 -0
index 9f9084269ef5..698685b889e7 100644
@@ -191,3 +191,7 @@ port@8 {
 		};
 	};
 };
+
+&gmac0 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1750dhp.dts +4 -0
index 459ed246030b..25a5abb42b67 100644
@@ -187,3 +187,7 @@ port@8 {
 		};
 	};
 };
+
+&gmac0 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts +2 -0
index bca4c440a499..5d5f6bb4fdda 100644
@@ -56,6 +56,8 @@ &usb3 {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts +2 -0
index 8b3074684e78..5746dd9b7ae4 100644
@@ -58,6 +58,8 @@ &usb3 {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts +2 -0
index 3375b234fc9b..4c3feb950d5e 100644
@@ -62,6 +62,8 @@ button-restart {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts +2 -0
index 26ac2f2ed5a3..9f884f11f8fb 100644
@@ -69,6 +69,8 @@ button-restart {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts +2 -0
index 81c2e6652a27..7bbcb9e735ff 100644
@@ -93,6 +93,8 @@ button-restart {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4708-netgear-r6300-v2.dts +2 -0
index 2d7bbc4ded60..a17cc4e8f0ab 100644
@@ -101,6 +101,8 @@ &usb3 {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts +2 -0
index 60661dde8ca5..23d39c9e07d2 100644
@@ -129,6 +129,8 @@ &spi_nor {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts +2 -0
index 4ae4e2d00b7c..059c32126427 100644
@@ -88,6 +88,8 @@ &usb3_phy {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts +4 -0
index 192b8db5a89c..6f466a584ee8 100644
@@ -155,3 +155,7 @@ port@8 {
 		};
 	};
 };
+
+&gmac0 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-900dhp.dts +4 -0
index 6cb27ea2dd94..1f4b7bb1b29c 100644
@@ -145,3 +145,7 @@ port@8 {
 		};
 	};
 };
+
+&gmac0 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts +2 -0
index 2b152115d03e..7eda4acc11b3 100644
@@ -62,6 +62,8 @@ button-restart {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts +2 -0
index b5664216dcef..64f56a320099 100644
@@ -111,6 +111,8 @@ &usb2 {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47081-tplink-archer-c5-v2.dts +4 -0
index 54898849b87f..b06a5935bea9 100644
@@ -149,3 +149,7 @@ port@8 {
 		};
 	};
 };
+
+&gmac0 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts +6 -0
index 3da2daee0c84..1b285996e422 100644
@@ -76,16 +76,22 @@ led-wps {
 };
 
 &gmac0 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
 
 &gmac1 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 1>;
 	nvmem-cell-names = "mac-address";
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 2>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts +2 -0
index 4114c6eda1ac..101123158e8b 100644
@@ -72,6 +72,8 @@ button-restart {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et1macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4709-buffalo-wxr-1900dhp.dts +4 -0
index 6543eb8aa9f5..c72c76015aaa 100644
@@ -168,3 +168,7 @@ port@8 {
 		};
 	};
 };
+
+&gmac0 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm4709-linksys-ea9200.dts +2 -0
index 37593e7582ba..df926ee77a1c 100644
@@ -163,6 +163,8 @@ &usb3 {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et2macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts +2 -0
index 65affe615bb8..dcedd0129e2f 100644
@@ -115,6 +115,8 @@ &usb3_phy {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts +4 -0
index a4b135d37659..3d48b2a6d160 100644
@@ -248,3 +248,7 @@ port@8 {
 		};
 	};
 };
+
+&gmac2 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm4709-tplink-archer-c9-v1.dts +4 -0
index c38396ac1288..7a9b7895dc05 100644
@@ -158,3 +158,7 @@ port@8 {
 		};
 	};
 };
+
+&gmac0 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dts +6 -0
index 1655ac95769c..e6dfda3e00ab 100644
@@ -19,16 +19,22 @@ et0macaddr: et0macaddr {
 };
 
 &gmac0 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
 
 &gmac1 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 1>;
 	nvmem-cell-names = "mac-address";
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 2>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts +6 -0
index 8bf623c67de0..79b089f1dd26 100644
@@ -82,16 +82,22 @@ led-wps {
 };
 
 &gmac0 {
+	status = "okay";
+
 	nvmem-cells = <&et1macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
 
 &gmac1 {
+	status = "okay";
+
 	nvmem-cells = <&et1macaddr 1>;
 	nvmem-cell-names = "mac-address";
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et1macaddr 2>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts +4 -4
index a197f447fd97..a4c8928646d1 100644
@@ -93,16 +93,16 @@ fixed-link {
 	};
 };
 
-&gmac0 {
-	status = "disabled";
-};
-
 &gmac1 {
+	status = "okay";
+
 	nvmem-cells = <&et1macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et1macaddr 1>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts +2 -0
index b64ba9afa736..7137bf2452a7 100644
@@ -122,6 +122,8 @@ &usb3 {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et2macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-890l.dts +2 -0
index 944d592dee2c..9029257fe1f2 100644
@@ -120,6 +120,8 @@ et0macaddr: et0macaddr {
 };
 
 &gmac2 {
+	status = "okay";
+
 	/*
 	 * The NVRAM curiously does not contain a MAC address
 	 * for et2 so since that is the only ethernet interface
arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts +4 -0
index bdbd0f097925..1fc92eaf74ea 100644
@@ -307,3 +307,7 @@ partition@5200000 {
 		};
 	};
 };
+
+&gmac2 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts +2 -0
index 00aa28a2e70e..393a3994c3f3 100644
@@ -66,6 +66,8 @@ &usb3 {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts +2 -0
index 04420ebf056a..ff05766d5171 100644
@@ -60,6 +60,8 @@ button-restart {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts +2 -0
index 765b74919fcd..947424406bf2 100644
@@ -66,6 +66,8 @@ &usb3 {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts +2 -0
index eb4bdf8c9c7e..59b6b03d9683 100644
@@ -56,6 +56,8 @@ &uart1 {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts +2 -0
index d5436d70ecbf..f7f6d045b5f3 100644
@@ -106,6 +106,8 @@ &usb3 {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts +2 -0
index 64d3634d130c..c83c063270e6 100644
@@ -77,6 +77,8 @@ button-restart {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts +2 -0
index 2518f25b0eaa..dff5891f6c38 100644
@@ -105,6 +105,8 @@ &usb3_phy {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et2macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts +2 -0
index 018faf90fd4d..72138fced325 100644
@@ -48,6 +48,8 @@ &usb3_phy {
 };
 
 &gmac2 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr 0>;
 	nvmem-cell-names = "mac-address";
 };
arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts +0 -10
index 890945a5690b..fba1074b7c9e 100644
@@ -57,22 +57,12 @@ &uart1 {
 	status = "disabled";
 };
 
-&gmac0 {
-	status = "disabled";
-};
-
-&gmac1 {
-	status = "disabled";
-};
 &gmac2 {
 	status = "okay";
 
 	nvmem-cells = <&macaddr_board_config_66>;
 	nvmem-cell-names = "mac-address";
 };
-&gmac3 {
-	status = "disabled";
-};
 
 &nandcs {
 	partitions {
arch/arm/boot/dts/broadcom/bcm53016-dlink-dwl-8610ap.dts +8 -0
index c1f54391746f..6f1e0c77cdef 100644
@@ -80,15 +80,23 @@ et1macaddr: et1macaddr {
 };
 
 &gmac0 {
+	status = "okay";
+
 	nvmem-cells = <&et0macaddr>;
 	nvmem-cell-names = "mac-address";
 };
 
 &gmac1 {
+	status = "okay";
+
 	nvmem-cells = <&et1macaddr>;
 	nvmem-cell-names = "mac-address";
 };
 
+&gmac2 {
+	status = "okay";
+};
+
 &spi_nor {
 	/* Serial SPI NOR Flash MX 25L1606E */
 	status = "okay";
arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts +2 -10
index d6dc448b2849..8c1d94a5b546 100644
@@ -103,20 +103,12 @@ &uart2 {
 	 */
 };
 
-&gmac0 {
-	status = "disabled";
-};
-
-&gmac1 {
-	status = "disabled";
-};
 &gmac2 {
+	status = "okay";
+
 	nvmem-cell-names = "mac-address";
 	nvmem-cells = <&mac_address>;
 };
-&gmac3 {
-	status = "disabled";
-};
 
 &pwm {
 	status = "okay";
arch/arm/boot/dts/broadcom/bcm94708.dts +12 -0
index d9eb2040b963..0ae0c4bd76ef 100644
@@ -47,3 +47,15 @@ memory@0 {
 &usb3_phy {
 	status = "okay";
 };
+
+&gmac0 {
+	status = "okay";
+};
+
+&gmac1 {
+	status = "okay";
+};
+
+&gmac2 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm94709.dts +12 -0
index 618c812eef73..e569cdadebbc 100644
@@ -47,3 +47,15 @@ memory@0 {
 &usb3_phy {
 	status = "okay";
 };
+
+&gmac0 {
+	status = "okay";
+};
+
+&gmac1 {
+	status = "okay";
+};
+
+&gmac2 {
+	status = "okay";
+};
arch/arm/boot/dts/broadcom/bcm953012er.dts +4 -0
index d939ec9f4a9e..9819bc429c76 100644
@@ -65,6 +65,10 @@ &spi_nor {
 	status = "okay";
 };
 
+&gmac0 {
+	status = "okay";
+};
+
 &srab {
 	status = "okay";
 
arch/arm/boot/dts/broadcom/bcm953012hr.dts +12 -0
index b728cd54715e..23e54d77ad38 100644
@@ -51,6 +51,18 @@ memory@80000000 {
 	};
 };
 
+&gmac0 {
+	status = "okay";
+};
+
+&gmac1 {
+	status = "okay";
+};
+
+&gmac2 {
+	status = "okay";
+};
+
 &nandcs {
 	partition@0 {
 		label = "nboot";
arch/arm/boot/dts/broadcom/bcm953012k.dts +12 -0
index 27c0992f1855..59ee5aa74498 100644
@@ -117,3 +117,15 @@ &uart1 {
 &usb3_phy {
 	status = "okay";
 };
+
+&gmac0 {
+	status = "okay";
+};
+
+&gmac1 {
+	status = "okay";
+};
+
+&gmac2 {
+	status = "okay";
+};
Signature · 1 line
2.56.1