Revert "ramips: Fix WiFi after 5f7396ebef09b224edf08b0bda113613a42f0928"
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / TL-WR902ACV3.dts
1 /dts-v1/;
2
3 #include "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 gpio-keys-polled {
13 compatible = "gpio-keys-polled";
14 #address-cells = <1>;
15 #size-cells = <0>;
16 poll-interval = <20>;
17
18 reset {
19 label = "reset";
20 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
22 };
23
24 sw1 {
25 label = "sw1";
26 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
27 linux,code = <BTN_0>;
28 };
29
30 sw2 {
31 label = "sw2";
32 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
33 linux,code = <BTN_1>;
34 };
35 };
36
37 gpio-leds {
38 compatible = "gpio-leds";
39
40 lan {
41 label = "tl-wr902ac-v3:green:lan";
42 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
43 };
44
45 power {
46 label = "tl-wr902ac-v3:green:power";
47 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
48 };
49
50 usb {
51 label = "tl-wr902ac-v3:green:usb";
52 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
53 };
54
55 wan {
56 label = "tl-wr902ac-v3:green:wan";
57 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
58 };
59
60 wlan {
61 label = "tl-wr902ac-v3:green:wlan";
62 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
63 };
64
65 wps {
66 label = "tl-wr902ac-v3:green:wps";
67 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
68 };
69 };
70 };
71
72 &pinctrl {
73 state_default: pinctrl0 {
74 gpio {
75 ralink,group = "i2c", "i2s", "p0led_an", "p4led_an", "uart1", "wdt", "wled_an";
76 ralink,function = "gpio";
77 };
78 };
79 };
80
81 &ehci {
82 status = "okay";
83 };
84
85 &ohci {
86 status = "okay";
87 };
88
89 &pcie {
90 status = "okay";
91
92 pcie-bridge {
93 mt76@1,0 {
94 reg = <0x0000 0 0 0 0>;
95 device_type = "pci";
96 mediatek,mtd-eeprom = <&factory 0x28000>;
97 ieee80211-freq-limit = <5000000 6000000>;
98 mtd-mac-address = <&factory 0xf100>;
99 mtd-mac-address-increment = <(-1)>;
100 };
101 };
102 };