ramips: move includes to DTSI for mt7628an_tplink_8m*
[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 / {
6 compatible = "tplink,tl-wr902ac-v3", "mediatek,mt7628an-soc";
7 model = "TP-Link TL-WR902AC v3";
8
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24
25 sw1 {
26 label = "sw1";
27 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
28 linux,code = <BTN_0>;
29 };
30
31 sw2 {
32 label = "sw2";
33 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
34 linux,code = <BTN_1>;
35 };
36
37 wps {
38 label = "wps";
39 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 };
42 };
43
44 leds {
45 compatible = "gpio-leds";
46
47 lan {
48 label = "tl-wr902ac-v3:green:lan";
49 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
50 };
51
52 led_power: power {
53 label = "tl-wr902ac-v3:green:power";
54 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
55 };
56
57 usb {
58 label = "tl-wr902ac-v3:green:usb";
59 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
60 trigger-sources = <&ohci_port1>, <&ehci_port1>;
61 linux,default-trigger = "usbport";
62 };
63
64 wan {
65 label = "tl-wr902ac-v3:green:wan";
66 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
67 };
68
69 wlan {
70 label = "tl-wr902ac-v3:green:wlan";
71 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
72 };
73
74 wps {
75 label = "tl-wr902ac-v3:green:wps";
76 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
77 };
78 };
79 };
80
81 &state_default {
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 &ehci {
89 status = "okay";
90 };
91
92 &ohci {
93 status = "okay";
94 };
95
96 &pcie {
97 status = "okay";
98 };
99
100 &pcie0 {
101 mt76@0,0 {
102 reg = <0x0000 0 0 0 0>;
103 mediatek,mtd-eeprom = <&factory 0x28000>;
104 ieee80211-freq-limit = <5000000 6000000>;
105 mtd-mac-address = <&factory 0xf100>;
106 mtd-mac-address-increment = <(-1)>;
107 };
108 };