ipq806x: add missing wakeup-source for gpio keys
[openwrt/staging/zorun.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-d7800.dts
1 #include "qcom-ipq8064-v2.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "Netgear Nighthawk X4 D7800";
7 compatible = "netgear,d7800", "qcom,ipq8064";
8
9 memory@0 {
10 reg = <0x42000000 0xe000000>;
11 device_type = "memory";
12 };
13
14 aliases {
15 mdio-gpio0 = &mdio0;
16
17 led-boot = &power_white;
18 led-failsafe = &power_amber;
19 led-running = &power_white;
20 led-upgrade = &power_amber;
21 };
22
23 chosen {
24 bootargs = "rootfstype=squashfs noinitrd";
25 };
26
27 keys {
28 compatible = "gpio-keys";
29 pinctrl-0 = <&button_pins>;
30 pinctrl-names = "default";
31
32 wifi {
33 label = "wifi";
34 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RFKILL>;
36 debounce-interval = <60>;
37 wakeup-source;
38 };
39
40 reset {
41 label = "reset";
42 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 debounce-interval = <60>;
45 wakeup-source;
46 };
47
48 wps {
49 label = "wps";
50 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 debounce-interval = <60>;
53 wakeup-source;
54 };
55 };
56
57 leds {
58 compatible = "gpio-leds";
59 pinctrl-0 = <&led_pins>;
60 pinctrl-names = "default";
61
62 usb1 {
63 label = "white:usb1";
64 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
65 };
66
67 usb2 {
68 label = "white:usb2";
69 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
70 };
71
72 power_amber: power_amber {
73 label = "amber:power";
74 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
75 };
76
77 wan_white {
78 label = "white:wan";
79 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
80 };
81
82 wan_amber {
83 label = "amber:wan";
84 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
85 };
86
87 wps {
88 label = "white:wps";
89 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
90 };
91
92 esata {
93 label = "white:esata";
94 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
95 };
96
97 power_white: power_white {
98 label = "white:power";
99 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
100 default-state = "keep";
101 };
102
103 wifi {
104 label = "white:wifi";
105 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
106 };
107 };
108 };
109
110 &qcom_pinmux {
111 button_pins: button_pins {
112 mux {
113 pins = "gpio6", "gpio54", "gpio65";
114 function = "gpio";
115 drive-strength = <2>;
116 bias-pull-up;
117 };
118 };
119
120 led_pins: led_pins {
121 mux {
122 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
123 "gpio24","gpio26", "gpio53", "gpio64";
124 function = "gpio";
125 drive-strength = <2>;
126 bias-pull-up;
127 };
128 };
129
130 usb0_pwr_en_pins: usb0_pwr_en_pins {
131 mux {
132 pins = "gpio15";
133 function = "gpio";
134 drive-strength = <12>;
135 bias-pull-down;
136 output-high;
137 };
138 };
139
140 usb1_pwr_en_pins: usb1_pwr_en_pins {
141 mux {
142 pins = "gpio16", "gpio68";
143 function = "gpio";
144 drive-strength = <12>;
145 bias-pull-down;
146 output-high;
147 };
148 };
149 };
150
151 &sata_phy {
152 status = "okay";
153 };
154
155 &sata {
156 status = "okay";
157 };
158
159 &usb3_0 {
160 status = "okay";
161
162 pinctrl-0 = <&usb0_pwr_en_pins>;
163 pinctrl-names = "default";
164 };
165
166 &usb3_1 {
167 status = "okay";
168
169 pinctrl-0 = <&usb1_pwr_en_pins>;
170 pinctrl-names = "default";
171 };
172
173 &pcie0 {
174 status = "okay";
175 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
176 pinctrl-0 = <&pcie0_pins>;
177 pinctrl-names = "default";
178 };
179
180 &pcie1 {
181 status = "okay";
182 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
183 pinctrl-0 = <&pcie1_pins>;
184 pinctrl-names = "default";
185 max-link-speed = <1>;
186 };
187
188 &nand_controller {
189 status = "okay";
190
191 pinctrl-0 = <&nand_pins>;
192 pinctrl-names = "default";
193
194 #address-cells = <1>;
195 #size-cells = <0>;
196
197 nand@0 {
198 reg = <0>;
199 compatible = "qcom,nandcs";
200
201 nand-ecc-strength = <4>;
202 nand-bus-width = <8>;
203 nand-ecc-step-size = <512>;
204
205 nand-is-boot-medium;
206 qcom,boot_pages_size = <0x1180000>;
207
208 partitions {
209 compatible = "fixed-partitions";
210 #address-cells = <1>;
211 #size-cells = <1>;
212
213 qcadata@0 {
214 label = "qcadata";
215 reg = <0x0000000 0x0c80000>;
216 read-only;
217 };
218
219 APPSBL@c80000 {
220 label = "APPSBL";
221 reg = <0x0c80000 0x0500000>;
222 read-only;
223 };
224
225 APPSBLENV@1180000 {
226 label = "APPSBLENV";
227 reg = <0x1180000 0x0080000>;
228 read-only;
229 };
230
231 art: art@1200000 {
232 label = "art";
233 reg = <0x1200000 0x0140000>;
234 read-only;
235 };
236
237 artbak: art@1340000 {
238 label = "artbak";
239 reg = <0x1340000 0x0140000>;
240 read-only;
241 };
242
243 kernel@1480000 {
244 label = "kernel";
245 reg = <0x1480000 0x0400000>;
246 };
247
248 ubi@1880000 {
249 label = "ubi";
250 reg = <0x1880000 0x1C00000>;
251 };
252
253 netgear@3480000 {
254 label = "netgear";
255 reg = <0x3480000 0x4480000>;
256 read-only;
257 };
258
259 reserve@7900000 {
260 label = "reserve";
261 reg = <0x7900000 0x0700000>;
262 read-only;
263 };
264 };
265 };
266 };
267
268 &mdio0 {
269 status = "okay";
270
271 pinctrl-0 = <&mdio0_pins>;
272 pinctrl-names = "default";
273
274 phy0: ethernet-phy@0 {
275 reg = <0>;
276 qca,ar8327-initvals = <
277 0x00004 0x7600000 /* PAD0_MODE */
278 0x00008 0x1000000 /* PAD5_MODE */
279 0x0000c 0x80 /* PAD6_MODE */
280 0x000e4 0x6a545 /* MAC_POWER_SEL */
281 0x000e0 0xc74164de /* SGMII_CTRL */
282 0x0007c 0x4e /* PORT0_STATUS */
283 0x00094 0x4e /* PORT6_STATUS */
284 >;
285 };
286
287 phy4: ethernet-phy@4 {
288 reg = <4>;
289 };
290 };
291
292 &gmac1 {
293 status = "okay";
294 phy-mode = "rgmii";
295 qcom,id = <1>;
296
297 pinctrl-0 = <&rgmii2_pins>;
298 pinctrl-names = "default";
299
300 mtd-mac-address = <&art 6>;
301
302 fixed-link {
303 speed = <1000>;
304 full-duplex;
305 };
306 };
307
308 &gmac2 {
309 status = "okay";
310 phy-mode = "sgmii";
311 qcom,id = <2>;
312
313 mtd-mac-address = <&art 0>;
314
315 fixed-link {
316 speed = <1000>;
317 full-duplex;
318 };
319 };
320
321 &adm_dma {
322 status = "okay";
323 };