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
6 commit ecb0901ba0a6558a05054d21ad9e70999a6f7ca1
9 Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
10 Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
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
19 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
20 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
26 + ethernet0 = &fm1mac1;
27 + ethernet1 = &fm1mac2;
28 + ethernet2 = &fm1mac3;
29 + ethernet3 = &fm1mac4;
30 + ethernet4 = &fm1mac5;
31 + ethernet5 = &fm1mac6;
32 + ethernet6 = &fm1mac9;
42 + qman: qman@1880000 {
43 + compatible = "fsl,qman";
44 + reg = <0x00 0x1880000 0x0 0x10000>;
45 + interrupts = <0 45 0x4>;
48 + bman: bman@1890000 {
49 + compatible = "fsl,bman";
50 + reg = <0x00 0x1890000 0x0 0x10000>;
51 + interrupts = <0 45 0x4>;
54 + fman0: fman@1a00000 {
55 + #address-cells = <1>;
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>,
66 + compatible = "fsl,fman-cc";
70 + compatible = "fsl,fman-muram";
71 + reg = <0x0 0x60000>;
75 + compatible = "fsl,fman-bmi";
76 + reg = <0x80000 0x400>;
80 + compatible = "fsl,fman-qmi";
81 + reg = <0x80400 0x400>;
84 + fman0_oh1: port@82000 {
86 + compatible = "fsl,fman-port-oh";
87 + reg = <0x82000 0x1000>;
90 + fman0_oh2: port@83000 {
92 + compatible = "fsl,fman-port-oh";
93 + reg = <0x83000 0x1000>;
96 + fman0_oh3: port@84000 {
98 + compatible = "fsl,fman-port-oh";
99 + reg = <0x84000 0x1000>;
102 + fman0_oh4: port@85000 {
104 + compatible = "fsl,fman-port-oh";
105 + reg = <0x85000 0x1000>;
108 + fman0_oh5: port@86000 {
110 + compatible = "fsl,fman-port-oh";
111 + reg = <0x86000 0x1000>;
114 + fman0_oh6: port@87000 {
116 + compatible = "fsl,fman-port-oh";
117 + reg = <0x87000 0x1000>;
121 + compatible = "fsl,fman-policer";
122 + reg = <0xc0000 0x1000>;
126 + compatible = "fsl,fman-keygen";
127 + reg = <0xc1000 0x1000>;
131 + compatible = "fsl,fman-dma";
132 + reg = <0xc2000 0x1000>;
136 + compatible = "fsl,fman-fpm";
137 + reg = <0xc3000 0x1000>;
141 + compatible = "fsl,fman-parser";
142 + reg = <0xc7000 0x1000>;
146 + compatible = "fsl,fman-vsps";
147 + reg = <0xdc000 0x1000>;
150 + mdio0: mdio@fc000 {
151 + #address-cells = <1>;
153 + compatible = "fsl,fman-memac-mdio";
154 + reg = <0xfc000 0x1000>;
157 + xmdio0: mdio@fd000 {
158 + #address-cells = <1>;
160 + compatible = "fsl,fman-memac-mdio";
161 + reg = <0xfd000 0x1000>;
164 + fman0_rx0: port@88000 {
166 + compatible = "fsl,fman-port-1g-rx";
167 + reg = <0x88000 0x1000>;
170 + fman0_tx0: port@a8000 {
172 + compatible = "fsl,fman-port-1g-tx";
173 + reg = <0xa8000 0x1000>;
176 + fm1mac1: ethernet@e0000 {
178 + compatible = "fsl,fman-memac";
179 + reg = <0xe0000 0x1000>;
180 + fsl,port-handles = <&fman0_rx0 &fman0_tx0>;
181 + ptimer-handle = <&ptp_timer0>;
185 + #address-cells = <1>;
187 + compatible = "fsl,fman-memac-mdio";
188 + reg = <0xe1000 0x1000>;
191 + fman0_rx1: port@89000 {
193 + compatible = "fsl,fman-port-1g-rx";
194 + reg = <0x89000 0x1000>;
197 + fman0_tx1: port@a9000 {
199 + compatible = "fsl,fman-port-1g-tx";
200 + reg = <0xa9000 0x1000>;
203 + fm1mac2: ethernet@e2000 {
205 + compatible = "fsl,fman-memac";
206 + reg = <0xe2000 0x1000>;
207 + fsl,port-handles = <&fman0_rx1 &fman0_tx1>;
208 + ptimer-handle = <&ptp_timer0>;
212 + #address-cells = <1>;
214 + compatible = "fsl,fman-memac-mdio";
215 + reg = <0xe3000 0x1000>;
218 + fman0_rx2: port@8a000 {
220 + compatible = "fsl,fman-port-1g-rx";
221 + reg = <0x8a000 0x1000>;
224 + fman0_tx2: port@aa000 {
226 + compatible = "fsl,fman-port-1g-tx";
227 + reg = <0xaa000 0x1000>;
230 + fm1mac3: ethernet@e4000 {
232 + compatible = "fsl,fman-memac";
233 + reg = <0xe4000 0x1000>;
234 + fsl,port-handles = <&fman0_rx2 &fman0_tx2>;
235 + ptimer-handle = <&ptp_timer0>;
239 + #address-cells = <1>;
241 + compatible = "fsl,fman-memac-mdio";
242 + reg = <0xe5000 0x1000>;
245 + fman0_rx3: port@8b000 {
247 + compatible = "fsl,fman-port-1g-rx";
248 + reg = <0x8b000 0x1000>;
251 + fman0_tx3: port@ab000 {
253 + compatible = "fsl,fman-port-1g-tx";
254 + reg = <0xab000 0x1000>;
257 + fm1mac4: ethernet@e6000 {
259 + compatible = "fsl,fman-memac";
260 + reg = <0xe6000 0x1000>;
261 + fsl,port-handles = <&fman0_rx3 &fman0_tx3>;
262 + ptimer-handle = <&ptp_timer0>;
266 + #address-cells = <1>;
268 + compatible = "fsl,fman-memac-mdio";
269 + reg = <0xe7000 0x1000>;
272 + fman0_rx4: port@8c000 {
274 + compatible = "fsl,fman-port-1g-rx";
275 + reg = <0x8c000 0x1000>;
278 + fman0_tx4: port@ac000 {
280 + compatible = "fsl,fman-port-1g-tx";
281 + reg = <0xac000 0x1000>;
284 + fm1mac5: ethernet@e8000 {
286 + compatible = "fsl,fman-memac";
287 + reg = <0xe8000 0x1000>;
288 + fsl,port-handles = <&fman0_rx4 &fman0_tx4>;
289 + ptimer-handle = <&ptp_timer0>;
293 + #address-cells = <1>;
295 + compatible = "fsl,fman-memac-mdio";
296 + reg = <0xe9000 0x1000>;
299 + fman0_rx5: port@8d000 {
301 + compatible = "fsl,fman-port-1g-rx";
302 + reg = <0x8d000 0x1000>;
305 + fman0_tx5: port@ad000 {
307 + compatible = "fsl,fman-port-1g-tx";
308 + reg = <0xad000 0x1000>;
311 + fm1mac6: ethernet@ea000 {
313 + compatible = "fsl,fman-memac";
314 + reg = <0xea000 0x1000>;
315 + fsl,port-handles = <&fman0_rx5 &fman0_tx5>;
316 + ptimer-handle = <&ptp_timer0>;
320 + #address-cells = <1>;
322 + compatible = "fsl,fman-memac-mdio";
323 + reg = <0xeb000 0x1000>;
326 + fman0_10g_rx0: port@90000 {
328 + compatible = "fsl,fman-port-10g-rx";
329 + reg = <0x90000 0x1000>;
332 + fman0_10g_tx0: port@b0000 {
334 + compatible = "fsl,fman-port-10g-tx";
335 + reg = <0xb0000 0x1000>;
336 + fsl,qman-channel-id = <0x800>;
339 + fm1mac9: ethernet@f0000 {
341 + compatible = "fsl,fman-memac";
342 + reg = <0xf0000 0x1000>;
343 + fsl,port-handles = <&fman0_10g_rx0 &fman0_10g_tx0>;
347 + #address-cells = <1>;
349 + compatible = "fsl,fman-memac-mdio";
350 + reg = <0xf1000 0x1000>;
353 + ptp_timer0: rtc@fe000 {
354 + compatible = "fsl,fman-rtc";
355 + reg = <0xfe000 0x1000>;
359 dspi0: dspi@2100000 {
360 compatible = "fsl,ls1043a-dspi", "fsl,ls1021a-v1.0-dspi";
361 #address-cells = <1>;
362 @@ -522,4 +849,138 @@
367 + compatible = "fsl,ls1043a-dpaa", "simple-bus", "fsl,dpaa";
369 + compatible = "fsl,dpa-ethernet";
370 + fsl,fman-mac = <&fm1mac1>;
373 + compatible = "fsl,dpa-ethernet";
374 + fsl,fman-mac = <&fm1mac2>;
377 + compatible = "fsl,dpa-ethernet";
378 + fsl,fman-mac = <&fm1mac3>;
381 + compatible = "fsl,dpa-ethernet";
382 + fsl,fman-mac = <&fm1mac4>;
385 + compatible = "fsl,dpa-ethernet";
386 + fsl,fman-mac = <&fm1mac5>;
389 + compatible = "fsl,dpa-ethernet";
390 + fsl,fman-mac = <&fm1mac6>;
393 + compatible = "fsl,dpa-ethernet";
394 + fsl,fman-mac = <&fm1mac9>;
398 + qportals: qman-portals@500000000 {
399 + ranges = <0x0 0x5 0x00000000 0x8000000>;
401 + bportals: bman-portals@508000000 {
402 + ranges = <0x0 0x5 0x08000000 0x8000000>;
405 + #address-cells = <2>;
409 + bman_fbpr: bman-fbpr {
410 + size = <0 0x1000000>;
411 + alignment = <0 0x1000000>;
413 + qman_fqd: qman-fqd {
414 + size = <0 0x400000>;
415 + alignment = <0 0x400000>;
417 + qman_pfdr: qman-pfdr {
418 + size = <0 0x2000000>;
419 + alignment = <0 0x2000000>;
427 + fsl,qman-channel-id = <0x809>;
432 + fsl,qman-channel-id = <0x802>;
436 + fsl,qman-channel-id = <0x803>;
440 + fsl,qman-channel-id = <0x804>;
444 + fsl,qman-channel-id = <0x805>;
448 + fsl,qman-channel-id = <0x806>;
452 + fsl,qman-channel-id = <0x807>;
456 + fsl,qman-channel-id = <0x800>;
460 + fsl,qman-channel-id = <0x801>;
464 + fsl,qman-channel-id = <0x80a>;
468 + fsl,qman-channel-id = <0x80b>;
472 + fsl,qman-channel-id = <0x80c>;
476 + fsl,qman-channel-id = <0x80d>;
480 + fsl,qman-channel-id = <0x80e>;
485 + compatible = "fsl,bman-fbpr";
486 + alloc-ranges = <0 0 0x10000 0>;
490 + compatible = "fsl,qman-fqd";
491 + alloc-ranges = <0 0 0x10000 0>;
495 + compatible = "fsl,qman-pfdr";
496 + alloc-ranges = <0 0 0x10000 0>;
499 +/include/ "qoriq-qman1-portals.dtsi"
500 +/include/ "qoriq-bman1-portals.dtsi"
502 +++ b/arch/arm64/boot/dts/freescale/qoriq-bman1-portals.dtsi
505 + * QorIQ BMan Portal device tree stub for 10 portals
507 + * Copyright 2011-2016 Freescale Semiconductor Inc.
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.
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
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.
539 + #address-cells = <1>;
541 + compatible = "simple-bus";
542 + bportal0: bman-portal@0 {
544 + compatible = "fsl,bman-portal";
545 + reg = <0x0 0x4000 0x4000000 0x4000>;
546 + interrupts = <0 173 0x4>;
548 + bportal1: bman-portal@10000 {
550 + compatible = "fsl,bman-portal";
551 + reg = <0x10000 0x4000 0x4010000 0x4000>;
552 + interrupts = <0 175 0x4>;
554 + bportal2: bman-portal@20000 {
556 + compatible = "fsl,bman-portal";
557 + reg = <0x20000 0x4000 0x4020000 0x4000>;
558 + interrupts = <0 177 0x4>;
560 + bportal3: bman-portal@30000 {
562 + compatible = "fsl,bman-portal";
563 + reg = <0x30000 0x4000 0x4030000 0x4000>;
564 + interrupts = <0 179 0x4>;
566 + bportal4: bman-portal@40000 {
568 + compatible = "fsl,bman-portal";
569 + reg = <0x40000 0x4000 0x4040000 0x4000>;
570 + interrupts = <0 181 0x4>;
572 + bportal5: bman-portal@50000 {
574 + compatible = "fsl,bman-portal";
575 + reg = <0x50000 0x4000 0x4050000 0x4000>;
576 + interrupts = <0 183 0x4>;
578 + bportal6: bman-portal@60000 {
580 + compatible = "fsl,bman-portal";
581 + reg = <0x60000 0x4000 0x4060000 0x4000>;
582 + interrupts = <0 185 0x4>;
584 + bportal7: bman-portal@70000 {
586 + compatible = "fsl,bman-portal";
587 + reg = <0x70000 0x4000 0x4070000 0x4000>;
588 + interrupts = <0 187 0x4>;
590 + bportal8: bman-portal@80000 {
592 + compatible = "fsl,bman-portal";
593 + reg = <0x80000 0x4000 0x4080000 0x4000>;
594 + interrupts = <0 189 0x4>;
596 +/* bportal9: bman-portal@90000 {
598 + compatible = "fsl,bman-portal";
599 + reg = <0x90000 0x4000 0x4090000 0x4000>;
600 + interrupts = <0 191 0x4>;
603 + compatible = "fsl,bpid-range";
604 + fsl,bpid-range = <32 32>;
609 +++ b/arch/arm64/boot/dts/freescale/qoriq-qman1-portals.dtsi
612 + * QorIQ QMan Portal device tree stub for 10 portals & 15 pool channels
614 + * Copyright 2011-2016 Freescale Semiconductor Inc.
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.
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
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.
646 + #address-cells = <1>;
648 + compatible = "simple-bus";
649 + qportal0: qman-portal@0 {
651 + compatible = "fsl,qman-portal";
652 + reg = <0x0 0x4000 0x4000000 0x4000>;
653 + interrupts = <0 172 0x4>;
654 + fsl,qman-channel-id = <0x0>;
657 + qportal1: qman-portal@10000 {
659 + compatible = "fsl,qman-portal";
660 + reg = <0x10000 0x4000 0x4010000 0x4000>;
661 + interrupts = <0 174 0x4>;
662 + fsl,qman-channel-id = <1>;
665 + qportal2: qman-portal@20000 {
667 + compatible = "fsl,qman-portal";
668 + reg = <0x20000 0x4000 0x4020000 0x4000>;
669 + interrupts = <0 176 0x4>;
670 + fsl,qman-channel-id = <2>;
673 + qportal3: qman-portal@30000 {
675 + compatible = "fsl,qman-portal";
676 + reg = <0x30000 0x4000 0x4030000 0x4000>;
677 + interrupts = <0 178 0x4>;
678 + fsl,qman-channel-id = <3>;
681 + qportal4: qman-portal@40000 {
683 + compatible = "fsl,qman-portal";
684 + reg = <0x40000 0x4000 0x4040000 0x4000>;
685 + interrupts = <0 180 0x4>;
686 + fsl,qman-channel-id = <4>;
689 + qportal5: qman-portal@50000 {
691 + compatible = "fsl,qman-portal";
692 + reg = <0x50000 0x4000 0x4050000 0x4000>;
693 + interrupts = <0 182 0x4>;
694 + fsl,qman-channel-id = <5>;
697 + qportal6: qman-portal@60000 {
699 + compatible = "fsl,qman-portal";
700 + reg = <0x60000 0x4000 0x4060000 0x4000>;
701 + interrupts = <0 184 0x4>;
702 + fsl,qman-channel-id = <6>;
705 + qportal7: qman-portal@70000 {
707 + compatible = "fsl,qman-portal";
708 + reg = <0x70000 0x4000 0x4070000 0x4000>;
709 + interrupts = <0 186 0x4>;
710 + fsl,qman-channel-id = <7>;
713 + qportal8: qman-portal@80000 {
715 + compatible = "fsl,qman-portal";
716 + reg = <0x80000 0x4000 0x4080000 0x4000>;
717 + interrupts = <0 188 0x4>;
718 + fsl,qman-channel-id = <8>;
721 +/* qportal9: qman-portal@90000 {
723 + compatible = "fsl,qman-portal";
724 + reg = <0x90000 0x4000 0x4090000 0x4000>;
725 + interrupts = <0 190 0x4>;
726 + fsl,qman-channel-id = <9>;
730 + compatible = "fsl,fqid-range";
731 + fsl,fqid-range = <256 256>;
734 + compatible = "fsl,fqid-range";
735 + fsl,fqid-range = <32768 32768>;
738 + compatible = "fsl,pool-channel-range";
739 + fsl,pool-channel-range = <0x401 0xf>;
742 + compatible = "fsl,cgrid-range";
743 + fsl,cgrid-range = <0 256>;
747 \ No newline at end of file