08c73ff3672fe4fcd38a7151136b6b9aa8078aa2
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9342_ubnt_nanobeam-ac.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include "ar9342_ubnt_wa.dtsi"
5
6 / {
7         compatible = "ubnt,nanobeam-ac", "ubnt,wa", "qca,ar9342";
8         model = "Ubiquiti NanoBeam AC (WA)";
9
10         leds {
11                 compatible = "gpio-leds";
12
13                 rssi0 {
14                         label = "ubnt:blue:rssi0";
15                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
16                 };
17
18                 rssi1 {
19                         label = "ubnt:blue:rssi1";
20                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
21                 };
22
23                 rssi2 {
24                         label = "ubnt:blue:rssi2";
25                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
26                 };
27
28                 rssi3 {
29                         label = "ubnt:blue:rssi3";
30                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31                 };
32         };
33 };
34
35 &mdio0 {
36         status = "okay";
37
38         phy-mask = <4>;
39         phy4: ethernet-phy@4 {
40                 phy-mode = "rgmii";
41                 reg = <4>;
42         };
43 };
44
45 &eth0 {
46         status = "okay";
47
48         /* default for ar934x, except for 1000M and 10M */
49         pll-data = <0x06000000 0x00000101 0x00001313>;
50
51         mtd-mac-address = <&art 0x0>;
52
53         phy-mode = "rgmii";
54         phy-handle = <&phy4>;
55
56         gmac-config {
57                 device = <&gmac>;
58                 rxd-delay = <3>;
59                 rxdv-delay = <3>;
60         };
61 };