aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts
diff options
context:
space:
mode:
authorChristoph Krapp <achterin@googlemail.com>2018-07-02 14:39:54 +0200
committerMathias Kresin <dev@kresin.me>2018-07-07 21:07:40 +0200
commite420b7b5c517d03e1282b5889065e22143f9c4ef (patch)
tree58338d26fb98253f91e8309bae8524d720e36f0e /target/linux/ath79/dts
parent16d6a63f857a4e9eeb1f173e964264d8a06e65eb (diff)
downloadupstream-e420b7b5c517d03e1282b5889065e22143f9c4ef.tar.gz
upstream-e420b7b5c517d03e1282b5889065e22143f9c4ef.tar.bz2
upstream-e420b7b5c517d03e1282b5889065e22143f9c4ef.zip
ath79: add support for UniFi AC-Mesh Pro
The Unifi AC-Mesh Pro has identical hardware to the Unifi AC-Pro except USB support. Furthermore for setting parameters like antenna gain it is helpful to know the exact device variant. Signed-off-by: Christoph Krapp <achterin@googlemail.com>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r--target/linux/ath79/dts/qca9563_ubnt_unifiac-mesh-pro.dts9
-rw-r--r--target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dts25
-rw-r--r--target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dtsi24
3 files changed, 35 insertions, 23 deletions
diff --git a/target/linux/ath79/dts/qca9563_ubnt_unifiac-mesh-pro.dts b/target/linux/ath79/dts/qca9563_ubnt_unifiac-mesh-pro.dts
new file mode 100644
index 0000000000..9d80217d4e
--- /dev/null
+++ b/target/linux/ath79/dts/qca9563_ubnt_unifiac-mesh-pro.dts
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "qca9563_ubnt_unifiac-pro.dtsi"
+
+/ {
+ compatible = "ubnt,unifiac-mesh-pro", "qca,qca9563";
+ model = "Ubiquiti UniFi-AC-MESH PRO";
+};
diff --git a/target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dts b/target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dts
index 31ca0ab965..41449bbfc3 100644
--- a/target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dts
+++ b/target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dts
@@ -1,11 +1,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
-#include "qca9563_ubnt_unifiac.dtsi"
+#include "qca9563_ubnt_unifiac-pro.dtsi"
/ {
compatible = "ubnt,unifiac-pro", "qca,qca9563";
- model = "Ubiquiti UniFi-AC-PRO/MESH PRO";
+ model = "Ubiquiti UniFi-AC-PRO";
};
&usb_phy0 {
@@ -15,24 +15,3 @@
&usb0 {
status = "okay";
};
-
-&mdio0 {
- status = "okay";
- phy-mask = <0>;
-
- phy0: ethernet-phy@0 {
- reg = <0>;
- phy-mode = "sgmii";
- qca,ar8327-initvals = <
- 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
- 0x7c 0x0000007e /* PORT0_STATUS */
- >;
- };
-};
-
-&eth0 {
- status = "okay";
-
- mtd-mac-address = <&eeprom 0x0>;
- phy-handle = <&phy0>;
-};
diff --git a/target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dtsi b/target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dtsi
new file mode 100644
index 0000000000..f218143550
--- /dev/null
+++ b/target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dtsi
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "qca9563_ubnt_unifiac.dtsi"
+
+&mdio0 {
+ status = "okay";
+ phy-mask = <0>;
+
+ phy0: ethernet-phy@0 {
+ reg = <0>;
+ phy-mode = "sgmii";
+ qca,ar8327-initvals = <
+ 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
+ 0x7c 0x0000007e /* PORT0_STATUS */
+ >;
+ };
+};
+
+&eth0 {
+ status = "okay";
+
+ mtd-mac-address = <&eeprom 0x0>;
+ phy-handle = <&phy0>;
+};