[PATCH v3 08/22] ARM: dts: BCM5301X: phicomm-k3: specify switch

Rosen Penev rosenp at gmail.com
Wed Dec 2 15:50:16 PST 2026


On Wed, Dec 2, 2026 at 1:19 AM Rafał Miłecki <zajec5 at gmail.com> wrote:
>
> W dniu 21.11.2026 o 01:25, Rosen Penev pisze:
> > 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.
>
> bcm-ns.dtsi doesn't say anything about amount of LAN/WAN ports. I don't what part of bcm-ns.dtsi switch description is incorrect for K3.
It specifies port at 4 with a reg value. Should be disabled.
>
>
>  > 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 at 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 at 0 {
> > +                     label = "lan1";
> > +             };
> > +
> > +             port at 1 {
> > +                     label = "lan2";
> > +             };
> > +
> > +             port at 2 {
> > +                     label = "lan3";
> > +             };
> > +
> > +             port at 3 {
> > +                     label = "wan";
> > +
> > +                     nvmem-cells = <&et0macaddr 1>;
> > +                     nvmem-cell-names = "mac-address";
> > +             };
> > +
> > +             port at 4 {
> > +                     status = "disabled";
> > +             };
> > +
> > +             port at 5 {
> > +                     status = "disabled";
> > +             };
> > +
> > +             port at 7 {
> > +                     status = "disabled";
> > +             };
> > +     };
> > +};
> > +
> >   &nandcs {
> >       partitions {
> >               compatible = "fixed-partitions";
>



More information about the linux-arm-kernel mailing list