[PATCH v3 01/22] ARM: dts: BCM5301X: AC56U: specify switch
Rosen Penev
rosenp at gmail.com
Wed Dec 2 16:32:15 PST 2026
On Wed, Dec 2, 2026 at 4:02 PM Florian Fainelli
<florian.fainelli at broadcom.com> wrote:
>
> On 12/2/26 15:45, Rosen Penev wrote:
> > On Wed, Dec 2, 2026 at 1:15 AM Rafał Miłecki <zajec5 at gmail.com> wrote:
> >>
> >> W dniu 21.11.2026 o 01:25, Rosen Penev pisze:
> >>> 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 at 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 at 0 {
> >>> + label = "lan1";
> >>> + };
> >>> +
> >>> + port at 1 {
> >>> + label = "lan2";
> >>> + };
> >>> +
> >>> + port at 2 {
> >>> + label = "lan3";
> >>> + };
> >>> +
> >>> + port at 3 {
> >>> + label = "lan4";
> >>> + };
> >>> +
> >>> + port at 4 {
> >>> + label = "wan";
> >>> +
> >>> + nvmem-cells = <&et0macaddr 1>;
> >>> + nvmem-cell-names = "mac-address";
> >>> + };
> >>> +
> >>> + port at 5 {
> >>> + status = "disabled";
> >>> + };
> >>> +
> >>> + port at 7 {
> >>> + status = "disabled";
> >>> + };
> >>
> >> I bet you did this to make Linux use port 8 (that's what we did for
> >> other devices). It's incorrect though as port 5 and 7 are most likely
> >> usable as well. You shouldn't disable those.
> >
> > Yes. using port 8 adds functionality. using the others in addition does not.
> >
> > Multiple ports are currently unsupported by b53 AFAIK as there is a
> > difference in tagging.
> >
> > See: https://github.com/openwrt/openwrt/blob/main/target/linux/bcm53xx/patches-6.18/702-net-dsa-tag_brcm-use-the-regular-tag-on-other-BCM58xx-CPU-ports.patch
>
> The tagging format is you enable the flow accelerator, see this
> patch set:
> https://lore.kernel.org/all/20261201182227.3990791-1-florian.fainelli@broadcom.com/
>
> And in fact, we will need to use port 5 for traffic that cannot be
> offloaded so we can keep them enabled, just not in use if we prefer.
Looked into this. bcm47094-asus-rt-ac88u.dts has
&gmac1 {
status = "okay";
nvmem-cells = <&et1macaddr 0>;
nvmem-cell-names = "mac-address";
};
&gmac2 {
nvmem-cells = <&et1macaddr 1>;
nvmem-cell-names = "mac-address";
};
Should it be changed with the others such that
&gmac0 {
nvmem-cells = <&et0macaddr 0>;
nvmem-cell-names = "mac-address";
};
&gmac2 {
nvmem-cells = <&et0macaddr 1>;
nvmem-cell-names = "mac-address";
};
Or keep gmac0 at
nvmem-cells = <&et0macaddr 0>;
> --
> Florian
More information about the linux-arm-kernel
mailing list