bfdc03b1b33604ceadab7ca13e98496bd8ea419d
[openwrt/staging/lynxis.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 wps {
37 label = "wps";
38 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_WPS_BUTTON>;
40 };
41 };
42
43 gpio-leds {
44 compatible = "gpio-leds";
45
46 lan {
47 label = "tl-wr902ac-v3:green:lan";
48 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
49 };
50
51 power {
52 label = "tl-wr902ac-v3:green:power";
53 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
54 };
55
56 usb {
57 label = "tl-wr902ac-v3:green:usb";
58 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
59 };
60
61 wan {
62 label = "tl-wr902ac-v3:green:wan";
63 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
64 };
65
66 wlan {
67 label = "tl-wr902ac-v3:green:wlan";
68 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
69 };
70
71 wps {
72 label = "tl-wr902ac-v3:green:wps";
73 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
74 };
75 };
76 };
77
78 &pinctrl {
79 state_default: pinctrl0 {
80 gpio {
81 ralink,group = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an";
82 ralink,function = "gpio";
83 };
84 };
85 };
86
87 &ehci {
88 status = "okay";
89 };
90
91 &ohci {
92 status = "okay";
93 };
94
95 &pcie {
96 status = "okay";
97
98 pcie-bridge {
99 mt76@1,0 {
100 reg = <0x0000 0 0 0 0>;
101 device_type = "pci";
102 mediatek,mtd-eeprom = <&factory 0x28000>;
103 ieee80211-freq-limit = <5000000 6000000>;
104 mtd-mac-address = <&factory 0xf100>;
105 mtd-mac-address-increment = <(-1)>;
106 };
107 };
108 };