ARM: dts: BCM5301X: describe switches and use gmac2 as the CPU port
Subsystems (2)
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
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
@@ -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
PATCH v3 2/22 ARM: dts: BCM5301X: AC68U: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 3/22 ARM: dts: BCM5301X: N18U: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 4/22 ARM: dts: BCM5301X: R7000: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 5/22 ARM: dts: BCM5301X: EA6300: set gmac2 MAC address from nvram
In reply to Rosen PenevDescribe 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
@@ -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
PATCH v3 6/22 ARM: dts: BCM5301X: EA6300: specify switch
In reply to Rosen Penevbcm-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
@@ -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
PATCH v3 7/22 ARM: dts: BCM5301X: phicomm-k3: add nvram node
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 8/22 ARM: dts: BCM5301X: phicomm-k3: specify switch
In reply to Rosen Penevbcm-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
@@ -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
PATCH v3 9/22 ARM: dts: BCM5301X: R6300 v2: add nvram node
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 10/22 ARM: dts: BCM5301X: R6300 v2: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 11/22 ARM: dts: BCM5301X: EA6500 v2: add nvram node
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 12/22 ARM: dts: BCM5301X: EA6500 v2: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 13/22 ARM: dts: BCM5301X: R8500: add nvram node
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 14/22 ARM: dts: BCM5301X: R8500: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 15/22 ARM: dts: BCM5301X: WZR-900DHP: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 16/22 ARM: dts: BCM5301X: WZR-1750DHP: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 17/22 ARM: dts: BCM5301X: WXR-1900DHP: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 18/22 ARM: dts: BCM5301X: Archer C5 v2: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 19/22 ARM: dts: BCM5301X: Archer C9 v1: specify switch
In reply to Rosen PenevAdd 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
@@ -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
PATCH v3 20/22 ARM: dts: BCM5301X: DIR-885L: use gmac2
In reply to Rosen PenevCommit 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.
--- 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
@@ -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
PATCH v3 21/22 ARM: dts: BCM5301X: use gmac2 as the CPU port
In reply to Rosen PenevPort 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH v3 22/22 ARM: dts: BCM5301X: enable GMACs in boards that use them
In reply to Rosen Penevbcm-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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -191,3 +191,7 @@ port@8 { }; }; }; + +&gmac0 { + status = "okay"; +};
arch/arm/boot/dts/broadcom/bcm4708-buffalo-wzr-1750dhp.dts +4 -0
@@ -187,3 +187,7 @@ port@8 { }; }; }; + +&gmac0 { + status = "okay"; +};
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6300-v1.dts +2 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -155,3 +155,7 @@ port@8 { }; }; }; + +&gmac0 { + status = "okay"; +};
arch/arm/boot/dts/broadcom/bcm47081-buffalo-wzr-900dhp.dts +4 -0
@@ -145,3 +145,7 @@ port@8 { }; }; }; + +&gmac0 { + status = "okay"; +};
arch/arm/boot/dts/broadcom/bcm47081-luxul-xap-1410.dts +2 -0
@@ -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
@@ -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
@@ -149,3 +149,7 @@ port@8 { }; }; }; + +&gmac0 { + status = "okay"; +};
arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts +6 -0
@@ -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
@@ -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
@@ -168,3 +168,7 @@ port@8 { }; }; }; + +&gmac0 { + status = "okay"; +};
arch/arm/boot/dts/broadcom/bcm4709-linksys-ea9200.dts +2 -0
@@ -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
@@ -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
@@ -248,3 +248,7 @@ port@8 { }; }; }; + +&gmac2 { + status = "okay"; +};
arch/arm/boot/dts/broadcom/bcm4709-tplink-archer-c9-v1.dts +4 -0
@@ -158,3 +158,7 @@ port@8 { }; }; }; + +&gmac0 { + status = "okay"; +};
arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dts +6 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -307,3 +307,7 @@ partition@5200000 { }; }; }; + +&gmac2 { + status = "okay"; +};
arch/arm/boot/dts/broadcom/bcm47094-luxul-abr-4500.dts +2 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -65,6 +65,10 @@ &spi_nor { status = "okay"; }; +&gmac0 { + status = "okay"; +}; + &srab { status = "okay";
arch/arm/boot/dts/broadcom/bcm953012hr.dts +12 -0
@@ -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
@@ -117,3 +117,15 @@ &uart1 { &usb3_phy { status = "okay"; }; + +&gmac0 { + status = "okay"; +}; + +&gmac1 { + status = "okay"; +}; + +&gmac2 { + status = "okay"; +};
Signature · 1 line
2.56.1