* [PATCH 01/17] ARM: dts: BCM5301X: AC56U: specify switch
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 02/17] ARM: dts: BCM5301X: AC68U: " Rosen Penev
` (15 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
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.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../dts/broadcom/bcm4708-asus-rt-ac56u.dts | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts b/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts
index 708599f8c4be..574fc4f76e75 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts
@@ -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";
+ };
+ };
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 02/17] ARM: dts: BCM5301X: AC68U: specify switch
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
2026-11-18 5:47 ` [PATCH 01/17] ARM: dts: BCM5301X: AC56U: specify switch Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 03/17] ARM: dts: BCM5301X: N18U: " Rosen Penev
` (14 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
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.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../dts/broadcom/bcm4708-asus-rt-ac68u.dts | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts b/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts
index 6e82d2af9f1c..0f369c5d6a5c 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts
@@ -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";
+ };
+ };
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 03/17] ARM: dts: BCM5301X: N18U: specify switch
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
2026-11-18 5:47 ` [PATCH 01/17] ARM: dts: BCM5301X: AC56U: specify switch Rosen Penev
2026-11-18 5:47 ` [PATCH 02/17] ARM: dts: BCM5301X: AC68U: " Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 04/17] ARM: dts: BCM5301X: R7000: " Rosen Penev
` (13 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
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.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../dts/broadcom/bcm47081-asus-rt-n18u.dts | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts b/arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts
index 5874e6b606de..4ae4e2d00b7c 100644
--- a/arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts
@@ -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";
+ };
+ };
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 04/17] ARM: dts: BCM5301X: R7000: specify switch
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (2 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 03/17] ARM: dts: BCM5301X: N18U: " Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 05/17] ARM: dts: BCM5301X: EA6300: set gmac2 MAC address from nvram Rosen Penev
` (12 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
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.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../dts/broadcom/bcm4709-netgear-r7000.dts | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts b/arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts
index 6ea845f3ac1d..65affe615bb8 100644
--- a/arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts
@@ -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";
+ };
+ };
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 05/17] ARM: dts: BCM5301X: EA6300: set gmac2 MAC address from nvram
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (3 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 04/17] ARM: dts: BCM5301X: R7000: " Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 06/17] ARM: dts: BCM5301X: EA6300: specify switch Rosen Penev
` (11 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
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.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
index 03d5546a147c..f8dd08cc7cca 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
@@ -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";
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 06/17] ARM: dts: BCM5301X: EA6300: specify switch
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (4 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 05/17] ARM: dts: BCM5301X: EA6300: set gmac2 MAC address from nvram Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 07/17] ARM: dts: BCM5301X: phicomm-k3: add nvram node Rosen Penev
` (10 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
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.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../broadcom/bcm4708-linksys-ea6300-v1.dts | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
index f8dd08cc7cca..bca4c440a499 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
@@ -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";
+ };
+ };
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 07/17] ARM: dts: BCM5301X: phicomm-k3: add nvram node
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (5 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 06/17] ARM: dts: BCM5301X: EA6300: specify switch Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 08/17] ARM: dts: BCM5301X: phicomm-k3: specify switch Rosen Penev
` (9 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
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.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts b/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
index bb1bc4e61bc2..5b9250976f13 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
@@ -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";
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 08/17] ARM: dts: BCM5301X: phicomm-k3: specify switch
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (6 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 07/17] ARM: dts: BCM5301X: phicomm-k3: add nvram node Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 09/17] ARM: dts: BCM5301X: AC87U: use gmac2 Rosen Penev
` (8 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
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.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../boot/dts/broadcom/bcm47094-phicomm-k3.dts | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts b/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
index 5b9250976f13..018faf90fd4d 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
@@ -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";
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 09/17] ARM: dts: BCM5301X: AC87U: use gmac2
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (7 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 08/17] ARM: dts: BCM5301X: phicomm-k3: specify switch Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 10/17] ARM: dts: BCM5301X: SR400AC: " Rosen Penev
` (7 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
The nvram MAC address is assigned to gmac0, but switch port 5 (gmac0) is
disabled and port 7 (gmac1) is the CPU port, so the interface that
carries the traffic never gets it.
Use port 8 as the CPU port instead and move the MAC address to gmac2,
which port 8 connects to. Port 8 is the switch's IMP port and gmac2 is
present on all Northstar SoCs, so this matches the other boards in this
series.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts b/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts
index 2fed02ebb1d7..4114c6eda1ac 100644
--- a/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts
@@ -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";
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 10/17] ARM: dts: BCM5301X: SR400AC: use gmac2
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (8 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 09/17] ARM: dts: BCM5301X: AC87U: use gmac2 Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 11/17] ARM: dts: BCM5301X: DIR-885L: " Rosen Penev
` (6 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
Use switch port 8 as the CPU port instead of port 5. Port 8 is the
switch's IMP port and connects to gmac2, which is present on all
Northstar SoCs. Move the nvram MAC address from gmac0 to gmac2 to match.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts
index 03f4a6d37a67..60661dde8ca5 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts
@@ -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";
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 11/17] ARM: dts: BCM5301X: DIR-885L: use gmac2
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (9 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 10/17] ARM: dts: BCM5301X: SR400AC: " Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 12/17] ARM: dts: BCM5301X: Luxul: " Rosen Penev
` (5 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
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")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts b/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts
index c5099defe9f9..b64ba9afa736 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts
@@ -121,7 +121,7 @@ &usb3 {
vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
};
-&gmac0 {
+&gmac2 {
nvmem-cells = <&et2macaddr 0>;
nvmem-cell-names = "mac-address";
};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 12/17] ARM: dts: BCM5301X: Luxul: use gmac2
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (10 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 11/17] ARM: dts: BCM5301X: DIR-885L: " Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 13/17] ARM: dts: BCM5301X: Buffalo: " Rosen Penev
` (4 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
Use switch port 8 as the CPU port instead of port 5 on all Luxul boards.
Port 8 is the switch's IMP port and connects to gmac2, which is present
on all Northstar SoCs. Move the nvram MAC address from gmac0 to gmac2 to
match.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts | 6 +++---
arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts | 6 +++---
arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts | 6 +++---
arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts | 6 +++---
arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts | 6 +++---
arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts | 6 +++---
arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts | 6 +++---
arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts | 6 +++---
arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts | 6 +++---
arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts | 6 +++---
10 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts b/arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts
index 72e960c888ac..3375b234fc9b 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts
@@ -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";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts b/arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts
index 750e17482371..26ac2f2ed5a3 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts
@@ -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";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts b/arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts
index 0198b5f9e4a7..2b152115d03e 100644
--- a/arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts
@@ -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";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts b/arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts
index 73ff1694a4a0..b5664216dcef 100644
--- a/arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts
@@ -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";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts
index e374062eb5b7..00aa28a2e70e 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts
@@ -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";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts
index 3a33705c2969..04420ebf056a 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts
@@ -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";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts
index cf95af9db1e6..765b74919fcd 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts
@@ -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";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts
index 992c19e1cfa1..eb4bdf8c9c7e 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts
@@ -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";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts
index 4d0ba315a204..d5436d70ecbf 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts
@@ -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";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts
index 8e487f60a2cc..64d3634d130c 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts
@@ -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";
};
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 13/17] ARM: dts: BCM5301X: Buffalo: use gmac2
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (11 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 12/17] ARM: dts: BCM5301X: Luxul: " Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 6:06 ` sashiko-bot
2026-11-18 5:47 ` [PATCH 14/17] ARM: dts: BCM5301X: R6250: " Rosen Penev
` (3 subsequent siblings)
16 siblings, 1 reply; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
Use switch port 8 as the CPU port instead of port 5 on the WZR-600DHP2,
WZR-1166DHP and WZR-1166DHP2. Port 8 is the switch's IMP port and
connects to gmac2, which is present on all Northstar SoCs.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi | 4 ++--
arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi
index 9f9084269ef5..2f1d49733f09 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi
@@ -179,7 +179,7 @@ port@4 {
};
port@5 {
- label = "cpu";
+ status = "disabled";
};
port@7 {
@@ -187,7 +187,7 @@ port@7 {
};
port@8 {
- status = "disabled";
+ label = "cpu";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts b/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts
index 192b8db5a89c..47670b9bfb79 100644
--- a/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts
@@ -143,7 +143,7 @@ port@4 {
};
port@5 {
- label = "cpu";
+ status = "disabled";
};
port@7 {
@@ -151,7 +151,7 @@ port@7 {
};
port@8 {
- status = "disabled";
+ label = "cpu";
};
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* Re: [PATCH 13/17] ARM: dts: BCM5301X: Buffalo: use gmac2
2026-11-18 5:47 ` [PATCH 13/17] ARM: dts: BCM5301X: Buffalo: " Rosen Penev
@ 2026-11-18 6:06 ` sashiko-bot
0 siblings, 0 replies; 19+ messages in thread
From: sashiko-bot @ 2026-11-18 6:06 UTC (permalink / raw)
To: Rosen Penev; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] ARM: dts: bcm5301x: missing gmac2 MAC address on Buffalo
switch port 8
--
commit 6598066c57888a377c2571d52762ecf08eda69ee
Author: Rosen Penev <rosenp@gmail.com>
ARM: dts: BCM5301X: Buffalo: use gmac2
This commit switches the DSA CPU port from switch port 5 (gmac0) to port 8
(gmac2) on the Buffalo WZR-600DHP2, WZR-1166DHP, and WZR-1166DHP2 routers.
> diff --git a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi
> index 9f9084269ef58..2f1d49733f092 100644
> --- a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi
> +++ b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi
> @@ -179,7 +179,7 @@ port@4 {
> };
>
> port@5 {
> - label = "cpu";
> + status = "disabled";
> };
>
> port@7 {
> @@ -187,7 +187,7 @@ port@7 {
> };
>
> port@8 {
> - status = "disabled";
> + label = "cpu";
> };
> };
> };
> diff --git a/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts b/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts
> index 192b8db5a89c3..47670b9bfb799 100644
> --- a/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts
> +++ b/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts
> @@ -143,7 +143,7 @@ port@4 {
> };
>
> port@5 {
> - label = "cpu";
> + status = "disabled";
> };
>
> port@7 {
> @@ -151,7 +151,7 @@ port@7 {
> };
>
> port@8 {
> - status = "disabled";
> + label = "cpu";
> };
> };
> };
[Severity: Medium]
Does switching the CPU port from port@5 (gmac0) to port@8 (gmac2) without
assigning a MAC address to gmac2 in the device tree cause these boards to
fall back to a random MAC address on every boot?
When no MAC address is specified in the device tree, bgmac_probe() falls
back to the BCMA SPROM indexed by core_unit:
drivers/net/ethernet/broadcom/bgmac-bcma.c:bgmac_probe() {
...
/* If no MAC address assigned via device tree, check SPROM */
if (err) {
switch (core->core_unit) {
case 0:
mac = sprom->et0mac;
break;
case 1:
mac = sprom->et1mac;
break;
case 2:
mac = sprom->et2mac;
break;
...
}
Previously, port@5 used gmac0 (core_unit 0), which obtained the factory MAC
address from sprom->et0mac (NVRAM et0macaddr). Because neither DTS defines
nvmem-cells on gmac2 (core_unit 2), gmac2 reads sprom->et2mac (NVRAM
et2macaddr), which is unset on these boards. As a result,
bgmac_enet_probe() generates a random MAC address for gmac2, and
dsa_user_create() inherits that random MAC address for all switch user
ports (lan1-lan4 and wan).
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261118054758.132233-1-rosenp@gmail.com?part=13
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 14/17] ARM: dts: BCM5301X: R6250: use gmac2
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (12 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 13/17] ARM: dts: BCM5301X: Buffalo: " Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 15/17] ARM: dts: BCM5301X: Meraki MR26/MR32: " Rosen Penev
` (2 subsequent siblings)
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
Use switch port 8 as the CPU port instead of port 5. Port 8 is the
switch's IMP port and connects to gmac2, which is present on all
Northstar SoCs.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts b/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts
index 2bdbc7d18b0e..f5c135f2ad71 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts
@@ -120,7 +120,7 @@ port@4 {
};
port@5 {
- label = "cpu";
+ status = "disabled";
};
port@7 {
@@ -128,7 +128,7 @@ port@7 {
};
port@8 {
- status = "disabled";
+ label = "cpu";
};
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 15/17] ARM: dts: BCM5301X: Meraki MR26/MR32: use gmac2
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (13 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 14/17] ARM: dts: BCM5301X: R6250: " Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 16/17] ARM: dts: BCM5301X: BCM953012ER: " Rosen Penev
2026-11-18 5:47 ` [PATCH 17/17] ARM: dts: BCM5301X: enable GMACs in boards that use them Rosen Penev
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
Use switch port 8 as the CPU port instead of port 5. Port 8 is the
switch's IMP port and connects to gmac2, which is present on all
Northstar SoCs. Move the MAC address from gmac0 to gmac2 to match.
The port 5 fixed-link only repeated the bcm-ns.dtsi default, and
bcm-ns.dtsi already describes the port 8 fixed-link.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../dts/broadcom/bcm53015-meraki-mr26.dts | 19 +++++++------------
.../dts/broadcom/bcm53016-meraki-mr32.dts | 15 +++++----------
2 files changed, 12 insertions(+), 22 deletions(-)
diff --git a/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts b/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts
index 08abfdc63d18..890945a5690b 100644
--- a/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts
+++ b/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts
@@ -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";
};
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts b/arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts
index 45bd27906f29..d6dc448b2849 100644
--- a/arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts
+++ b/arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts
@@ -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";
};
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 16/17] ARM: dts: BCM5301X: BCM953012ER: use gmac2
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (14 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 15/17] ARM: dts: BCM5301X: Meraki MR26/MR32: " Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
2026-11-18 5:47 ` [PATCH 17/17] ARM: dts: BCM5301X: enable GMACs in boards that use them Rosen Penev
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
Use switch port 8 as the CPU port instead of port 5. Port 8 is the
switch's IMP port and connects to gmac2, which is present on all
Northstar SoCs. bcm-ns.dtsi already links port 8 to gmac2.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm953012er.dts | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/broadcom/bcm953012er.dts b/arch/arm/boot/dts/broadcom/bcm953012er.dts
index d939ec9f4a9e..96b93b65536b 100644
--- a/arch/arm/boot/dts/broadcom/bcm953012er.dts
+++ b/arch/arm/boot/dts/broadcom/bcm953012er.dts
@@ -80,9 +80,7 @@ port@1 {
};
port@5 {
- reg = <5>;
- label = "cpu";
- ethernet = <&gmac0>;
+ status = "disabled";
};
port@7 {
@@ -90,7 +88,7 @@ port@7 {
};
port@8 {
- status = "disabled";
+ label = "cpu";
};
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread* [PATCH 17/17] ARM: dts: BCM5301X: enable GMACs in boards that use them
2026-11-18 5:47 [PATCH 00/17] ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port Rosen Penev
` (15 preceding siblings ...)
2026-11-18 5:47 ` [PATCH 16/17] ARM: dts: BCM5301X: BCM953012ER: " Rosen Penev
@ 2026-11-18 5:47 ` Rosen Penev
16 siblings, 0 replies; 19+ messages in thread
From: Rosen Penev @ 2026-11-18 5:47 UTC (permalink / raw)
To: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Broadcom internal kernel review list, Rafał Miłecki,
linux-arm-kernel, devicetree
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 enable gmac2, which is present on all
Northstar SoCs and connects to the switch's IMP port.
gmac3 has no fixed-link and no board describes what it connects to, so
it stays disabled everywhere.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
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 | 4 ++++
.../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 | 4 ++++
.../boot/dts/broadcom/bcm4708-netgear-r6300-v2.dts | 4 ++++
.../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 | 4 ++++
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 | 4 ++++
arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts | 12 ++----------
arch/arm/boot/dts/broadcom/bcm94708.dts | 4 ++++
arch/arm/boot/dts/broadcom/bcm94709.dts | 4 ++++
arch/arm/boot/dts/broadcom/bcm953012er.dts | 4 ++++
arch/arm/boot/dts/broadcom/bcm953012hr.dts | 12 ++++++++++++
arch/arm/boot/dts/broadcom/bcm953012k.dts | 4 ++++
48 files changed, 170 insertions(+), 24 deletions(-)
diff --git a/arch/arm/boot/dts/broadcom/bcm-ns.dtsi b/arch/arm/boot/dts/broadcom/bcm-ns.dtsi
index 707c8693b282..850b74a0fe6a 100644
--- a/arch/arm/boot/dts/broadcom/bcm-ns.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm-ns.dtsi
@@ -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";
};
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts b/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts
index 574fc4f76e75..433e3719cab6 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac56u.dts
@@ -103,6 +103,8 @@ &usb3_phy {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts b/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts
index 0f369c5d6a5c..9b741a402de5 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-asus-rt-ac68u.dts
@@ -94,6 +94,8 @@ &usb3_phy {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts
index f5c95c9a712e..62b028c0fb1e 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wxr-1750dhp.dts
@@ -136,3 +136,15 @@ &usb3 {
&usb3_phy {
status = "okay";
};
+
+&gmac0 {
+ status = "okay";
+};
+
+&gmac1 {
+ status = "okay";
+};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi
index 2f1d49733f09..6347ff72a334 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1166dhp-common.dtsi
@@ -191,3 +191,7 @@ port@8 {
};
};
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1750dhp.dts b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1750dhp.dts
index 95ef6ca7210b..99f1c8ebf3ae 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1750dhp.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1750dhp.dts
@@ -149,3 +149,7 @@ &spi_nor {
&usb3_phy {
status = "okay";
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
index bca4c440a499..5d5f6bb4fdda 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts
@@ -56,6 +56,8 @@ &usb3 {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts
index ad246f9a734a..eab136192704 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts
@@ -47,3 +47,7 @@ &usb3_phy {
&usb3 {
vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts b/arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts
index 3375b234fc9b..4c3feb950d5e 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-luxul-xap-1510.dts
@@ -62,6 +62,8 @@ button-restart {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts b/arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts
index 26ac2f2ed5a3..9f884f11f8fb 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-luxul-xwc-1000.dts
@@ -69,6 +69,8 @@ button-restart {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts b/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts
index f5c135f2ad71..813a97555464 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6250.dts
@@ -132,3 +132,7 @@ port@8 {
};
};
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6300-v2.dts b/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6300-v2.dts
index 55f0d9e90d5f..cd60068790eb 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6300-v2.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-netgear-r6300-v2.dts
@@ -90,3 +90,7 @@ &usb3_phy {
&usb3 {
vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts
index 60661dde8ca5..23d39c9e07d2 100644
--- a/arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4708-smartrg-sr400ac.dts
@@ -129,6 +129,8 @@ &spi_nor {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts b/arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts
index 4ae4e2d00b7c..059c32126427 100644
--- a/arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47081-asus-rt-n18u.dts
@@ -88,6 +88,8 @@ &usb3_phy {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts b/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts
index 47670b9bfb79..c63d1b1ccf5d 100644
--- a/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-600dhp2.dts
@@ -155,3 +155,7 @@ port@8 {
};
};
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-900dhp.dts b/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-900dhp.dts
index 7655e4ff2d1c..4493e2472bf4 100644
--- a/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-900dhp.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-900dhp.dts
@@ -107,3 +107,7 @@ button-restart {
&usb3_phy {
status = "okay";
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts b/arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts
index 2b152115d03e..7eda4acc11b3 100644
--- a/arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts
@@ -62,6 +62,8 @@ button-restart {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts b/arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts
index b5664216dcef..64f56a320099 100644
--- a/arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47081-luxul-xwr-1200.dts
@@ -111,6 +111,8 @@ &usb2 {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47081-tplink-archer-c5-v2.dts b/arch/arm/boot/dts/broadcom/bcm47081-tplink-archer-c5-v2.dts
index b6a5886698b2..03bb7576c0bb 100644
--- a/arch/arm/boot/dts/broadcom/bcm47081-tplink-archer-c5-v2.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47081-tplink-archer-c5-v2.dts
@@ -111,3 +111,7 @@ partition-file-system {
&usb2 {
vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts b/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts
index 3da2daee0c84..1b285996e422 100644
--- a/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts
@@ -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";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts b/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts
index 4114c6eda1ac..101123158e8b 100644
--- a/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac87u.dts
@@ -72,6 +72,8 @@ button-restart {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et1macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4709-buffalo-wxr-1900dhp.dts b/arch/arm/boot/dts/broadcom/bcm4709-buffalo-wxr-1900dhp.dts
index b7cd2faa30ce..b8e6d3c2b7ca 100644
--- a/arch/arm/boot/dts/broadcom/bcm4709-buffalo-wxr-1900dhp.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4709-buffalo-wxr-1900dhp.dts
@@ -130,3 +130,7 @@ &spi_nor {
&usb3_phy {
status = "okay";
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm4709-linksys-ea9200.dts b/arch/arm/boot/dts/broadcom/bcm4709-linksys-ea9200.dts
index 37593e7582ba..df926ee77a1c 100644
--- a/arch/arm/boot/dts/broadcom/bcm4709-linksys-ea9200.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4709-linksys-ea9200.dts
@@ -163,6 +163,8 @@ &usb3 {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et2macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts b/arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts
index 65affe615bb8..dcedd0129e2f 100644
--- a/arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4709-netgear-r7000.dts
@@ -115,6 +115,8 @@ &usb3_phy {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts b/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts
index a4b135d37659..3d48b2a6d160 100644
--- a/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts
@@ -248,3 +248,7 @@ port@8 {
};
};
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm4709-tplink-archer-c9-v1.dts b/arch/arm/boot/dts/broadcom/bcm4709-tplink-archer-c9-v1.dts
index 5a8b2b1567e6..48a10bb7df07 100644
--- a/arch/arm/boot/dts/broadcom/bcm4709-tplink-archer-c9-v1.dts
+++ b/arch/arm/boot/dts/broadcom/bcm4709-tplink-archer-c9-v1.dts
@@ -120,3 +120,7 @@ partition-file-system {
&usb3_phy {
status = "okay";
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dts b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dts
index 1655ac95769c..e6dfda3e00ab 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dts
@@ -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";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts
index 8bf623c67de0..79b089f1dd26 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac5300.dts
@@ -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";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts
index a197f447fd97..a4c8928646d1 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts
@@ -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";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts b/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts
index b64ba9afa736..7137bf2452a7 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts
@@ -122,6 +122,8 @@ &usb3 {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et2macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-890l.dts b/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-890l.dts
index 944d592dee2c..9029257fe1f2 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-890l.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-890l.dts
@@ -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
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts
index bdbd0f097925..1fc92eaf74ea 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts
@@ -307,3 +307,7 @@ partition@5200000 {
};
};
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts
index 00aa28a2e70e..393a3994c3f3 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts
@@ -66,6 +66,8 @@ &usb3 {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts
index 04420ebf056a..ff05766d5171 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xap-1610.dts
@@ -60,6 +60,8 @@ button-restart {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts
index 765b74919fcd..947424406bf2 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xbr-4500.dts
@@ -66,6 +66,8 @@ &usb3 {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts
index eb4bdf8c9c7e..59b6b03d9683 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwc-2000.dts
@@ -56,6 +56,8 @@ &uart1 {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts
index d5436d70ecbf..f7f6d045b5f3 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3100.dts
@@ -106,6 +106,8 @@ &usb3 {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts
index 64d3634d130c..c83c063270e6 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dts
@@ -77,6 +77,8 @@ button-restart {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts b/arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts
index 76d562610654..d87e9f7d8acf 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-netgear-r8500.dts
@@ -94,3 +94,7 @@ button-rfkill {
&usb3_phy {
status = "okay";
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts b/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
index 018faf90fd4d..72138fced325 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
@@ -48,6 +48,8 @@ &usb3_phy {
};
&gmac2 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts b/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts
index 890945a5690b..fba1074b7c9e 100644
--- a/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts
+++ b/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts
@@ -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 {
diff --git a/arch/arm/boot/dts/broadcom/bcm53016-dlink-dwl-8610ap.dts b/arch/arm/boot/dts/broadcom/bcm53016-dlink-dwl-8610ap.dts
index c1f54391746f..9f14d78f66f6 100644
--- a/arch/arm/boot/dts/broadcom/bcm53016-dlink-dwl-8610ap.dts
+++ b/arch/arm/boot/dts/broadcom/bcm53016-dlink-dwl-8610ap.dts
@@ -80,11 +80,15 @@ et1macaddr: et1macaddr {
};
&gmac0 {
+ status = "okay";
+
nvmem-cells = <&et0macaddr>;
nvmem-cell-names = "mac-address";
};
&gmac1 {
+ status = "okay";
+
nvmem-cells = <&et1macaddr>;
nvmem-cell-names = "mac-address";
};
diff --git a/arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts b/arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts
index d6dc448b2849..8c1d94a5b546 100644
--- a/arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts
+++ b/arch/arm/boot/dts/broadcom/bcm53016-meraki-mr32.dts
@@ -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";
diff --git a/arch/arm/boot/dts/broadcom/bcm94708.dts b/arch/arm/boot/dts/broadcom/bcm94708.dts
index d9eb2040b963..7c8a6c286086 100644
--- a/arch/arm/boot/dts/broadcom/bcm94708.dts
+++ b/arch/arm/boot/dts/broadcom/bcm94708.dts
@@ -47,3 +47,7 @@ memory@0 {
&usb3_phy {
status = "okay";
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm94709.dts b/arch/arm/boot/dts/broadcom/bcm94709.dts
index 618c812eef73..b4fbf178b363 100644
--- a/arch/arm/boot/dts/broadcom/bcm94709.dts
+++ b/arch/arm/boot/dts/broadcom/bcm94709.dts
@@ -47,3 +47,7 @@ memory@0 {
&usb3_phy {
status = "okay";
};
+
+&gmac2 {
+ status = "okay";
+};
diff --git a/arch/arm/boot/dts/broadcom/bcm953012er.dts b/arch/arm/boot/dts/broadcom/bcm953012er.dts
index 96b93b65536b..ce2df9efe1ef 100644
--- a/arch/arm/boot/dts/broadcom/bcm953012er.dts
+++ b/arch/arm/boot/dts/broadcom/bcm953012er.dts
@@ -65,6 +65,10 @@ &spi_nor {
status = "okay";
};
+&gmac2 {
+ status = "okay";
+};
+
&srab {
status = "okay";
diff --git a/arch/arm/boot/dts/broadcom/bcm953012hr.dts b/arch/arm/boot/dts/broadcom/bcm953012hr.dts
index b728cd54715e..23e54d77ad38 100644
--- a/arch/arm/boot/dts/broadcom/bcm953012hr.dts
+++ b/arch/arm/boot/dts/broadcom/bcm953012hr.dts
@@ -51,6 +51,18 @@ memory@80000000 {
};
};
+&gmac0 {
+ status = "okay";
+};
+
+&gmac1 {
+ status = "okay";
+};
+
+&gmac2 {
+ status = "okay";
+};
+
&nandcs {
partition@0 {
label = "nboot";
diff --git a/arch/arm/boot/dts/broadcom/bcm953012k.dts b/arch/arm/boot/dts/broadcom/bcm953012k.dts
index 27c0992f1855..400f985569d6 100644
--- a/arch/arm/boot/dts/broadcom/bcm953012k.dts
+++ b/arch/arm/boot/dts/broadcom/bcm953012k.dts
@@ -117,3 +117,7 @@ &uart1 {
&usb3_phy {
status = "okay";
};
+
+&gmac2 {
+ status = "okay";
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 19+ messages in thread