aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar9331_tl-mr3020-v1.dts
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:33 +0200
commitc7c807cb8c3fd6538101de885f66d4681785defe (patch)
tree23411daf59b11fe7842481a8c7f599001d836ae5 /target/linux/ath79/dts/ar9331_tl-mr3020-v1.dts
parentf6c99241baec562c092704f2c80650da65d3e683 (diff)
downloadupstream-c7c807cb8c3fd6538101de885f66d4681785defe.tar.gz
upstream-c7c807cb8c3fd6538101de885f66d4681785defe.tar.bz2
upstream-c7c807cb8c3fd6538101de885f66d4681785defe.zip
ath79: ar933x: Update dts for current ag71xx driver
gmac0 is always connected to switch phy4 and mdio1 is always needed. So add phy handle for eth0 and enable mdio1 by default. Move fixed-link for gmac1 from device dts to ar9331.dtsi because gmac1 is always connected to builtin switch. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts/ar9331_tl-mr3020-v1.dts')
-rw-r--r--target/linux/ath79/dts/ar9331_tl-mr3020-v1.dts25
1 files changed, 9 insertions, 16 deletions
diff --git a/target/linux/ath79/dts/ar9331_tl-mr3020-v1.dts b/target/linux/ath79/dts/ar9331_tl-mr3020-v1.dts
index 531a637687..74db416ba6 100644
--- a/target/linux/ath79/dts/ar9331_tl-mr3020-v1.dts
+++ b/target/linux/ath79/dts/ar9331_tl-mr3020-v1.dts
@@ -155,31 +155,24 @@
};
};
-&mdio1 {
- status = "okay";
- phy4: ethernet-phy@4 {
- reg = <4>;
- };
-};
-&eth1 {
+&eth0 {
status = "okay";
- phy-handle = <&phy4>;
mtd-mac-address = <&uboot 0x1fc00>;
- fixed-link {
- speed = <1000>;
- full-duplex;
- };
-
gmac-config {
- device = <&gmac>;
+ device = <&gmac>;
- switch-phy-addr-swap = <1>;
- switch-phy-swap = <1>;
+ switch-phy-addr-swap = <0>;
+ switch-phy-swap = <0>;
};
};
+&eth1 {
+ status = "okay";
+ compatible = "syscon", "simple-mfd";
+};
+
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;