9db70f3d9471d5d642872e5218b7d73db6a44d75
[openwrt/staging/blogic.git] / target / linux / ipq806x / files-4.9 / arch / arm / boot / dts / qcom-ipq8064-ea8500.dts
1 #include "qcom-ipq8064-v1.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "Linksys EA8500 WiFi Router";
7 compatible = "linksys,ea8500", "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
24 aliases {
25 serial0 = &gsbi4_serial;
26 mdio-gpio0 = &mdio0;
27
28 led-boot = &power;
29 led-failsafe = &power;
30 led-running = &power;
31 led-upgrade = &power;
32 };
33
34 chosen {
35 bootargs = "console=ttyMSM0,115200n8";
36 linux,stdout-path = "serial0:115200n8";
37 append-rootblock = "ubi.mtd="; /* append to bootargs adding the root deviceblock nbr from bootloader */
38 };
39
40 soc {
41 pinmux@800000 {
42 button_pins: button_pins {
43 mux {
44 pins = "gpio65", "gpio67", "gpio68";
45 function = "gpio";
46 drive-strength = <2>;
47 bias-pull-up;
48 };
49 };
50
51 i2c4_pins: i2c4_pinmux {
52 mux {
53 pins = "gpio12", "gpio13";
54 function = "gsbi4";
55 drive-strength = <12>;
56 bias-disable;
57 };
58 };
59
60 led_pins: led_pins {
61 mux {
62 pins = "gpio6", "gpio53", "gpio54";
63 function = "gpio";
64 drive-strength = <2>;
65 bias-pull-up;
66 };
67 };
68
69 mdio0_pins: mdio0_pins {
70 mux {
71 pins = "gpio0", "gpio1";
72 function = "gpio";
73 drive-strength = <8>;
74 bias-disable;
75 };
76 };
77
78 nand_pins: nand_pins {
79 mux {
80 pins = "gpio34", "gpio35", "gpio36",
81 "gpio37", "gpio38", "gpio39",
82 "gpio40", "gpio41", "gpio42",
83 "gpio43", "gpio44", "gpio45",
84 "gpio46", "gpio47";
85 function = "nand";
86 drive-strength = <10>;
87 bias-disable;
88 };
89 pullups {
90 pins = "gpio39";
91 bias-pull-up;
92 };
93 hold {
94 pins = "gpio40", "gpio41", "gpio42",
95 "gpio43", "gpio44", "gpio45",
96 "gpio46", "gpio47";
97 bias-bus-hold;
98 };
99 };
100
101 rgmii2_pins: rgmii2_pins {
102 mux {
103 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
104 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
105 function = "rgmii2";
106 drive-strength = <8>;
107 bias-disable;
108 };
109 };
110 };
111
112 gsbi@16300000 {
113 qcom,mode = <GSBI_PROT_I2C_UART>;
114 status = "ok";
115 serial@16340000 {
116 status = "ok";
117 };
118 /*
119 * The i2c device on gsbi4 should not be enabled.
120 * On ipq806x designs gsbi4 i2c is meant for exclusive
121 * RPM usage. Turning this on in kernel manifests as
122 * i2c failure for the RPM.
123 */
124 };
125
126 sata-phy@1b400000 {
127 status = "ok";
128 };
129
130 sata@29000000 {
131 status = "ok";
132 };
133
134 phy@100f8800 { /* USB3 port 1 HS phy */
135 status = "ok";
136 };
137
138 phy@100f8830 { /* USB3 port 1 SS phy */
139 status = "ok";
140 };
141
142 phy@110f8800 { /* USB3 port 0 HS phy */
143 status = "ok";
144 };
145
146 phy@110f8830 { /* USB3 port 0 SS phy */
147 status = "ok";
148 };
149
150 usb30@0 {
151 status = "ok";
152 };
153
154 usb30@1 {
155 status = "ok";
156 };
157
158 pcie0: pci@1b500000 {
159 status = "ok";
160 phy-tx0-term-offset = <7>;
161 };
162
163 pcie1: pci@1b700000 {
164 status = "ok";
165 phy-tx0-term-offset = <7>;
166 };
167
168 pcie2: pci@1b900000 {
169 status = "ok";
170 phy-tx0-term-offset = <7>;
171 };
172
173 nand@1ac00000 {
174 status = "ok";
175
176 pinctrl-0 = <&nand_pins>;
177 pinctrl-names = "default";
178
179 cs0 {
180 reg = <0>;
181 compatible = "qcom,nandcs";
182
183 nand-ecc-strength = <4>;
184 nand-bus-width = <8>;
185 nand-ecc-step-size = <512>;
186
187 partitions {
188 compatible = "fixed-partitions";
189 #address-cells = <1>;
190 #size-cells = <1>;
191
192 SBL1@0 {
193 label = "SBL1";
194 reg = <0x0000000 0x0040000>;
195 read-only;
196 };
197
198 MIBIB@40000 {
199 label = "MIBIB";
200 reg = <0x0040000 0x0140000>;
201 read-only;
202 };
203
204 SBL2@180000 {
205 label = "SBL2";
206 reg = <0x0180000 0x0140000>;
207 read-only;
208 };
209
210 SBL3@2c0000 {
211 label = "SBL3";
212 reg = <0x02c0000 0x0280000>;
213 read-only;
214 };
215
216 DDRCONFIG@540000 {
217 label = "DDRCONFIG";
218 reg = <0x0540000 0x0120000>;
219 read-only;
220 };
221
222 SSD@660000 {
223 label = "SSD";
224 reg = <0x0660000 0x0120000>;
225 read-only;
226 };
227
228 TZ@780000 {
229 label = "TZ";
230 reg = <0x0780000 0x0280000>;
231 read-only;
232 };
233
234 RPM@a00000 {
235 label = "RPM";
236 reg = <0x0a00000 0x0280000>;
237 read-only;
238 };
239
240 art: art@c80000 {
241 label = "art";
242 reg = <0x0c80000 0x0140000>;
243 read-only;
244 };
245
246 APPSBL@dc0000 {
247 label = "APPSBL";
248 reg = <0x0dc0000 0x0100000>;
249 read-only;
250 };
251
252 u_env@ec0000 {
253 label = "u_env";
254 reg = <0x0ec0000 0x0040000>;
255 };
256
257 s_env@f00000 {
258 label = "s_env";
259 reg = <0x0f00000 0x0040000>;
260 };
261
262 devinfo@f40000 {
263 label = "devinfo";
264 reg = <0x0f40000 0x0040000>;
265 };
266
267 linux@f80000 {
268 label = "kernel1";
269 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
270 };
271
272 rootfs@1280000 {
273 label = "rootfs1";
274 reg = <0x1280000 0x2500000>;
275 };
276
277 linux2@3780000 {
278 label = "kernel2";
279 reg = <0x3780000 0x2800000>;
280 };
281
282 rootfs2@3a80000 {
283 label = "rootfs2";
284 reg = <0x3a80000 0x2500000>;
285 };
286
287 syscfg@5f80000 {
288 label = "syscfg";
289 reg = <0x5f80000 0x2080000>;
290 };
291 };
292 };
293 };
294
295 mdio0: mdio {
296 compatible = "virtual,mdio-gpio";
297 #address-cells = <1>;
298 #size-cells = <0>;
299 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
300 pinctrl-0 = <&mdio0_pins>;
301 pinctrl-names = "default";
302
303 phy_port1: phy@0 {
304 reg = <0>;
305 };
306
307 phy_port2: phy@1 {
308 reg = <1>;
309 };
310
311 phy_port3: phy@2 {
312 reg = <2>;
313 };
314
315 phy_port4: phy@3 {
316 reg = <3>;
317 };
318
319 phy_port5: phy@4 {
320 reg = <4>;
321 };
322
323 switch0@16 {
324 compatible = "qca,qca8337";
325 #address-cells = <1>;
326 #size-cells = <0>;
327
328 reg = <16>;
329
330 ports {
331 #address-cells = <1>;
332 #size-cells = <0>;
333 port@0 {
334 reg = <0>;
335 label = "cpu";
336 ethernet = <&gmac1>;
337 phy-mode = "rgmii";
338
339 fixed-link {
340 speed = <1000>;
341 full-duplex;
342 };
343 };
344
345 port@1 {
346 reg = <1>;
347 label = "lan1";
348 phy-handle = <&phy_port1>;
349 };
350
351 port@2 {
352 reg = <2>;
353 label = "lan2";
354 phy-handle = <&phy_port2>;
355 };
356
357 port@3 {
358 reg = <3>;
359 label = "lan3";
360 phy-handle = <&phy_port3>;
361 };
362
363 port@4 {
364 reg = <4>;
365 label = "lan4";
366 phy-handle = <&phy_port4>;
367 };
368
369 port@5 {
370 reg = <5>;
371 label = "wan";
372 phy-handle = <&phy_port5>;
373 };
374
375 /*
376 * Disabled until DSA supports multiple CPUs,
377 * otherwise it causes undefined behavior.
378 *
379 * port@6 {
380 * reg = <6>;
381 * label = "cpu";
382 * ethernet = <&gmac2>;
383 * phy-mode = "sgmii";
384 *
385 * fixed-link {
386 * speed = <1000>;
387 * full-duplex;
388 * };
389 * };
390 */
391 };
392 };
393 };
394
395 gmac1: ethernet@37200000 {
396 status = "ok";
397 phy-mode = "rgmii";
398 qcom,id = <1>;
399 qcom,phy_mdio_addr = <4>;
400 qcom,poll_required = <1>;
401 qcom,rgmii_delay = <0>;
402 qcom,emulation = <0>;
403 pinctrl-0 = <&rgmii2_pins>;
404 pinctrl-names = "default";
405 fixed-link {
406 speed = <1000>;
407 full-duplex;
408 };
409 };
410 //lan
411 gmac2: ethernet@37400000 {
412 status = "ok";
413 phy-mode = "sgmii";
414 qcom,id = <2>;
415 qcom,phy_mdio_addr = <0>; /* none */
416 qcom,poll_required = <0>; /* no polling */
417 qcom,rgmii_delay = <0>;
418 qcom,emulation = <0>;
419 fixed-link {
420 speed = <1000>;
421 full-duplex;
422 };
423 };
424
425 rpm@108000 {
426 pinctrl-0 = <&i2c4_pins>;
427 pinctrl-names = "default";
428 };
429
430 adm_dma: dma@18300000 {
431 status = "ok";
432 };
433 };
434
435 gpio-keys {
436 compatible = "gpio-keys";
437 pinctrl-0 = <&button_pins>;
438 pinctrl-names = "default";
439
440 wifi {
441 label = "wifi";
442 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
443 linux,code = <KEY_RFKILL>;
444 };
445
446 reset {
447 label = "reset";
448 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
449 linux,code = <KEY_RESTART >;
450 };
451
452 wps {
453 label = "wps";
454 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
455 linux,code = <KEY_WPS_BUTTON>;
456 };
457 };
458
459 gpio-leds {
460 compatible = "gpio-leds";
461 pinctrl-0 = <&led_pins>;
462 pinctrl-names = "default";
463
464 wps {
465 label = "ea8500:green:wps";
466 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
467 };
468
469 power: power {
470 label = "ea8500:white:power";
471 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
472 default-state = "keep";
473 };
474
475 wifi {
476 label = "ea8500:green:wifi";
477 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;
478 };
479 };
480 };