summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRosy Song <rosysong@rosinson.com>2019-02-05 17:50:55 +0800
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2019-04-12 17:32:50 +0200
commit395e2d43bd9e840358c6f6c3b0f04c13e23c2c2f (patch)
treeee7c33765388e95866898cb6546564a91d3551ce /arch
parentf1f943e96c02bd09548df58b89c5fb41991a5532 (diff)
mips: add ethernet support for qca953x referenced boards
Signed-off-by: Rosy Song <rosysong@rosinson.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/dts/ap143.dts5
-rw-r--r--arch/mips/dts/qca953x.dtsi31
2 files changed, 36 insertions, 0 deletions
diff --git a/arch/mips/dts/ap143.dts b/arch/mips/dts/ap143.dts
index 6aedd87db9..2e23225f12 100644
--- a/arch/mips/dts/ap143.dts
+++ b/arch/mips/dts/ap143.dts
@@ -40,3 +40,8 @@
reg = <0>;
};
};
+
+&gmac1 {
+ status = "okay";
+ phy-mode = "rgmii";
+};
diff --git a/arch/mips/dts/qca953x.dtsi b/arch/mips/dts/qca953x.dtsi
index ba29ea287e..90d34ddbbf 100644
--- a/arch/mips/dts/qca953x.dtsi
+++ b/arch/mips/dts/qca953x.dtsi
@@ -65,6 +65,37 @@
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 {