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