ath79: move dts-v1 statement to ath79.dtsi
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9342_ubnt_nanostation-ac.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "ar9342_ubnt_wa.dtsi"
4
5 / {
6 compatible = "ubnt,nanostation-ac","ubnt,wa", "qca,ar9342";
7 model = "Ubiquiti Nanostation AC (WA)";
8
9 aliases {
10 led-boot = &led_rssi3;
11 led-failsafe = &led_rssi3;
12 led-upgrade = &led_rssi3;
13 };
14
15 leds {
16 compatible = "gpio-leds";
17
18 rssi0 {
19 label = "ubnt:blue:rssi0";
20 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
21 };
22
23 rssi1 {
24 label = "ubnt:blue:rssi1";
25 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
26 };
27
28 rssi2 {
29 label = "ubnt:blue:rssi2";
30 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
31 };
32
33 led_rssi3: rssi3 {
34 label = "ubnt:blue:rssi3";
35 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
36 };
37 };
38 };
39
40 &mdio0 {
41 status = "okay";
42
43 phy-mask = <4>;
44 phy0: ethernet-phy@0 {
45 phy-mode = "rgmii";
46 reg = <0>;
47
48 qca,ar8327-initvals = <
49 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
50 0x58 0xffb7ffb7 /* LED_CTRL2 */
51 0x5c 0x03ffff00 /* LED_CTRL3 */
52 0x7c 0x0000007e /* PORT0_STATUS */
53 >;
54 };
55 };
56
57 &eth0 {
58 status = "okay";
59
60 /* default for ar934x, except for 1000M and 10M */
61 pll-data = <0x06000000 0x00000101 0x00001313>;
62
63 mtd-mac-address = <&art 0x0>;
64
65 phy-mode = "rgmii";
66 phy-handle = <&phy0>;
67
68 gmac-config {
69 device = <&gmac>;
70 rxd-delay = <2>;
71 rxdv-delay = <2>;
72 };
73 };
74
75 &wmac {
76 status = "okay";
77
78 mtd-cal-data = <&art 0x1000>;
79 };