ipq806x: add missing wakeup-source for gpio keys
[openwrt/staging/zorun.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-wg2600hp.dts
1 #include "qcom-ipq8064-v2.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "NEC Aterm WG2600HP";
7 compatible = "nec,wg2600hp", "qcom,ipq8064";
8
9 memory@0 {
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
12 };
13
14 aliases {
15 mdio-gpio0 = &mdio0;
16
17 led-boot = &power_green;
18 led-failsafe = &power_red;
19 led-running = &power_green;
20 led-upgrade = &power_green;
21 };
22
23 keys {
24 compatible = "gpio-keys";
25 pinctrl-0 = <&button_pins>;
26 pinctrl-names = "default";
27
28 wps {
29 label = "wps";
30 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WPS_BUTTON>;
32 debounce-interval = <60>;
33 wakeup-source;
34 };
35
36 reset {
37 label = "reset";
38 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 debounce-interval = <60>;
41 wakeup-source;
42 };
43
44 bridge {
45 label = "bridge";
46 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
47 linux,code = <BTN_0>;
48 linux,input-type = <EV_SW>;
49 debounce-interval = <60>;
50 wakeup-source;
51 };
52
53 converter {
54 label = "converter";
55 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
56 linux,code = <BTN_0>;
57 linux,input-type = <EV_SW>;
58 debounce-interval = <60>;
59 wakeup-source;
60 };
61 };
62
63 leds {
64 compatible = "gpio-leds";
65 pinctrl-0 = <&led_pins>;
66 pinctrl-names = "default";
67
68 converter_green {
69 label = "green:converter";
70 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
71 };
72
73 power_red: power_red {
74 label = "red:power";
75 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
76 };
77
78 active_green {
79 label = "green:active";
80 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
81 };
82
83 active_red {
84 label = "red:active";
85 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
86 };
87
88 power_green: power_green {
89 label = "green:power";
90 gpios = <&qcom_pinmux 14 GPIO_ACTIVE_HIGH>;
91 };
92
93 converter_red {
94 label = "red:converter";
95 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
96 };
97
98 wlan2g_green {
99 label = "green:wlan2g";
100 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
101 };
102
103 wlan2g_red {
104 label = "red:wlan2g";
105 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
106 };
107
108 wlan5g_green {
109 label = "green:wlan5g";
110 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
111 };
112
113 wlan5g_red {
114 label = "red:wlan5g";
115 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_HIGH>;
116 };
117
118 tv_green {
119 label = "green:tv";
120 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
121 };
122
123 tv_red {
124 label = "red:tv";
125 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_HIGH>;
126 };
127 };
128 };
129
130 &CPU_SPC {
131 status = "disabled";
132 };
133
134 &adm_dma {
135 status = "okay";
136 };
137
138 &mdio0 {
139 status = "okay";
140
141 pinctrl-0 = <&mdio0_pins>;
142 pinctrl-names = "default";
143
144 ethernet-phy@0 {
145 reg = <0>;
146 qca,ar8327-initvals = <
147 0x00004 0x06000000 /* PAD0_MODE */
148 0x0000c 0x00080080 /* PAD6_MODE */
149 0x000e4 0x0006a545 /* MAC_POWER_SEL */
150 0x000e0 0xc74164de /* SGMII_CTRL */
151 0x0007c 0x0000004e /* PORT0_STATUS */
152 0x00094 0x0000004e /* PORT6_STATUS */
153 >;
154 };
155
156 ethernet-phy@4 {
157 reg = <4>;
158 };
159 };
160
161 &gmac1 {
162 status = "okay";
163
164 phy-mode = "rgmii";
165 qcom,id = <1>;
166
167 pinctrl-0 = <&rgmii2_pins>;
168 pinctrl-names = "default";
169
170 mtd-mac-address = <&PRODUCTDATA 6>;
171
172 fixed-link {
173 speed = <1000>;
174 full-duplex;
175 };
176 };
177
178 &gmac2 {
179 status = "okay";
180
181 phy-mode = "sgmii";
182 qcom,id = <2>;
183
184 mtd-mac-address = <&PRODUCTDATA 0>;
185
186 fixed-link {
187 speed = <1000>;
188 full-duplex;
189 };
190 };
191
192 &gsbi5 {
193 status = "okay";
194
195 qcom,mode = <GSBI_PROT_SPI>;
196
197 spi@1a280000 {
198 status = "okay";
199
200 pinctrl-0 = <&spi_pins>;
201 pinctrl-names = "default";
202
203 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
204
205 flash@0 {
206 compatible = "jedec,spi-nor";
207 spi-max-frequency = <50000000>;
208 reg = <0>;
209
210 partitions {
211 compatible = "fixed-partitions";
212 #address-cells = <1>;
213 #size-cells = <1>;
214
215 SBL1@0 {
216 label = "SBL1";
217 reg = <0x0 0x20000>;
218 read-only;
219 };
220
221 MIBIB@20000 {
222 label = "MIBIB";
223 reg = <0x20000 0x20000>;
224 read-only;
225 };
226
227 SBL2@40000 {
228 label = "SBL2";
229 reg = <0x40000 0x40000>;
230 read-only;
231 };
232
233 SBL3@80000 {
234 label = "SBL3";
235 reg = <0x80000 0x80000>;
236 read-only;
237 };
238
239 DDRCONFIG@100000 {
240 label = "DDRCONFIG";
241 reg = <0x100000 0x10000>;
242 read-only;
243 };
244
245 SSD@110000 {
246 label = "SSD";
247 reg = <0x110000 0x10000>;
248 read-only;
249 };
250
251 TZ@120000 {
252 label = "TZ";
253 reg = <0x120000 0x80000>;
254 read-only;
255 };
256
257 RPM@1a0000 {
258 label = "RPM";
259 reg = <0x1a0000 0x80000>;
260 read-only;
261 };
262
263 APPSBL@220000 {
264 label = "APPSBL";
265 reg = <0x220000 0x80000>;
266 read-only;
267 };
268
269 APPSBLENV@2a0000 {
270 label = "APPSBLENV";
271 reg = <0x2a0000 0x10000>;
272 };
273
274 PRODUCTDATA: PRODUCTDATA@2b0000 {
275 label = "PRODUCTDATA";
276 reg = <0x2b0000 0x30000>;
277 read-only;
278 };
279
280 ART@2e0000 {
281 label = "ART";
282 reg = <0x2e0000 0x40000>;
283 read-only;
284 };
285
286 TP@320000 {
287 label = "TP";
288 reg = <0x320000 0x40000>;
289 read-only;
290 };
291
292 TINY@360000 {
293 label = "TINY";
294 reg = <0x360000 0x500000>;
295 read-only;
296 };
297
298 firmware@860000 {
299 compatible = "denx,uimage";
300 label = "firmware";
301 reg = <0x860000 0x17a0000>;
302 };
303 };
304 };
305 };
306 };
307
308 &usb3_0 {
309 status = "okay";
310
311 pinctrl-0 = <&usb_pwr_en_pins>;
312 pinctrl-names = "default";
313 };
314
315 &usb3_1 {
316 status = "okay";
317 };
318
319 &pcie0 {
320 status = "okay";
321 };
322
323 &pcie1 {
324 status = "okay";
325 max-link-speed = <1>;
326 };
327
328 &qcom_pinmux {
329 button_pins: button_pins {
330 mux {
331 pins = "gpio16", "gpio54", "gpio24", "gpio25";
332 function = "gpio";
333 drive-strength = <2>;
334 bias-pull-up;
335 };
336 };
337
338 led_pins: led_pins {
339 mux {
340 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio14",
341 "gpio15", "gpio55", "gpio56", "gpio57", "gpio58",
342 "gpio64", "gpio65";
343 function = "gpio";
344 drive-strength = <2>;
345 bias-pull-down;
346 };
347 };
348
349 spi_pins: spi_pins {
350 mux {
351 pins = "gpio18", "gpio19", "gpio21";
352 function = "gsbi5";
353 bias-pull-down;
354 };
355
356 data {
357 pins = "gpio18", "gpio19";
358 drive-strength = <10>;
359 };
360
361 cs {
362 pins = "gpio20";
363 drive-strength = <10>;
364 bias-pull-up;
365 };
366
367 clk {
368 pins = "gpio21";
369 drive-strength = <12>;
370 };
371 };
372
373 usb_pwr_en_pins: usb_pwr_en_pins {
374 mux {
375 pins = "gpio22";
376 function = "gpio";
377 drive-strength = <2>;
378 bias-pull-down;
379 output-high;
380 };
381 };
382 };