aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar7240.dtsi
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2018-07-17 17:09:14 +0800
committerJohn Crispin <john@phrozen.org>2018-07-30 10:43:35 +0200
commit4e5ba5076097cf10865c9d65a6fbe887dba5a467 (patch)
treec4f70b800e1dca73480dbca074e2080d56c652d9 /target/linux/ath79/dts/ar7240.dtsi
parentf43e8f90049fbbf7961854660c09e88fb7555ef2 (diff)
downloadupstream-4e5ba5076097cf10865c9d65a6fbe887dba5a467.tar.gz
upstream-4e5ba5076097cf10865c9d65a6fbe887dba5a467.tar.bz2
upstream-4e5ba5076097cf10865c9d65a6fbe887dba5a467.zip
ath79: ar7240: Update dts for current ag71xx driver
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts/ar7240.dtsi')
-rw-r--r--target/linux/ath79/dts/ar7240.dtsi24
1 files changed, 20 insertions, 4 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 {