ath79: initial support for Ubiquiti RouterStation and RouterStation Pro
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7161_ubnt_routerstation-pro.dts
diff --git a/target/linux/ath79/dts/ar7161_ubnt_routerstation-pro.dts b/target/linux/ath79/dts/ar7161_ubnt_routerstation-pro.dts
new file mode 100644 (file)
index 0000000..123d1ef
--- /dev/null
@@ -0,0 +1,33 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "ar7161_ubnt_routerstation.dtsi"
+
+/ {
+       compatible = "ubnt,routerstation-pro", "qca,ar7161";
+       model = "Ubiquiti RouterStation Pro";
+};
+
+&mdio0 {
+       status = "okay";
+
+       phy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+
+       phy4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
+&eth0 {
+       compatible = "qca,ar7100-eth", "syscon";
+       phy-mode = "rgmii";
+       phy-handle = <&phy4>;
+};
+
+&eth1 {
+       compatible = "qca,ar7100-eth", "syscon";
+       phy-mode = "rgmii";
+       phy-handle = <&phy0>;
+};