kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / LINKIT7688.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", "mediatek,mt7628an-soc";
10         model = "MediaTek LinkIt Smart 7688";
11
12         chosen {
13                 bootargs = "console=ttyS2,57600";
14         };
15
16         aliases {
17                 serial0 = &uart2;
18         };
19
20         memory@0 {
21                 device_type = "memory";
22                 reg = <0x0 0x8000000>;
23         };
24
25         bootstrap {
26                 compatible = "mediatek,linkit";
27
28                 status = "okay";
29         };
30
31         gpio-leds {
32                 compatible = "gpio-leds";
33
34                 wifi {
35                         label = "mediatek:orange:wifi";
36                         gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
37                         default-state = "on";
38                 };
39         };
40
41         gpio-keys-polled {
42                 compatible = "gpio-keys-polled";
43                 #address-cells = <1>;
44                 #size-cells = <0>;
45                 poll-interval = <20>;
46
47                 wps {
48                         label = "reset";
49                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
50                         linux,code = <KEY_WPS_BUTTON>;
51                 };
52         };
53
54         wgpio: gpio-wifi {
55                 compatible = "mediatek,gpio-wifi";
56                 #address-cells = <1>;
57                 #size-cells = <0>;
58                 gpio-controller;
59                 #gpio-cells = <2>;
60         };
61 };
62
63 &pinctrl {
64         state_default: pinctrl0 {
65                 gpio {
66                         ralink,group = "gpio";
67                         ralink,function = "gpio";
68                 };
69
70                 perst {
71                         ralink,group = "perst";
72                         ralink,function = "gpio";
73                 };
74
75                 refclk {
76                         ralink,group = "refclk";
77                         ralink,function = "gpio";
78                 };
79
80                 i2s {
81                         ralink,group = "i2s";
82                         ralink,function = "gpio";
83                 };
84
85                 spis {
86                         ralink,group = "spis";
87                         ralink,function = "gpio";
88                 };
89
90                 wled_kn {
91                         ralink,group = "wled_kn";
92                         ralink,function = "gpio";
93                 };
94
95                 wled_an {
96                         ralink,group = "wled_an";
97                         ralink,function = "wled_an";
98                 };
99
100                 wdt {
101                         ralink,group = "wdt";
102                         ralink,function = "gpio";
103                 };
104         };
105 };
106
107 &wmac {
108         status = "okay";
109 };
110
111 &spi0 {
112         status = "okay";
113
114         pinctrl-names = "default";
115         pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
116
117         m25p80@0 {
118                 #address-cells = <1>;
119                 #size-cells = <1>;
120                 compatible = "jedec,spi-nor";
121                 reg = <0>;
122                 spi-max-frequency = <40000000>;
123                 m25p,chunked-io = <31>;
124
125                 partition@0 {
126                         label = "u-boot";
127                         reg = <0x0 0x30000>;
128                         read-only;
129                 };
130
131                 partition@30000 {
132                         label = "u-boot-env";
133                         reg = <0x30000 0x10000>;
134                 };
135
136                 factory: partition@40000 {
137                         label = "factory";
138                         reg = <0x40000 0x10000>;
139                         read-only;
140                 };
141
142                 partition@50000 {
143                         label = "firmware";
144                         reg = <0x50000 0x1fb0000>;
145                 };
146         };
147
148         spidev@1 {
149                 #address-cells = <1>;
150                 #size-cells = <1>;
151                 compatible = "linux,spidev";
152                 reg = <1>;
153                 spi-max-frequency = <40000000>;
154         };
155 };
156
157 &i2c {
158         status = "okay";
159 };
160
161 &uart1 {
162         status = "okay";
163 };
164
165 &uart2 {
166         status = "okay";
167 };
168
169 &pwm {
170         status = "okay";
171 };
172
173 &ethernet {
174         mtd-mac-address = <&factory 0x28>;
175 };
176
177 &sdhci {
178         status = "okay";
179         mediatek,cd-high;
180 };
181
182 &wmac {
183         status = "okay";
184 };