[PATCH v3 01/22] ARM: dts: BCM5301X: AC56U: specify switch
Rosen Penev
rosenp at gmail.com
Wed Dec 2 15:45:50 PST 2026
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
>
>
> > + };
> > +};
>
More information about the linux-arm-kernel
mailing list