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