Przeglądaj źródła

ath79: ar7240: Update dts for current ag71xx driver

Signed-off-by: Chuanhong Guo <[email protected]>
Chuanhong Guo 7 lat temu
rodzic
commit
4e5ba50760

+ 20 - 4
target/linux/ath79/dts/ar7240.dtsi

@@ -33,7 +33,25 @@
 };
 
 &mdio0 {
+	status = "okay";
+
+	compatible = "qca,ar7240-mdio";
 	builtin-switch;
+
+	builtin_switch: switch0@1f {
+		compatible = "qca,ar8216-builtin";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		reg = <0x1f>;
+
+		mdio-bus {
+			swphy4: ethernet-phy@4 {
+				reg = <4>;
+				phy-mode = "mii";
+			};
+		};
+	};
 };
 
 &eth0 {
@@ -43,10 +61,8 @@
 
 	resets = <&rst 8>, <&rst 9>;
 	reset-names = "phy", "mac";
-};
-
-&mdio1 {
-	builtin-switch;
+	phy-mode = "mii";
+	phy-handle = <&swphy4>;
 };
 
 &eth1 {

+ 0 - 11
target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi

@@ -103,8 +103,6 @@
 &eth0 {
 	status = "okay";
 
-	phy-handle = <&phy4>;
-
 	mtd-mac-address = <&uboot 0x1fc00>;
 	mtd-mac-address-increment = <(-1)>;
 };
@@ -116,15 +114,6 @@
 	mtd-mac-address-increment = <1>;
 };
 
-&mdio0 {
-	status = "okay";
-
-	phy4: ethernet-phy@4 {
-		reg = <4>;
-		phy-mode = "mii";
-	};
-};
-
 &pcie {
 	status = "okay";
 

+ 0 - 11
target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts

@@ -123,8 +123,6 @@
 &eth0 {
 	status = "okay";
 
-	phy-handle = <&phy4>;
-
 	mtd-mac-address = <&uboot 0x1fc00>;
 	mtd-mac-address-increment = <(-1)>;
 };
@@ -136,15 +134,6 @@
 	mtd-mac-address-increment = <1>;
 };
 
-&mdio0 {
-	status = "okay";
-
-	phy4: ethernet-phy@4 {
-		reg = <4>;
-		phy-mode = "mii";
-	};
-};
-
 &pcie {
 	status = "okay";