[PATCH v3 01/22] ARM: dts: BCM5301X: AC56U: specify switch

Rafał Miłecki zajec5 at gmail.com
Wed Dec 2 01:15:01 PST 2026


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.


> +	};
> +};




More information about the linux-arm-kernel mailing list