ath79: Fix mac reset and gmac compatible in ar934x.dtsi
authorChuanhong Guo <gch981213@gmail.com>
Tue, 17 Jul 2018 09:09:13 +0000 (17:09 +0800)
committerJohn Crispin <john@phrozen.org>
Mon, 30 Jul 2018 08:43:33 +0000 (10:43 +0200)
Also add phy-mode and fixed-link as gmac1 is always connected
to the builtin switch.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ath79/dts/ar934x.dtsi

index 6d5e5262d87b4634d06dd91f8066724770c01b95..75865a718a8c61bd1b015324741f9fb9e9a9ff43 100644 (file)
                        };
 
                        gmac: gmac@18070000 {
-                               compatible = "qca,ar9340-gmac", "qca,ar9330-gmac";
+                               compatible = "qca,ar9340-gmac";
                                reg = <0x18070000 0x14>;
                        };
 
        pll-reg = <0x4 0x2c 17>;
        pll-handle = <&pll>;
 
-       resets = <&rst 8>, <&rst 9>;
-       reset-names = "mac", "phy";
+       resets = <&rst 9>;
+       reset-names = "mac";
 };
 
 &mdio1 {
 &eth1 {
        compatible = "qca,ar9340-eth", "syscon";
 
-       resets = <&rst 12>, <&rst 13>;
-       reset-names = "mac", "phy";
+       resets = <&rst 13>;
+       reset-names = "mac";
+       phy-mode = "gmii";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+       };
 };