mediatek: filogic: fix mt7986a ethernet devicetree entries
authorFelix Fietkau <nbd@nbd.name>
Sun, 30 Oct 2022 06:15:36 +0000 (07:15 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 9 Nov 2022 19:43:51 +0000 (20:43 +0100)
Add all ports, rename DSA ports to start at lan1

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi

index 41ae5f171c0487e07a6ff70ab41593a70c9ec15c..3fbe288dae7af0d0aad68e1d21ec080bc98809b1 100644 (file)
                compatible = "mediatek,eth-mac";
                reg = <1>;
                phy-mode = "2500base-x";
-
-               fixed-link {
-                       speed = <2500>;
-                       full-duplex;
-                       pause;
-               };
        };
 
        mdio: mdio-bus {
        phy5: phy@5 {
                compatible = "ethernet-phy-id67c9.de0a";
                reg = <5>;
+
                reset-gpios = <&pio 6 1>;
                reset-deassert-us = <20000>;
-               phy-mode = "2500base-x";
        };
 
        phy6: phy@6 {
                compatible = "ethernet-phy-id67c9.de0a";
                reg = <6>;
-               phy-mode = "2500base-x";
        };
 
        switch: switch@0 {
        };
 };
 
+&gmac1 {
+       phy-mode = "2500base-x";
+       phy-connection-type = "2500base-x";
+       phy-handle = <&phy6>;
+};
+
 &switch {
        ports {
                #address-cells = <1>;
 
                port@0 {
                        reg = <0>;
-                       label = "lan0";
+                       label = "lan1";
                };
 
                port@1 {
                        reg = <1>;
-                       label = "lan1";
+                       label = "lan2";
                };
 
                port@2 {
                        reg = <2>;
-                       label = "lan2";
+                       label = "lan3";
                };
 
                port@3 {
                        reg = <3>;
-                       label = "lan3";
+                       label = "lan4";
+               };
+
+               port@4 {
+                       reg = <4>;
+                       label = "wan";
+               };
+
+               port@5 {
+                       reg = <5>;
+                       label = "lan6";
+
+                       phy-mode = "2500base-x";
+                       phy-handle = <&phy5>;
                };
 
                port@6 {