ramips: add support for TP-Link RE200 v1
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_widora_neo.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7         compatible = "widora,neo", "mediatek,mt7628an-soc";
8
9         aliases {
10                 led-boot = &led_wifi;
11                 led-failsafe = &led_wifi;
12                 led-running = &led_wifi;
13                 led-upgrade = &led_wifi;
14         };
15
16         chosen {
17                 bootargs = "console=ttyS0,115200";
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22
23                 led_wifi: wifi {
24                         label = "widora:orange:wifi";
25                         gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
26                         default-state = "on";
27                 };
28         };
29
30         keys {
31                 compatible = "gpio-keys";
32
33                 wps {
34                         label = "reset";
35                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
36                         linux,code = <KEY_WPS_BUTTON>;
37                 };
38         };
39
40         wgpio: gpio-wifi {
41                 compatible = "mediatek,gpio-wifi";
42                 #address-cells = <1>;
43                 #size-cells = <0>;
44                 gpio-controller;
45                 #gpio-cells = <2>;
46         };
47 };
48
49 &state_default {
50         gpio {
51                 ralink,group = "gpio";
52                 ralink,function = "gpio";
53         };
54
55         perst {
56                 ralink,group = "perst";
57                 ralink,function = "gpio";
58         };
59
60         refclk {
61                 ralink,group = "refclk";
62                 ralink,function = "gpio";
63         };
64
65         i2s {
66                 ralink,group = "i2s";
67                 ralink,function = "gpio";
68         };
69
70         spis {
71                 ralink,group = "spis";
72                 ralink,function = "gpio";
73         };
74
75         wled_kn {
76                 ralink,group = "wled_kn";
77                 ralink,function = "gpio";
78         };
79
80         wled_an {
81                 ralink,group = "wled_an";
82                 ralink,function = "wled_an";
83         };
84
85         wdt {
86                 ralink,group = "wdt";
87                 ralink,function = "gpio";
88         };
89 };
90
91 &i2c {
92         status = "okay";
93 };
94
95 &uart1 {
96         status = "okay";
97 };
98
99 &uart2 {
100         status = "okay";
101 };
102
103 &pwm {
104         status = "okay";
105 };
106
107 &ethernet {
108         mtd-mac-address = <&factory 0x28>;
109 };
110
111 &sdhci {
112         status = "okay";
113         mediatek,cd-low;
114 };
115
116 &wmac {
117         status = "okay";
118 };