560a48756731905009af75a55dccc79dfc4f2252
[openwrt/staging/lynxis.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8065-r7800.dts
1 #include "qcom-ipq8065-v1.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "Netgear Nighthawk X4S R7800";
7 compatible = "netgear,r7800", "qcom,ipq8065", "qcom,ipq8064";
8
9 memory@0 {
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
12 };
13
14 reserved-memory {
15 #address-cells = <1>;
16 #size-cells = <1>;
17 ranges;
18 rsvd@41200000 {
19 reg = <0x41200000 0x300000>;
20 no-map;
21 };
22
23 rsvd@5fe00000 {
24 reg = <0x5fe00000 0x200000>;
25 reusable;
26 };
27 };
28
29 aliases {
30 serial0 = &uart4;
31 mdio-gpio0 = &mdio0;
32
33 led-boot = &power_white;
34 led-failsafe = &power_white;
35 led-running = &power_white;
36 led-upgrade = &power_amber;
37 };
38
39 chosen {
40 linux,stdout-path = "serial0:115200n8";
41 };
42
43 soc {
44 pinmux@800000 {
45 pinctrl-0 = <&mdio0_pins &rgmii2_pins>;
46 pinctrl-names = "default";
47
48 i2c4_pins: i2c4_pinmux {
49 mux {
50 pins = "gpio12", "gpio13";
51 function = "gsbi4";
52 drive-strength = <12>;
53 bias-disable;
54 };
55 };
56
57 nand_pins: nand_pins {
58 mux {
59 pins = "gpio34", "gpio35", "gpio36",
60 "gpio37", "gpio38", "gpio39",
61 "gpio40", "gpio41", "gpio42",
62 "gpio43", "gpio44", "gpio45",
63 "gpio46", "gpio47";
64 function = "nand";
65 drive-strength = <10>;
66 bias-disable;
67 };
68 pullups {
69 pins = "gpio39";
70 bias-pull-up;
71 };
72 hold {
73 pins = "gpio40", "gpio41", "gpio42",
74 "gpio43", "gpio44", "gpio45",
75 "gpio46", "gpio47";
76 bias-bus-hold;
77 };
78 };
79
80 mdio0_pins: mdio0_pins {
81 mux {
82 pins = "gpio0", "gpio1";
83 function = "gpio";
84 drive-strength = <8>;
85 bias-disable;
86 };
87
88 clk {
89 pins = "gpio1";
90 input-disable;
91 };
92 };
93
94 rgmii2_pins: rgmii2_pins {
95 mux {
96 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
97 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
98 function = "rgmii2";
99 drive-strength = <8>;
100 bias-disable;
101 };
102
103 tx {
104 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
105 input-disable;
106 };
107 };
108
109 spi_pins: spi_pins {
110 mux {
111 pins = "gpio18", "gpio19", "gpio21";
112 function = "gsbi5";
113 drive-strength = <10>;
114 bias-none;
115 };
116
117 cs {
118 pins = "gpio20";
119 drive-strength = <12>;
120 };
121 };
122 };
123
124 gsbi@16300000 {
125 qcom,mode = <GSBI_PROT_I2C_UART>;
126 status = "ok";
127 serial@16340000 {
128 status = "ok";
129 };
130 /*
131 * The i2c device on gsbi4 should not be enabled.
132 * On ipq806x designs gsbi4 i2c is meant for exclusive
133 * RPM usage. Turning this on in kernel manifests as
134 * i2c failure for the RPM.
135 */
136 };
137
138 gsbi5: gsbi@1a200000 {
139 qcom,mode = <GSBI_PROT_SPI>;
140 status = "ok";
141
142 spi4: spi@1a280000 {
143 status = "ok";
144 spi-max-frequency = <50000000>;
145 pinctrl-0 = <&spi_pins>;
146 pinctrl-names = "default";
147
148 cs-gpios = <&qcom_pinmux 20 0>;
149
150 flash: m25p80@0 {
151 compatible = "s25fl512s";
152 #address-cells = <1>;
153 #size-cells = <1>;
154 spi-max-frequency = <51200000>;
155 reg = <0>;
156
157 linux,part-probe = "qcom-smem";
158 };
159 };
160 };
161
162 sata-phy@1b400000 {
163 status = "ok";
164 };
165
166 sata@29000000 {
167 ports-implemented = <0x1>;
168 status = "ok";
169 };
170
171 phy@100f8800 { /* USB3 port 1 HS phy */
172 status = "ok";
173 };
174
175 phy@100f8830 { /* USB3 port 1 SS phy */
176 status = "ok";
177 };
178
179 phy@110f8800 { /* USB3 port 0 HS phy */
180 status = "ok";
181 };
182
183 phy@110f8830 { /* USB3 port 0 SS phy */
184 status = "ok";
185 };
186
187 usb30@0 {
188 status = "ok";
189 };
190
191 usb30@1 {
192 status = "ok";
193 };
194
195 pcie0: pci@1b500000 {
196 status = "ok";
197 phy-tx0-term-offset = <7>;
198 };
199
200 pcie1: pci@1b700000 {
201 status = "ok";
202 phy-tx0-term-offset = <7>;
203 };
204
205 nand@1ac00000 {
206 status = "ok";
207
208 pinctrl-0 = <&nand_pins>;
209 pinctrl-names = "default";
210
211 nand-ecc-strength = <4>;
212 nand-ecc-step-size = <512>;
213 nand-bus-width = <8>;
214
215 #address-cells = <1>;
216 #size-cells = <1>;
217
218 qcadata@0 {
219 label = "qcadata";
220 reg = <0x0000000 0x0c80000>;
221 read-only;
222 };
223
224 APPSBL@c80000 {
225 label = "APPSBL";
226 reg = <0x0c80000 0x0500000>;
227 read-only;
228 };
229
230 APPSBLENV@1180000 {
231 label = "APPSBLENV";
232 reg = <0x1180000 0x0080000>;
233 read-only;
234 };
235
236 art: art@1200000 {
237 label = "art";
238 reg = <0x1200000 0x0140000>;
239 read-only;
240 };
241
242 artbak: art@1340000 {
243 label = "artbak";
244 reg = <0x1340000 0x0140000>;
245 read-only;
246 };
247
248 kernel@1480000 {
249 label = "kernel";
250 reg = <0x1480000 0x0200000>;
251 };
252
253 ubi@1680000 {
254 label = "ubi";
255 reg = <0x1680000 0x1E00000>;
256 };
257
258 netgear@3480000 {
259 label = "netgear";
260 reg = <0x3480000 0x4480000>;
261 read-only;
262 };
263
264 reserve@7900000 {
265 label = "reserve";
266 reg = <0x7900000 0x0700000>;
267 read-only;
268 };
269
270 firmware@1480000 {
271 label = "firmware";
272 reg = <0x1480000 0x2000000>;
273 };
274
275 };
276
277 mdio0: mdio {
278 compatible = "virtual,mdio-gpio";
279 #address-cells = <1>;
280 #size-cells = <0>;
281 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
282
283 phy0: ethernet-phy@0 {
284 device_type = "ethernet-phy";
285 reg = <0>;
286 qca,ar8327-initvals = <
287 0x00004 0x7600000 /* PAD0_MODE */
288 0x00008 0x1000000 /* PAD5_MODE */
289 0x0000c 0x80 /* PAD6_MODE */
290 0x000e4 0xaa545 /* MAC_POWER_SEL */
291 0x000e0 0xc74164de /* SGMII_CTRL */
292 0x0007c 0x4e /* PORT0_STATUS */
293 0x00094 0x4e /* PORT6_STATUS */
294 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
295 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
296 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
297 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
298 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
299 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
300 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
301 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
302 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
303 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
304 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
305 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
306 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
307 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
308 >;
309 qca,ar8327-vlans = <
310 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
311 0x2 0x21 /* VLAN2 Ports 0/5 */
312 >;
313 };
314
315 phy4: ethernet-phy@4 {
316 device_type = "ethernet-phy";
317 reg = <4>;
318 qca,ar8327-initvals = <
319 0x000e4 0x6a545 /* MAC_POWER_SEL */
320 0x0000c 0x80 /* PAD6_MODE */
321 >;
322 };
323 };
324
325 gmac1: ethernet@37200000 {
326 status = "ok";
327 phy-mode = "rgmii";
328 qcom,id = <1>;
329 qcom,phy_mdio_addr = <4>;
330 qcom,poll_required = <0>;
331 qcom,rgmii_delay = <1>;
332 qcom,phy_mii_type = <0>;
333 qcom,emulation = <0>;
334 qcom,irq = <255>;
335 mdiobus = <&mdio0>;
336
337 mtd-mac-address = <&art 6>;
338
339 fixed-link {
340 speed = <1000>;
341 full-duplex;
342 };
343 };
344
345 gmac2: ethernet@37400000 {
346 status = "ok";
347 phy-mode = "sgmii";
348 qcom,id = <2>;
349 qcom,phy_mdio_addr = <0>; /* none */
350 qcom,poll_required = <0>; /* no polling */
351 qcom,rgmii_delay = <0>;
352 qcom,phy_mii_type = <1>;
353 qcom,emulation = <0>;
354 qcom,irq = <258>;
355 mdiobus = <&mdio0>;
356
357 mtd-mac-address = <&art 0>;
358
359 fixed-link {
360 speed = <1000>;
361 full-duplex;
362 };
363 };
364
365 rpm@108000 {
366 pinctrl-0 = <&i2c4_pins>;
367 pinctrl-names = "default";
368 };
369 };
370
371 gpio-keys {
372 compatible = "gpio-keys";
373
374 wifi {
375 label = "wifi";
376 gpios = <&qcom_pinmux 6 1>;
377 linux,code = <KEY_RFKILL>;
378 };
379
380 reset {
381 label = "reset";
382 gpios = <&qcom_pinmux 54 1>;
383 linux,code = <KEY_RESTART>;
384 };
385
386 wps {
387 label = "wps";
388 gpios = <&qcom_pinmux 65 1>;
389 linux,code = <KEY_WPS_BUTTON>;
390 };
391 };
392
393 gpio-leds {
394 compatible = "gpio-leds";
395
396 power_white: power_white {
397 label = "r7800:white:power";
398 gpios = <&qcom_pinmux 53 0>;
399 default-state = "on";
400 };
401
402 power_amber: power_amber {
403 label = "r7800:amber:power";
404 gpios = <&qcom_pinmux 9 0>;
405 };
406
407 wan_white {
408 label = "r7800:white:wan";
409 gpios = <&qcom_pinmux 22 0>;
410 };
411
412 wan_amber {
413 label = "r7800:amber:wan";
414 gpios = <&qcom_pinmux 23 0>;
415 };
416
417 usb1 {
418 label = "r7800:white:usb1";
419 gpios = <&qcom_pinmux 7 0>;
420 };
421
422 usb2 {
423 label = "r7800:white:usb2";
424 gpios = <&qcom_pinmux 8 0>;
425 };
426
427 esata {
428 label = "r7800:white:esata";
429 gpios = <&qcom_pinmux 26 0>;
430 };
431
432 rfkill {
433 label = "r7800:white:rfkill";
434 gpios = <&qcom_pinmux 64 0>;
435 };
436
437 wps {
438 label = "r7800:white:wps";
439 gpios = <&qcom_pinmux 24 0>;
440 };
441
442 wifi {
443 label = "r7800:white:wifi";
444 gpios = <&qcom_pinmux 67 0>;
445 };
446 };
447
448 gpio_export {
449 compatible = "gpio-export";
450 #size-cells = <0>;
451
452 display_data {
453 gpio-export,name = "usb0";
454 gpio-export,output = <1>;
455 gpios = <&qcom_pinmux 15 0>;
456 };
457
458 display_clock {
459 gpio-export,name = "usb1";
460 gpio-export,output = <1>;
461 gpios = <&qcom_pinmux 16 0>;
462 };
463 };
464 };
465
466 &adm_dma {
467 status = "ok";
468 };