ramips: add support for Netgear EX6130
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_mediatek_linkit-smart-7688.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "mediatek,linkit-smart-7688", "mediatek,mt7628an-soc";
10         model = "MediaTek LinkIt Smart 7688";
11
12         aliases {
13                 led-boot = &led_wifi;
14                 led-failsafe = &led_wifi;
15                 led-running = &led_wifi;
16                 led-upgrade = &led_wifi;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS2,57600";
21         };
22
23         aliases {
24                 serial0 = &uart2;
25         };
26
27         bootstrap {
28                 compatible = "mediatek,linkit";
29
30                 status = "okay";
31         };
32
33         leds {
34                 compatible = "gpio-leds";
35
36                 led_wifi: wifi {
37                         label = "linkit-smart-7688:orange:wifi";
38                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
39                 };
40         };
41
42         keys {
43                 compatible = "gpio-keys";
44
45                 wps {
46                         label = "reset";
47                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
48                         linux,code = <KEY_WPS_BUTTON>;
49                 };
50         };
51 };
52
53 &pinctrl {
54         state_default: pinctrl0 {
55                 gpio {
56                         ralink,group = "gpio";
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_an {
76                         ralink,group = "wled_an";
77                         ralink,function = "gpio";
78                 };
79
80                 wdt {
81                         ralink,group = "wdt";
82                         ralink,function = "gpio";
83                 };
84         };
85 };
86
87 &wmac {
88         status = "okay";
89 };
90
91 &spi0 {
92         status = "okay";
93
94         pinctrl-names = "default";
95         pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
96
97         m25p80@0 {
98                 compatible = "jedec,spi-nor";
99                 reg = <0>;
100                 spi-max-frequency = <40000000>;
101
102                 partitions {
103                         compatible = "fixed-partitions";
104                         #address-cells = <1>;
105                         #size-cells = <1>;
106
107                         partition@0 {
108                                 label = "u-boot";
109                                 reg = <0x0 0x30000>;
110                                 read-only;
111                         };
112
113                         partition@30000 {
114                                 label = "u-boot-env";
115                                 reg = <0x30000 0x10000>;
116                         };
117
118                         factory: partition@40000 {
119                                 label = "factory";
120                                 reg = <0x40000 0x10000>;
121                                 read-only;
122                         };
123
124                         partition@50000 {
125                                 compatible = "denx,uimage";
126                                 label = "firmware";
127                                 reg = <0x50000 0x1fb0000>;
128                         };
129                 };
130         };
131
132         spidev@1 {
133                 #address-cells = <1>;
134                 #size-cells = <1>;
135                 compatible = "linux,spidev";
136                 reg = <1>;
137                 spi-max-frequency = <40000000>;
138         };
139 };
140
141 &i2c {
142         status = "okay";
143 };
144
145 &uart1 {
146         status = "okay";
147 };
148
149 &uart2 {
150         status = "okay";
151 };
152
153 &pwm {
154         status = "okay";
155 };
156
157 &ethernet {
158         mtd-mac-address = <&factory 0x28>;
159 };
160
161 &sdhci {
162         status = "okay";
163         mediatek,cd-high;
164 };
165
166 &wmac {
167         status = "okay";
168 };