ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.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 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 phy4: ethernet-phy@4 {
46 phy-mode = "rgmii";
47 reg = <4>;
48 };
49 };
50
51 &eth0 {
52 status = "okay";
53
54 /* default for ar934x, except for 1000M and 10M */
55 pll-data = <0x06000000 0x00000101 0x00001313>;
56
57 mtd-mac-address = <&art 0x0>;
58
59 phy-mode = "rgmii";
60 phy-handle = <&phy4>;
61
62 gmac-config {
63 device = <&gmac>;
64 rxd-delay = <3>;
65 rxdv-delay = <3>;
66 };
67 };