0e3c6b5c9f130a2400265ceb269578b8054ae4de
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9342_ubnt_nanostation-ac.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include "ar9342_ubnt_wa.dtsi"
5
6 / {
7         compatible = "ubnt,nanostation-ac","ubnt,wa", "qca,ar9342";
8         model = "Ubiquiti Nanostation 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         phy0: ethernet-phy@0 {
40                 phy-mode = "rgmii";
41                 reg = <0>;
42
43                 qca,ar8327-initvals = <
44                         0x04 0x07600000 /* PORT0 PAD MODE CTRL */
45                         0x58 0xffb7ffb7 /* LED_CTRL2 */
46                         0x5c 0x03ffff00 /* LED_CTRL3 */
47                         0x7c 0x0000007e /* PORT0_STATUS */
48                 >;
49         };
50 };
51
52 &eth0 {
53         status = "okay";
54
55         /* default for ar934x, except for 1000M and 10M */
56         pll-data = <0x06000000 0x00000101 0x00001313>;
57
58         mtd-mac-address = <&art 0x0>;
59
60         phy-mode = "rgmii";
61         phy-handle = <&phy0>;
62
63         gmac-config {
64                 device = <&gmac>;
65                 rxd-delay = <2>;
66                 rxdv-delay = <2>;
67         };
68 };
69
70 &wmac {
71         status = "okay";
72
73         mtd-cal-data = <&art 0x1000>;
74 };