0029be21e0f9045b2d0d3912ee08b67db456a689
[openwrt/openwrt.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 label = "green:lan";
47 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
48 };
49
50 led_power: power {
51 label = "green:power";
52 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
53 };
54
55 usb {
56 label = "green:usb";
57 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
58 trigger-sources = <&ohci_port1>, <&ehci_port1>;
59 linux,default-trigger = "usbport";
60 };
61
62 wan {
63 label = "green:wan";
64 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
65 };
66
67 wlan {
68 label = "green:wlan";
69 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
70 };
71
72 wps {
73 label = "green:wps";
74 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
75 };
76 };
77 };
78
79 &state_default {
80 gpio {
81 groups = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an";
82 function = "gpio";
83 };
84 };
85
86 &wmac {
87 status = "okay";
88
89 nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>;
90 nvmem-cell-names = "eeprom", "mac-address";
91 };
92
93 &pcie {
94 status = "okay";
95 };
96
97 &pcie0 {
98 mt76@0,0 {
99 reg = <0x0000 0 0 0 0>;
100 ieee80211-freq-limit = <5000000 6000000>;
101 nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
102 nvmem-cell-names = "eeprom", "mac-address";
103 };
104 };