ath79: Add support for Ubiquiti Nanostation M (XW)
[openwrt/.git] / target / linux / ath79 / dts / ar9342_ubnt_nanostation-m-xw.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9342_ubnt_xw.dtsi"
8
9 / {
10         compatible = "ubnt,nanostation-m-xw", "ubnt,xw", "qca,ar9342";
11         model = "Ubiquiti Nanostation M (XW)";
12 };
13
14 &mdio0 {
15         status = "okay";
16
17         phy4-mii-enable;
18         phy-mask = <0x23>;
19
20         phy4: ethernet-phy@0 {
21                 reg = <0>;
22                 phy-mode = "mii";
23         };
24 };
25
26 &eth0 {
27         status = "okay";
28
29         phy-mode = "mii";
30         phy-handle = <&phy4>;
31
32         gmac-config {
33                 device = <&gmac>;
34                 mii-gmac0 = <1>;
35                 mii-gmac0-slave = <1>;
36         };
37 };