ath79: indicate boot/failsafe/upgrade for NanoBeam/Nanostation AC
[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         aliases {
11                 led-boot = &led_rssi3;
12                 led-failsafe = &led_rssi3;
13                 led-upgrade = &led_rssi3;
14         };
15
16         leds {
17                 compatible = "gpio-leds";
18
19                 rssi0 {
20                         label = "ubnt:blue:rssi0";
21                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
22                 };
23
24                 rssi1 {
25                         label = "ubnt:blue:rssi1";
26                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
27                 };
28
29                 rssi2 {
30                         label = "ubnt:blue:rssi2";
31                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
32                 };
33
34                 led_rssi3: rssi3 {
35                         label = "ubnt:blue:rssi3";
36                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37                 };
38         };
39 };
40
41 &mdio0 {
42         status = "okay";
43
44         phy-mask = <4>;
45         phy0: ethernet-phy@0 {
46                 phy-mode = "rgmii";
47                 reg = <0>;
48
49                 qca,ar8327-initvals = <
50                         0x04 0x07600000 /* PORT0 PAD MODE CTRL */
51                         0x58 0xffb7ffb7 /* LED_CTRL2 */
52                         0x5c 0x03ffff00 /* LED_CTRL3 */
53                         0x7c 0x0000007e /* PORT0_STATUS */
54                 >;
55         };
56 };
57
58 &eth0 {
59         status = "okay";
60
61         /* default for ar934x, except for 1000M and 10M */
62         pll-data = <0x06000000 0x00000101 0x00001313>;
63
64         mtd-mac-address = <&art 0x0>;
65
66         phy-mode = "rgmii";
67         phy-handle = <&phy0>;
68
69         gmac-config {
70                 device = <&gmac>;
71                 rxd-delay = <2>;
72                 rxdv-delay = <2>;
73         };
74 };
75
76 &wmac {
77         status = "okay";
78
79         mtd-cal-data = <&art 0x1000>;
80 };