ramips: add support for ALFA Network Quad-E4G
[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 &pinctrl {
50         state_default: pinctrl0 {
51                 gpio {
52                         ralink,group = "gpio";
53                         ralink,function = "gpio";
54                 };
55
56                 perst {
57                         ralink,group = "perst";
58                         ralink,function = "gpio";
59                 };
60
61                 refclk {
62                         ralink,group = "refclk";
63                         ralink,function = "gpio";
64                 };
65
66                 i2s {
67                         ralink,group = "i2s";
68                         ralink,function = "gpio";
69                 };
70
71                 spis {
72                         ralink,group = "spis";
73                         ralink,function = "gpio";
74                 };
75
76                 wled_kn {
77                         ralink,group = "wled_kn";
78                         ralink,function = "gpio";
79                 };
80
81                 wled_an {
82                         ralink,group = "wled_an";
83                         ralink,function = "wled_an";
84                 };
85
86                 wdt {
87                         ralink,group = "wdt";
88                         ralink,function = "gpio";
89                 };
90         };
91 };
92
93 &i2c {
94         status = "okay";
95 };
96
97 &uart1 {
98         status = "okay";
99 };
100
101 &uart2 {
102         status = "okay";
103 };
104
105 &pwm {
106         status = "okay";
107 };
108
109 &ethernet {
110         mtd-mac-address = <&factory 0x28>;
111 };
112
113 &sdhci {
114         status = "okay";
115         mediatek,cd-low;
116 };
117
118 &wmac {
119         status = "okay";
120 };