ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wr902ac-v3.dts
1 #include <dt-bindings/leds/common.h>
2
3 #include "mt7628an_tplink_8m.dtsi"
4
5 / {
6 compatible = "tplink,tl-wr902ac-v3", "mediatek,mt7628an-soc";
7 model = "TP-Link TL-WR902AC v3";
8
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24
25 sw1 {
26 label = "sw1";
27 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
28 linux,code = <BTN_0>;
29 };
30
31 sw2 {
32 label = "sw2";
33 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
34 linux,code = <BTN_1>;
35 };
36
37 wps {
38 label = "wps";
39 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 };
42 };
43
44 leds {
45 compatible = "gpio-leds";
46
47 lan {
48 function = LED_FUNCTION_LAN;
49 color = <LED_COLOR_ID_GREEN>;
50 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
51 };
52
53 led_power: power {
54 function = LED_FUNCTION_POWER;
55 color = <LED_COLOR_ID_GREEN>;
56 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
57 };
58
59 usb {
60 function = LED_FUNCTION_USB;
61 color = <LED_COLOR_ID_GREEN>;
62 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
63 trigger-sources = <&ohci_port1>, <&ehci_port1>;
64 linux,default-trigger = "usbport";
65 };
66
67 wan {
68 function = LED_FUNCTION_WAN;
69 color = <LED_COLOR_ID_GREEN>;
70 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
71 };
72
73 wlan {
74 function = LED_FUNCTION_WLAN;
75 color = <LED_COLOR_ID_GREEN>;
76 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
77 };
78
79 wps {
80 function = LED_FUNCTION_WPS;
81 color = <LED_COLOR_ID_GREEN>;
82 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
83 };
84 };
85 };
86
87 &state_default {
88 gpio {
89 groups = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an";
90 function = "gpio";
91 };
92 };
93
94 &wmac {
95 status = "okay";
96
97 nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>;
98 nvmem-cell-names = "eeprom", "mac-address";
99 };
100
101 &pcie {
102 status = "okay";
103 };
104
105 &pcie0 {
106 mt76@0,0 {
107 reg = <0x0000 0 0 0 0>;
108 ieee80211-freq-limit = <5000000 6000000>;
109 nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
110 nvmem-cell-names = "eeprom", "mac-address";
111 };
112 };