mips: add ethernet support for qca953x referenced boards
authorRosy Song <rosysong@rosinson.com>
Tue, 5 Feb 2019 09:50:55 +0000 (17:50 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 12 Apr 2019 15:32:50 +0000 (17:32 +0200)
Signed-off-by: Rosy Song <rosysong@rosinson.com>
arch/mips/dts/ap143.dts
arch/mips/dts/qca953x.dtsi

index 6aedd87db9a85595f00f3c701f51c9094da2c1d3..2e23225f12921ac355bf3ce27bf3e265f8c110ff 100644 (file)
@@ -40,3 +40,8 @@
                reg = <0>;
        };
 };
+
+&gmac1 {
+       status = "okay";
+       phy-mode = "rgmii";
+};
index ba29ea287e2bab3dfaddd3b6fdd2ac9740d7c4eb..90d34ddbbfbcabdf8829e68fd002ccbfa3e8979a 100644 (file)
 
                                status = "disabled";
                        };
+
+                       gmac0: eth0@0x19000000 {
+                               compatible = "qca,ag953x-mac";
+                               reg = <0x19000000 0x200>;
+                               phy = <&phy4>;
+                               phy-mode = "rmii";
+
+                               status = "disabled";
+                       };
+
+                       gmac1: eth1@0x1a000000 {
+                               compatible = "qca,ag953x-mac";
+                               reg = <0x1a000000 0x200>;
+                               phy = <&phy0>;
+                               phy-mode = "rgmii";
+
+                               status = "disabled";
+
+                               mdio {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                                       phy0: ethernet-phy@0 {
+                                               reg = <0>;
+                                               phy-mode = "rmii";
+                                       };
+                                       phy4: ethernet-phy@4 {
+                                               reg = <4>;
+                                               phy-mode = "rmii";
+                                       };
+                               };
+                       };
                };
 
                spi0: spi@1f000000 {