bmips: dgnd3700v2: enable external BCM53125 switch
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 23 May 2022 18:52:53 +0000 (20:52 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 21 Mar 2023 18:45:20 +0000 (19:45 +0100)
The Netgear DGND3700v2 has an external BCM53125 switch which can now be enabled
as a DSA disjoint switch tree setup.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bmips/dts/bcm6362-netgear-dgnd3700-v2.dts
target/linux/bmips/nand/base-files/etc/board.d/02_network

index b99fecaaa626e3cf8890ec255df49f08ac6702af..d0befc2c34754cac2eabdeb8e6bc0d2975d395a4 100644 (file)
        };
 };
 
+&mdio_ext {
+       switch@1e {
+               compatible = "brcm,bcm53125";
+               reg = <30>;
+
+               dsa,member = <1 0>;
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+                               label = "lan1";
+                       };
+
+                       port@1 {
+                               reg = <1>;
+                               label = "lan2";
+                       };
+
+                       port@2 {
+                               reg = <2>;
+                               label = "lan3";
+                       };
+
+                       port@3 {
+                               reg = <3>;
+                               label = "lan4";
+                       };
+
+                       port@4 {
+                               reg = <4>;
+                               label = "wan";
+                       };
+
+                       port@8 {
+                               reg = <8>;
+                               label = "cpu";
+
+                               phy-mode = "rgmii";
+                               ethernet = <&switch0port4>;
+
+                               fixed-link {
+                                       speed = <1000>;
+                                       full-duplex;
+                               };
+                       };
+               };
+       };
+};
+
 &nflash {
        status = "okay";
 
 };
 
 &switch0 {
+       dsa,member = <0 0>;
+
        ports {
-               port@4 {
+               switch0port4: port@4 {
                        reg = <4>;
                        label = "extsw";
 
index e853621665fc7d6741d9f53f5b92c7e9b482587c..3134116bc25f76e8a5b563b1a5656e2163729d39 100644 (file)
@@ -11,7 +11,7 @@ comtrend,vr-3032u)
        ;;
 netgear,dgnd3700-v2)
        ucidef_set_bridge_device switch
-       ucidef_set_interface_lan "extsw"
+       ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
        ;;
 esac