aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ath79')
-rw-r--r--target/linux/ath79/dts/ar7240.dtsi24
-rw-r--r--target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi11
-rw-r--r--target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts11
3 files changed, 20 insertions, 26 deletions
diff --git a/target/linux/ath79/dts/ar7240.dtsi b/target/linux/ath79/dts/ar7240.dtsi
index 6805d1a786..f662b4b445 100644
--- a/target/linux/ath79/dts/ar7240.dtsi
+++ b/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 {
diff --git a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
index 1ae9896aa4..edf209053e 100644
--- a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
+++ b/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";
diff --git a/target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts b/target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts
index 5bc78d7eef..8754537754 100644
--- a/target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts
+++ b/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";