layerscape: add 64b/32b target for ls1043ardb device
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 3012-dts-ls1043a-add-fman-bman-qman-ethernet-nodes.patch
1 From 10b0a19d62d932a6eb01ceb8749190aaf0ff063e Mon Sep 17 00:00:00 2001
2 From: Shaohui Xie <Shaohui.Xie@freescale.com>
3 Date: Mon, 11 Jul 2016 10:47:20 +0800
4 Subject: [PATCH 12/70] dts: ls1043a: add fman/bman/qman/ethernet nodes
5
6 commit ecb0901ba0a6558a05054d21ad9e70999a6f7ca1
7 [context adjustment]
8
9 Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
10 Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
11 ---
12 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 461 ++++++++++++++++++++
13 .../boot/dts/freescale/qoriq-bman1-portals.dtsi | 104 +++++
14 .../boot/dts/freescale/qoriq-qman1-portals.dtsi | 136 ++++++
15 3 files changed, 701 insertions(+)
16 create mode 100644 arch/arm64/boot/dts/freescale/qoriq-bman1-portals.dtsi
17 create mode 100644 arch/arm64/boot/dts/freescale/qoriq-qman1-portals.dtsi
18
19 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
20 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
21 @@ -50,6 +50,16 @@
22 #address-cells = <2>;
23 #size-cells = <2>;
24
25 + aliases {
26 + ethernet0 = &fm1mac1;
27 + ethernet1 = &fm1mac2;
28 + ethernet2 = &fm1mac3;
29 + ethernet3 = &fm1mac4;
30 + ethernet4 = &fm1mac5;
31 + ethernet5 = &fm1mac6;
32 + ethernet6 = &fm1mac9;
33 + };
34 +
35 cpus {
36 #address-cells = <1>;
37 #size-cells = <0>;
38 @@ -174,6 +184,323 @@
39 bus-width = <4>;
40 };
41
42 + qman: qman@1880000 {
43 + compatible = "fsl,qman";
44 + reg = <0x00 0x1880000 0x0 0x10000>;
45 + interrupts = <0 45 0x4>;
46 + };
47 +
48 + bman: bman@1890000 {
49 + compatible = "fsl,bman";
50 + reg = <0x00 0x1890000 0x0 0x10000>;
51 + interrupts = <0 45 0x4>;
52 + };
53 +
54 + fman0: fman@1a00000 {
55 + #address-cells = <1>;
56 + #size-cells = <1>;
57 + cell-index = <0>;
58 + compatible = "fsl,fman", "simple-bus";
59 + ranges = <0x0 0x00 0x1a00000 0x100000>;
60 + reg = <0x00 0x1a00000 0x0 0x100000>;
61 + clock-frequency = <0>;
62 + interrupts = <0 44 0x4>,
63 + <0 45 0x4>;
64 +
65 + cc {
66 + compatible = "fsl,fman-cc";
67 + };
68 +
69 + muram@0 {
70 + compatible = "fsl,fman-muram";
71 + reg = <0x0 0x60000>;
72 + };
73 +
74 + bmi@80000 {
75 + compatible = "fsl,fman-bmi";
76 + reg = <0x80000 0x400>;
77 + };
78 +
79 + qmi@80400 {
80 + compatible = "fsl,fman-qmi";
81 + reg = <0x80400 0x400>;
82 + };
83 +
84 + fman0_oh1: port@82000 {
85 + cell-index = <0>;
86 + compatible = "fsl,fman-port-oh";
87 + reg = <0x82000 0x1000>;
88 + };
89 +
90 + fman0_oh2: port@83000 {
91 + cell-index = <1>;
92 + compatible = "fsl,fman-port-oh";
93 + reg = <0x83000 0x1000>;
94 + };
95 +
96 + fman0_oh3: port@84000 {
97 + cell-index = <2>;
98 + compatible = "fsl,fman-port-oh";
99 + reg = <0x84000 0x1000>;
100 + };
101 +
102 + fman0_oh4: port@85000 {
103 + cell-index = <3>;
104 + compatible = "fsl,fman-port-oh";
105 + reg = <0x85000 0x1000>;
106 + };
107 +
108 + fman0_oh5: port@86000 {
109 + cell-index = <4>;
110 + compatible = "fsl,fman-port-oh";
111 + reg = <0x86000 0x1000>;
112 + };
113 +
114 + fman0_oh6: port@87000 {
115 + cell-index = <5>;
116 + compatible = "fsl,fman-port-oh";
117 + reg = <0x87000 0x1000>;
118 + };
119 +
120 + policer@c0000 {
121 + compatible = "fsl,fman-policer";
122 + reg = <0xc0000 0x1000>;
123 + };
124 +
125 + keygen@c1000 {
126 + compatible = "fsl,fman-keygen";
127 + reg = <0xc1000 0x1000>;
128 + };
129 +
130 + dma@c2000 {
131 + compatible = "fsl,fman-dma";
132 + reg = <0xc2000 0x1000>;
133 + };
134 +
135 + fpm@c3000 {
136 + compatible = "fsl,fman-fpm";
137 + reg = <0xc3000 0x1000>;
138 + };
139 +
140 + parser@c7000 {
141 + compatible = "fsl,fman-parser";
142 + reg = <0xc7000 0x1000>;
143 + };
144 +
145 + vsps@dc000 {
146 + compatible = "fsl,fman-vsps";
147 + reg = <0xdc000 0x1000>;
148 + };
149 +
150 + mdio0: mdio@fc000 {
151 + #address-cells = <1>;
152 + #size-cells = <0>;
153 + compatible = "fsl,fman-memac-mdio";
154 + reg = <0xfc000 0x1000>;
155 + };
156 +
157 + xmdio0: mdio@fd000 {
158 + #address-cells = <1>;
159 + #size-cells = <0>;
160 + compatible = "fsl,fman-memac-mdio";
161 + reg = <0xfd000 0x1000>;
162 + };
163 +
164 + fman0_rx0: port@88000 {
165 + cell-index = <0>;
166 + compatible = "fsl,fman-port-1g-rx";
167 + reg = <0x88000 0x1000>;
168 + };
169 +
170 + fman0_tx0: port@a8000 {
171 + cell-index = <0>;
172 + compatible = "fsl,fman-port-1g-tx";
173 + reg = <0xa8000 0x1000>;
174 + };
175 +
176 + fm1mac1: ethernet@e0000 {
177 + cell-index = <0>;
178 + compatible = "fsl,fman-memac";
179 + reg = <0xe0000 0x1000>;
180 + fsl,port-handles = <&fman0_rx0 &fman0_tx0>;
181 + ptimer-handle = <&ptp_timer0>;
182 + };
183 +
184 + mdio@e1000 {
185 + #address-cells = <1>;
186 + #size-cells = <0>;
187 + compatible = "fsl,fman-memac-mdio";
188 + reg = <0xe1000 0x1000>;
189 + };
190 +
191 + fman0_rx1: port@89000 {
192 + cell-index = <1>;
193 + compatible = "fsl,fman-port-1g-rx";
194 + reg = <0x89000 0x1000>;
195 + };
196 +
197 + fman0_tx1: port@a9000 {
198 + cell-index = <1>;
199 + compatible = "fsl,fman-port-1g-tx";
200 + reg = <0xa9000 0x1000>;
201 + };
202 +
203 + fm1mac2: ethernet@e2000 {
204 + cell-index = <1>;
205 + compatible = "fsl,fman-memac";
206 + reg = <0xe2000 0x1000>;
207 + fsl,port-handles = <&fman0_rx1 &fman0_tx1>;
208 + ptimer-handle = <&ptp_timer0>;
209 + };
210 +
211 + mdio@e3000 {
212 + #address-cells = <1>;
213 + #size-cells = <0>;
214 + compatible = "fsl,fman-memac-mdio";
215 + reg = <0xe3000 0x1000>;
216 + };
217 +
218 + fman0_rx2: port@8a000 {
219 + cell-index = <2>;
220 + compatible = "fsl,fman-port-1g-rx";
221 + reg = <0x8a000 0x1000>;
222 + };
223 +
224 + fman0_tx2: port@aa000 {
225 + cell-index = <2>;
226 + compatible = "fsl,fman-port-1g-tx";
227 + reg = <0xaa000 0x1000>;
228 + };
229 +
230 + fm1mac3: ethernet@e4000 {
231 + cell-index = <2>;
232 + compatible = "fsl,fman-memac";
233 + reg = <0xe4000 0x1000>;
234 + fsl,port-handles = <&fman0_rx2 &fman0_tx2>;
235 + ptimer-handle = <&ptp_timer0>;
236 + };
237 +
238 + mdio@e5000 {
239 + #address-cells = <1>;
240 + #size-cells = <0>;
241 + compatible = "fsl,fman-memac-mdio";
242 + reg = <0xe5000 0x1000>;
243 + };
244 +
245 + fman0_rx3: port@8b000 {
246 + cell-index = <3>;
247 + compatible = "fsl,fman-port-1g-rx";
248 + reg = <0x8b000 0x1000>;
249 + };
250 +
251 + fman0_tx3: port@ab000 {
252 + cell-index = <3>;
253 + compatible = "fsl,fman-port-1g-tx";
254 + reg = <0xab000 0x1000>;
255 + };
256 +
257 + fm1mac4: ethernet@e6000 {
258 + cell-index = <3>;
259 + compatible = "fsl,fman-memac";
260 + reg = <0xe6000 0x1000>;
261 + fsl,port-handles = <&fman0_rx3 &fman0_tx3>;
262 + ptimer-handle = <&ptp_timer0>;
263 + };
264 +
265 + mdio@e7000 {
266 + #address-cells = <1>;
267 + #size-cells = <0>;
268 + compatible = "fsl,fman-memac-mdio";
269 + reg = <0xe7000 0x1000>;
270 + };
271 +
272 + fman0_rx4: port@8c000 {
273 + cell-index = <4>;
274 + compatible = "fsl,fman-port-1g-rx";
275 + reg = <0x8c000 0x1000>;
276 + };
277 +
278 + fman0_tx4: port@ac000 {
279 + cell-index = <4>;
280 + compatible = "fsl,fman-port-1g-tx";
281 + reg = <0xac000 0x1000>;
282 + };
283 +
284 + fm1mac5: ethernet@e8000 {
285 + cell-index = <4>;
286 + compatible = "fsl,fman-memac";
287 + reg = <0xe8000 0x1000>;
288 + fsl,port-handles = <&fman0_rx4 &fman0_tx4>;
289 + ptimer-handle = <&ptp_timer0>;
290 + };
291 +
292 + mdio@e9000 {
293 + #address-cells = <1>;
294 + #size-cells = <0>;
295 + compatible = "fsl,fman-memac-mdio";
296 + reg = <0xe9000 0x1000>;
297 + };
298 +
299 + fman0_rx5: port@8d000 {
300 + cell-index = <5>;
301 + compatible = "fsl,fman-port-1g-rx";
302 + reg = <0x8d000 0x1000>;
303 + };
304 +
305 + fman0_tx5: port@ad000 {
306 + cell-index = <5>;
307 + compatible = "fsl,fman-port-1g-tx";
308 + reg = <0xad000 0x1000>;
309 + };
310 +
311 + fm1mac6: ethernet@ea000 {
312 + cell-index = <5>;
313 + compatible = "fsl,fman-memac";
314 + reg = <0xea000 0x1000>;
315 + fsl,port-handles = <&fman0_rx5 &fman0_tx5>;
316 + ptimer-handle = <&ptp_timer0>;
317 + };
318 +
319 + mdio@eb000 {
320 + #address-cells = <1>;
321 + #size-cells = <0>;
322 + compatible = "fsl,fman-memac-mdio";
323 + reg = <0xeb000 0x1000>;
324 + };
325 +
326 + fman0_10g_rx0: port@90000 {
327 + cell-index = <0>;
328 + compatible = "fsl,fman-port-10g-rx";
329 + reg = <0x90000 0x1000>;
330 + };
331 +
332 + fman0_10g_tx0: port@b0000 {
333 + cell-index = <0>;
334 + compatible = "fsl,fman-port-10g-tx";
335 + reg = <0xb0000 0x1000>;
336 + fsl,qman-channel-id = <0x800>;
337 + };
338 +
339 + fm1mac9: ethernet@f0000 {
340 + cell-index = <0>;
341 + compatible = "fsl,fman-memac";
342 + reg = <0xf0000 0x1000>;
343 + fsl,port-handles = <&fman0_10g_rx0 &fman0_10g_tx0>;
344 + };
345 +
346 + mdio@f1000 {
347 + #address-cells = <1>;
348 + #size-cells = <0>;
349 + compatible = "fsl,fman-memac-mdio";
350 + reg = <0xf1000 0x1000>;
351 + };
352 +
353 + ptp_timer0: rtc@fe000 {
354 + compatible = "fsl,fman-rtc";
355 + reg = <0xfe000 0x1000>;
356 + };
357 + };
358 +
359 dspi0: dspi@2100000 {
360 compatible = "fsl,ls1043a-dspi", "fsl,ls1021a-v1.0-dspi";
361 #address-cells = <1>;
362 @@ -522,4 +849,138 @@
363 };
364 };
365
366 + fsl,dpaa {
367 + compatible = "fsl,ls1043a-dpaa", "simple-bus", "fsl,dpaa";
368 + ethernet@0 {
369 + compatible = "fsl,dpa-ethernet";
370 + fsl,fman-mac = <&fm1mac1>;
371 + };
372 + ethernet@1 {
373 + compatible = "fsl,dpa-ethernet";
374 + fsl,fman-mac = <&fm1mac2>;
375 + };
376 + ethernet@2 {
377 + compatible = "fsl,dpa-ethernet";
378 + fsl,fman-mac = <&fm1mac3>;
379 + };
380 + ethernet@3 {
381 + compatible = "fsl,dpa-ethernet";
382 + fsl,fman-mac = <&fm1mac4>;
383 + };
384 + ethernet@4 {
385 + compatible = "fsl,dpa-ethernet";
386 + fsl,fman-mac = <&fm1mac5>;
387 + };
388 + ethernet@5 {
389 + compatible = "fsl,dpa-ethernet";
390 + fsl,fman-mac = <&fm1mac6>;
391 + };
392 + ethernet@8 {
393 + compatible = "fsl,dpa-ethernet";
394 + fsl,fman-mac = <&fm1mac9>;
395 + };
396 + };
397 +
398 + qportals: qman-portals@500000000 {
399 + ranges = <0x0 0x5 0x00000000 0x8000000>;
400 + };
401 + bportals: bman-portals@508000000 {
402 + ranges = <0x0 0x5 0x08000000 0x8000000>;
403 + };
404 + reserved-memory {
405 + #address-cells = <2>;
406 + #size-cells = <2>;
407 + ranges;
408 +
409 + bman_fbpr: bman-fbpr {
410 + size = <0 0x1000000>;
411 + alignment = <0 0x1000000>;
412 + };
413 + qman_fqd: qman-fqd {
414 + size = <0 0x400000>;
415 + alignment = <0 0x400000>;
416 + };
417 + qman_pfdr: qman-pfdr {
418 + size = <0 0x2000000>;
419 + alignment = <0 0x2000000>;
420 + };
421 + };
422 +};
423 +
424 +&fman0 {
425 + /* offline - 1 */
426 + port@82000 {
427 + fsl,qman-channel-id = <0x809>;
428 + };
429 +
430 + /* tx - 10g - 2 */
431 + port@a8000 {
432 + fsl,qman-channel-id = <0x802>;
433 + };
434 + /* tx - 10g - 3 */
435 + port@a9000 {
436 + fsl,qman-channel-id = <0x803>;
437 + };
438 + /* tx - 1g - 2 */
439 + port@aa000 {
440 + fsl,qman-channel-id = <0x804>;
441 + };
442 + /* tx - 1g - 3 */
443 + port@ab000 {
444 + fsl,qman-channel-id = <0x805>;
445 + };
446 + /* tx - 1g - 4 */
447 + port@ac000 {
448 + fsl,qman-channel-id = <0x806>;
449 + };
450 + /* tx - 1g - 5 */
451 + port@ad000 {
452 + fsl,qman-channel-id = <0x807>;
453 + };
454 + /* tx - 10g - 0 */
455 + port@b0000 {
456 + fsl,qman-channel-id = <0x800>;
457 + };
458 + /* tx - 10g - 1 */
459 + port@b1000 {
460 + fsl,qman-channel-id = <0x801>;
461 + };
462 + /* offline - 2 */
463 + port@83000 {
464 + fsl,qman-channel-id = <0x80a>;
465 + };
466 + /* offline - 3 */
467 + port@84000 {
468 + fsl,qman-channel-id = <0x80b>;
469 + };
470 + /* offline - 4 */
471 + port@85000 {
472 + fsl,qman-channel-id = <0x80c>;
473 + };
474 + /* offline - 5 */
475 + port@86000 {
476 + fsl,qman-channel-id = <0x80d>;
477 + };
478 + /* offline - 6 */
479 + port@87000 {
480 + fsl,qman-channel-id = <0x80e>;
481 + };
482 +};
483 +
484 +&bman_fbpr {
485 + compatible = "fsl,bman-fbpr";
486 + alloc-ranges = <0 0 0x10000 0>;
487 };
488 +
489 +&qman_fqd {
490 + compatible = "fsl,qman-fqd";
491 + alloc-ranges = <0 0 0x10000 0>;
492 +};
493 +
494 +&qman_pfdr {
495 + compatible = "fsl,qman-pfdr";
496 + alloc-ranges = <0 0 0x10000 0>;
497 +};
498 +
499 +/include/ "qoriq-qman1-portals.dtsi"
500 +/include/ "qoriq-bman1-portals.dtsi"
501 --- /dev/null
502 +++ b/arch/arm64/boot/dts/freescale/qoriq-bman1-portals.dtsi
503 @@ -0,0 +1,104 @@
504 +/*
505 + * QorIQ BMan Portal device tree stub for 10 portals
506 + *
507 + * Copyright 2011-2016 Freescale Semiconductor Inc.
508 + *
509 + * Redistribution and use in source and binary forms, with or without
510 + * modification, are permitted provided that the following conditions are met:
511 + * * Redistributions of source code must retain the above copyright
512 + * notice, this list of conditions and the following disclaimer.
513 + * * Redistributions in binary form must reproduce the above copyright
514 + * notice, this list of conditions and the following disclaimer in the
515 + * documentation and/or other materials provided with the distribution.
516 + * * Neither the name of Freescale Semiconductor nor the
517 + * names of its contributors may be used to endorse or promote products
518 + * derived from this software without specific prior written permission.
519 + *
520 + *
521 + * ALTERNATIVELY, this software may be distributed under the terms of the
522 + * GNU General Public License ("GPL") as published by the Free Software
523 + * Foundation, either version 2 of that License or (at your option) any
524 + * later version.
525 + *
526 + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
527 + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
528 + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
529 + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
530 + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
531 + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
532 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
533 + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
534 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
535 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
536 + */
537 +
538 +&bportals {
539 + #address-cells = <1>;
540 + #size-cells = <1>;
541 + compatible = "simple-bus";
542 + bportal0: bman-portal@0 {
543 + cell-index = <0>;
544 + compatible = "fsl,bman-portal";
545 + reg = <0x0 0x4000 0x4000000 0x4000>;
546 + interrupts = <0 173 0x4>;
547 + };
548 + bportal1: bman-portal@10000 {
549 + cell-index = <1>;
550 + compatible = "fsl,bman-portal";
551 + reg = <0x10000 0x4000 0x4010000 0x4000>;
552 + interrupts = <0 175 0x4>;
553 + };
554 + bportal2: bman-portal@20000 {
555 + cell-index = <2>;
556 + compatible = "fsl,bman-portal";
557 + reg = <0x20000 0x4000 0x4020000 0x4000>;
558 + interrupts = <0 177 0x4>;
559 + };
560 + bportal3: bman-portal@30000 {
561 + cell-index = <3>;
562 + compatible = "fsl,bman-portal";
563 + reg = <0x30000 0x4000 0x4030000 0x4000>;
564 + interrupts = <0 179 0x4>;
565 + };
566 + bportal4: bman-portal@40000 {
567 + cell-index = <4>;
568 + compatible = "fsl,bman-portal";
569 + reg = <0x40000 0x4000 0x4040000 0x4000>;
570 + interrupts = <0 181 0x4>;
571 + };
572 + bportal5: bman-portal@50000 {
573 + cell-index = <5>;
574 + compatible = "fsl,bman-portal";
575 + reg = <0x50000 0x4000 0x4050000 0x4000>;
576 + interrupts = <0 183 0x4>;
577 + };
578 + bportal6: bman-portal@60000 {
579 + cell-index = <6>;
580 + compatible = "fsl,bman-portal";
581 + reg = <0x60000 0x4000 0x4060000 0x4000>;
582 + interrupts = <0 185 0x4>;
583 + };
584 + bportal7: bman-portal@70000 {
585 + cell-index = <7>;
586 + compatible = "fsl,bman-portal";
587 + reg = <0x70000 0x4000 0x4070000 0x4000>;
588 + interrupts = <0 187 0x4>;
589 + };
590 + bportal8: bman-portal@80000 {
591 + cell-index = <8>;
592 + compatible = "fsl,bman-portal";
593 + reg = <0x80000 0x4000 0x4080000 0x4000>;
594 + interrupts = <0 189 0x4>;
595 + };
596 +/* bportal9: bman-portal@90000 {
597 + cell-index = <9>;
598 + compatible = "fsl,bman-portal";
599 + reg = <0x90000 0x4000 0x4090000 0x4000>;
600 + interrupts = <0 191 0x4>;
601 + }; */
602 + bman-bpids@0 {
603 + compatible = "fsl,bpid-range";
604 + fsl,bpid-range = <32 32>;
605 + };
606 +
607 +};
608 --- /dev/null
609 +++ b/arch/arm64/boot/dts/freescale/qoriq-qman1-portals.dtsi
610 @@ -0,0 +1,136 @@
611 +/*
612 + * QorIQ QMan Portal device tree stub for 10 portals & 15 pool channels
613 + *
614 + * Copyright 2011-2016 Freescale Semiconductor Inc.
615 + *
616 + * Redistribution and use in source and binary forms, with or without
617 + * modification, are permitted provided that the following conditions are met:
618 + * * Redistributions of source code must retain the above copyright
619 + * notice, this list of conditions and the following disclaimer.
620 + * * Redistributions in binary form must reproduce the above copyright
621 + * notice, this list of conditions and the following disclaimer in the
622 + * documentation and/or other materials provided with the distribution.
623 + * * Neither the name of Freescale Semiconductor nor the
624 + * names of its contributors may be used to endorse or promote products
625 + * derived from this software without specific prior written permission.
626 + *
627 + *
628 + * ALTERNATIVELY, this software may be distributed under the terms of the
629 + * GNU General Public License ("GPL") as published by the Free Software
630 + * Foundation, either version 2 of that License or (at your option) any
631 + * later version.
632 + *
633 + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
634 + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
635 + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
636 + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
637 + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
638 + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
639 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
640 + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
641 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
642 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
643 + */
644 +&qportals {
645 +
646 + #address-cells = <1>;
647 + #size-cells = <1>;
648 + compatible = "simple-bus";
649 + qportal0: qman-portal@0 {
650 + cell-index = <0>;
651 + compatible = "fsl,qman-portal";
652 + reg = <0x0 0x4000 0x4000000 0x4000>;
653 + interrupts = <0 172 0x4>;
654 + fsl,qman-channel-id = <0x0>;
655 + };
656 +
657 + qportal1: qman-portal@10000 {
658 + cell-index = <1>;
659 + compatible = "fsl,qman-portal";
660 + reg = <0x10000 0x4000 0x4010000 0x4000>;
661 + interrupts = <0 174 0x4>;
662 + fsl,qman-channel-id = <1>;
663 + };
664 +
665 + qportal2: qman-portal@20000 {
666 + cell-index = <2>;
667 + compatible = "fsl,qman-portal";
668 + reg = <0x20000 0x4000 0x4020000 0x4000>;
669 + interrupts = <0 176 0x4>;
670 + fsl,qman-channel-id = <2>;
671 + };
672 +
673 + qportal3: qman-portal@30000 {
674 + cell-index = <3>;
675 + compatible = "fsl,qman-portal";
676 + reg = <0x30000 0x4000 0x4030000 0x4000>;
677 + interrupts = <0 178 0x4>;
678 + fsl,qman-channel-id = <3>;
679 + };
680 +
681 + qportal4: qman-portal@40000 {
682 + cell-index = <4>;
683 + compatible = "fsl,qman-portal";
684 + reg = <0x40000 0x4000 0x4040000 0x4000>;
685 + interrupts = <0 180 0x4>;
686 + fsl,qman-channel-id = <4>;
687 + };
688 +
689 + qportal5: qman-portal@50000 {
690 + cell-index = <5>;
691 + compatible = "fsl,qman-portal";
692 + reg = <0x50000 0x4000 0x4050000 0x4000>;
693 + interrupts = <0 182 0x4>;
694 + fsl,qman-channel-id = <5>;
695 + };
696 +
697 + qportal6: qman-portal@60000 {
698 + cell-index = <6>;
699 + compatible = "fsl,qman-portal";
700 + reg = <0x60000 0x4000 0x4060000 0x4000>;
701 + interrupts = <0 184 0x4>;
702 + fsl,qman-channel-id = <6>;
703 + };
704 +
705 + qportal7: qman-portal@70000 {
706 + cell-index = <7>;
707 + compatible = "fsl,qman-portal";
708 + reg = <0x70000 0x4000 0x4070000 0x4000>;
709 + interrupts = <0 186 0x4>;
710 + fsl,qman-channel-id = <7>;
711 + };
712 +
713 + qportal8: qman-portal@80000 {
714 + cell-index = <8>;
715 + compatible = "fsl,qman-portal";
716 + reg = <0x80000 0x4000 0x4080000 0x4000>;
717 + interrupts = <0 188 0x4>;
718 + fsl,qman-channel-id = <8>;
719 + };
720 +
721 +/* qportal9: qman-portal@90000 {
722 + cell-index = <9>;
723 + compatible = "fsl,qman-portal";
724 + reg = <0x90000 0x4000 0x4090000 0x4000>;
725 + interrupts = <0 190 0x4>;
726 + fsl,qman-channel-id = <9>;
727 + }; */
728 +
729 + qman-fqids@0 {
730 + compatible = "fsl,fqid-range";
731 + fsl,fqid-range = <256 256>;
732 + };
733 + qman-fqids@1 {
734 + compatible = "fsl,fqid-range";
735 + fsl,fqid-range = <32768 32768>;
736 + };
737 + qman-pools@0 {
738 + compatible = "fsl,pool-channel-range";
739 + fsl,pool-channel-range = <0x401 0xf>;
740 + };
741 + qman-cgrids@0 {
742 + compatible = "fsl,cgrid-range";
743 + fsl,cgrid-range = <0 256>;
744 + };
745 +
746 +};
747 \ No newline at end of file