[openwrt/openwrt] mediatek: filogic: fix mt7986a ethernet devicetree entries

LEDE Commits lede-commits at lists.infradead.org
Wed Nov 9 11:45:20 PST 2022


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5faff99c7b1e1da1901e539f3c677e5b31454045

commit 5faff99c7b1e1da1901e539f3c677e5b31454045
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Oct 30 07:15:36 2022 +0100

    mediatek: filogic: fix mt7986a ethernet devicetree entries
    
    Add all ports, rename DSA ports to start at lan1
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 .../arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi  | 36 ++++++++++++++--------
 1 file changed, 24 insertions(+), 12 deletions(-)

diff --git a/target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi b/target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi
index 41ae5f171c..3fbe288dae 100644
--- a/target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi
+++ b/target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dtsi
@@ -70,12 +70,6 @@
 		compatible = "mediatek,eth-mac";
 		reg = <1>;
 		phy-mode = "2500base-x";
-
-		fixed-link {
-			speed = <2500>;
-			full-duplex;
-			pause;
-		};
 	};
 
 	mdio: mdio-bus {
@@ -95,15 +89,14 @@
 	phy5: phy at 5 {
 		compatible = "ethernet-phy-id67c9.de0a";
 		reg = <5>;
+
 		reset-gpios = <&pio 6 1>;
 		reset-deassert-us = <20000>;
-		phy-mode = "2500base-x";
 	};
 
 	phy6: phy at 6 {
 		compatible = "ethernet-phy-id67c9.de0a";
 		reg = <6>;
-		phy-mode = "2500base-x";
 	};
 
 	switch: switch at 0 {
@@ -311,6 +304,12 @@
 	};
 };
 
+&gmac1 {
+	phy-mode = "2500base-x";
+	phy-connection-type = "2500base-x";
+	phy-handle = <&phy6>;
+};
+
 &switch {
 	ports {
 		#address-cells = <1>;
@@ -318,22 +317,35 @@
 
 		port at 0 {
 			reg = <0>;
-			label = "lan0";
+			label = "lan1";
 		};
 
 		port at 1 {
 			reg = <1>;
-			label = "lan1";
+			label = "lan2";
 		};
 
 		port at 2 {
 			reg = <2>;
-			label = "lan2";
+			label = "lan3";
 		};
 
 		port at 3 {
 			reg = <3>;
-			label = "lan3";
+			label = "lan4";
+		};
+
+		port at 4 {
+			reg = <4>;
+			label = "wan";
+		};
+
+		port at 5 {
+			reg = <5>;
+			label = "lan6";
+
+			phy-mode = "2500base-x";
+			phy-handle = <&phy5>;
 		};
 
 		port at 6 {




More information about the lede-commits mailing list