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