blob: cdded8a8444a26bd49a8f54de93d52747b77db8b [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From fd5901a48f68c74f074ea5c490377b7c9f3899f5 Mon Sep 17 00:00:00 2001
2From: Li Yang <leoyang.li@nxp.com>
3Date: Fri, 5 Oct 2018 17:52:23 -0500
4Subject: [PATCH] sdk: arm64: dts: add/update DPAA1 include files for SDK
5 flavor
6
7Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
8Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
9Signed-off-by: Li Yang <leoyang.li@nxp.com>
10---
11 .../boot/dts/freescale/qoriq-bman-portals-sdk.dtsi | 55 +++++++++++++++++
12 arch/arm64/boot/dts/freescale/qoriq-dpaa-eth.dtsi | 72 ++++++++++++++++++++++
13 .../boot/dts/freescale/qoriq-fman3-0-10g-0.dtsi | 9 +--
14 .../boot/dts/freescale/qoriq-fman3-0-10g-1.dtsi | 9 +--
15 .../boot/dts/freescale/qoriq-fman3-0-1g-0.dtsi | 5 +-
16 .../boot/dts/freescale/qoriq-fman3-0-1g-1.dtsi | 5 +-
17 .../boot/dts/freescale/qoriq-fman3-0-1g-2.dtsi | 5 +-
18 .../boot/dts/freescale/qoriq-fman3-0-1g-3.dtsi | 5 +-
19 .../boot/dts/freescale/qoriq-fman3-0-1g-4.dtsi | 5 +-
20 .../boot/dts/freescale/qoriq-fman3-0-1g-5.dtsi | 5 +-
21 .../boot/dts/freescale/qoriq-fman3-0-6oh.dtsi | 47 ++++++++++++++
22 arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi | 52 +++++++++++++++-
23 .../boot/dts/freescale/qoriq-qman-portals-sdk.dtsi | 38 ++++++++++++
24 13 files changed, 291 insertions(+), 21 deletions(-)
25 create mode 100644 arch/arm64/boot/dts/freescale/qoriq-bman-portals-sdk.dtsi
26 create mode 100644 arch/arm64/boot/dts/freescale/qoriq-dpaa-eth.dtsi
27 create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0-6oh.dtsi
28 create mode 100644 arch/arm64/boot/dts/freescale/qoriq-qman-portals-sdk.dtsi
29
30--- /dev/null
31+++ b/arch/arm64/boot/dts/freescale/qoriq-bman-portals-sdk.dtsi
32@@ -0,0 +1,55 @@
33+/*
34+ * QorIQ BMan SDK Portals device tree nodes
35+ *
36+ * Copyright 2011-2016 Freescale Semiconductor Inc.
37+ * Copyright 2017 NXP
38+ *
39+ * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
40+ */
41+
42+&bportals {
43+ bman-portal@0 {
44+ cell-index = <0>;
45+ };
46+
47+ bman-portal@10000 {
48+ cell-index = <1>;
49+ };
50+
51+ bman-portal@20000 {
52+ cell-index = <2>;
53+ };
54+
55+ bman-portal@30000 {
56+ cell-index = <3>;
57+ };
58+
59+ bman-portal@40000 {
60+ cell-index = <4>;
61+ };
62+
63+ bman-portal@50000 {
64+ cell-index = <5>;
65+ };
66+
67+ bman-portal@60000 {
68+ cell-index = <6>;
69+ };
70+
71+ bman-portal@70000 {
72+ cell-index = <7>;
73+ };
74+
75+ bman-portal@80000 {
76+ cell-index = <8>;
77+ };
78+
79+ bman-portal@90000 {
80+ cell-index = <9>;
81+ };
82+
83+ bman-bpids@0 {
84+ compatible = "fsl,bpid-range";
85+ fsl,bpid-range = <32 32>;
86+ };
87+};
88--- /dev/null
89+++ b/arch/arm64/boot/dts/freescale/qoriq-dpaa-eth.dtsi
90@@ -0,0 +1,72 @@
91+/*
92+ * QorIQ FMan v3 10g port #1 device tree stub [ controller @ offset 0x400000 ]
93+ *
94+ * Copyright 2012 - 2015 Freescale Semiconductor Inc.
95+ *
96+ * Redistribution and use in source and binary forms, with or without
97+ * modification, are permitted provided that the following conditions are met:
98+ * * Redistributions of source code must retain the above copyright
99+ * notice, this list of conditions and the following disclaimer.
100+ * * Redistributions in binary form must reproduce the above copyright
101+ * notice, this list of conditions and the following disclaimer in the
102+ * documentation and/or other materials provided with the distribution.
103+ * * Neither the name of Freescale Semiconductor nor the
104+ * names of its contributors may be used to endorse or promote products
105+ * derived from this software without specific prior written permission.
106+ *
107+ *
108+ * ALTERNATIVELY, this software may be distributed under the terms of the
109+ * GNU General Public License ("GPL") as published by the Free Software
110+ * Foundation, either version 2 of that License or (at your option) any
111+ * later version.
112+ *
113+ * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
114+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
115+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
116+ * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
117+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
118+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
119+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
120+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
121+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
122+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
123+ */
124+
125+fsldpaa: fsl,dpaa {
126+ compatible = "fsl,ls1043a-dpaa", "simple-bus", "fsl,dpaa";
127+ ethernet@0 {
128+ compatible = "fsl,dpa-ethernet";
129+ fsl,fman-mac = <&enet0>;
130+ dma-coherent;
131+ };
132+ ethernet@1 {
133+ compatible = "fsl,dpa-ethernet";
134+ fsl,fman-mac = <&enet1>;
135+ dma-coherent;
136+ };
137+ ethernet@2 {
138+ compatible = "fsl,dpa-ethernet";
139+ fsl,fman-mac = <&enet2>;
140+ dma-coherent;
141+ };
142+ ethernet@3 {
143+ compatible = "fsl,dpa-ethernet";
144+ fsl,fman-mac = <&enet3>;
145+ dma-coherent;
146+ };
147+ ethernet@4 {
148+ compatible = "fsl,dpa-ethernet";
149+ fsl,fman-mac = <&enet4>;
150+ dma-coherent;
151+ };
152+ ethernet@5 {
153+ compatible = "fsl,dpa-ethernet";
154+ fsl,fman-mac = <&enet5>;
155+ dma-coherent;
156+ };
157+ ethernet@8 {
158+ compatible = "fsl,dpa-ethernet";
159+ fsl,fman-mac = <&enet6>;
160+ dma-coherent;
161+ };
162+};
163--- a/arch/arm64/boot/dts/freescale/qoriq-fman3-0-10g-0.dtsi
164+++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-10g-0.dtsi
165@@ -9,19 +9,20 @@
166 fman@1a00000 {
167 fman0_rx_0x10: port@90000 {
168 cell-index = <0x10>;
169- compatible = "fsl,fman-v3-port-rx";
170+ compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-10g-rx";
171 reg = <0x90000 0x1000>;
172 fsl,fman-10g-port;
173 };
174
175 fman0_tx_0x30: port@b0000 {
176 cell-index = <0x30>;
177- compatible = "fsl,fman-v3-port-tx";
178+ compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-10g-tx";
179 reg = <0xb0000 0x1000>;
180 fsl,fman-10g-port;
181+ fsl,qman-channel-id = <0x800>;
182 };
183
184- ethernet@f0000 {
185+ mac9: ethernet@f0000 {
186 cell-index = <0x8>;
187 compatible = "fsl,fman-memac";
188 reg = <0xf0000 0x1000>;
189@@ -29,7 +30,7 @@ fman@1a00000 {
190 pcsphy-handle = <&pcsphy6>;
191 };
192
193- mdio@f1000 {
194+ mdio9: mdio@f1000 {
195 #address-cells = <1>;
196 #size-cells = <0>;
197 compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
198--- a/arch/arm64/boot/dts/freescale/qoriq-fman3-0-10g-1.dtsi
199+++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-10g-1.dtsi
200@@ -9,19 +9,20 @@
201 fman@1a00000 {
202 fman0_rx_0x11: port@91000 {
203 cell-index = <0x11>;
204- compatible = "fsl,fman-v3-port-rx";
205+ compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-10g-rx";
206 reg = <0x91000 0x1000>;
207 fsl,fman-10g-port;
208 };
209
210 fman0_tx_0x31: port@b1000 {
211 cell-index = <0x31>;
212- compatible = "fsl,fman-v3-port-tx";
213+ compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-10g-tx";
214 reg = <0xb1000 0x1000>;
215 fsl,fman-10g-port;
216+ fsl,qman-channel-id = <0x801>;
217 };
218
219- ethernet@f2000 {
220+ mac10: ethernet@f2000 {
221 cell-index = <0x9>;
222 compatible = "fsl,fman-memac";
223 reg = <0xf2000 0x1000>;
224@@ -29,7 +30,7 @@ fman@1a00000 {
225 pcsphy-handle = <&pcsphy7>;
226 };
227
228- mdio@f3000 {
229+ mdio10: mdio@f3000 {
230 #address-cells = <1>;
231 #size-cells = <0>;
232 compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
233--- a/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-0.dtsi
234+++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-0.dtsi
235@@ -9,14 +9,15 @@
236 fman@1a00000 {
237 fman0_rx_0x08: port@88000 {
238 cell-index = <0x8>;
239- compatible = "fsl,fman-v3-port-rx";
240+ compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
241 reg = <0x88000 0x1000>;
242 };
243
244 fman0_tx_0x28: port@a8000 {
245 cell-index = <0x28>;
246- compatible = "fsl,fman-v3-port-tx";
247+ compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
248 reg = <0xa8000 0x1000>;
249+ fsl,qman-channel-id = <0x802>;
250 };
251
252 ethernet@e0000 {
253--- a/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-1.dtsi
254+++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-1.dtsi
255@@ -9,14 +9,15 @@
256 fman@1a00000 {
257 fman0_rx_0x09: port@89000 {
258 cell-index = <0x9>;
259- compatible = "fsl,fman-v3-port-rx";
260+ compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
261 reg = <0x89000 0x1000>;
262 };
263
264 fman0_tx_0x29: port@a9000 {
265 cell-index = <0x29>;
266- compatible = "fsl,fman-v3-port-tx";
267+ compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
268 reg = <0xa9000 0x1000>;
269+ fsl,qman-channel-id = <0x803>;
270 };
271
272 ethernet@e2000 {
273--- a/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-2.dtsi
274+++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-2.dtsi
275@@ -9,14 +9,15 @@
276 fman@1a00000 {
277 fman0_rx_0x0a: port@8a000 {
278 cell-index = <0xa>;
279- compatible = "fsl,fman-v3-port-rx";
280+ compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
281 reg = <0x8a000 0x1000>;
282 };
283
284 fman0_tx_0x2a: port@aa000 {
285 cell-index = <0x2a>;
286- compatible = "fsl,fman-v3-port-tx";
287+ compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
288 reg = <0xaa000 0x1000>;
289+ fsl,qman-channel-id = <0x804>;
290 };
291
292 ethernet@e4000 {
293--- a/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-3.dtsi
294+++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-3.dtsi
295@@ -9,14 +9,15 @@
296 fman@1a00000 {
297 fman0_rx_0x0b: port@8b000 {
298 cell-index = <0xb>;
299- compatible = "fsl,fman-v3-port-rx";
300+ compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
301 reg = <0x8b000 0x1000>;
302 };
303
304 fman0_tx_0x2b: port@ab000 {
305 cell-index = <0x2b>;
306- compatible = "fsl,fman-v3-port-tx";
307+ compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
308 reg = <0xab000 0x1000>;
309+ fsl,qman-channel-id = <0x805>;
310 };
311
312 ethernet@e6000 {
313--- a/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-4.dtsi
314+++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-4.dtsi
315@@ -9,14 +9,15 @@
316 fman@1a00000 {
317 fman0_rx_0x0c: port@8c000 {
318 cell-index = <0xc>;
319- compatible = "fsl,fman-v3-port-rx";
320+ compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
321 reg = <0x8c000 0x1000>;
322 };
323
324 fman0_tx_0x2c: port@ac000 {
325 cell-index = <0x2c>;
326- compatible = "fsl,fman-v3-port-tx";
327+ compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
328 reg = <0xac000 0x1000>;
329+ fsl,qman-channel-id = <0x806>;
330 };
331
332 ethernet@e8000 {
333--- a/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-5.dtsi
334+++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-5.dtsi
335@@ -9,14 +9,15 @@
336 fman@1a00000 {
337 fman0_rx_0x0d: port@8d000 {
338 cell-index = <0xd>;
339- compatible = "fsl,fman-v3-port-rx";
340+ compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
341 reg = <0x8d000 0x1000>;
342 };
343
344 fman0_tx_0x2d: port@ad000 {
345 cell-index = <0x2d>;
346- compatible = "fsl,fman-v3-port-tx";
347+ compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
348 reg = <0xad000 0x1000>;
349+ fsl,qman-channel-id = <0x807>;
350 };
351
352 ethernet@ea000 {
353--- /dev/null
354+++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-6oh.dtsi
355@@ -0,0 +1,47 @@
356+/*
357+ * QorIQ FMan v3 OH ports device tree
358+ *
359+ * Copyright 2012-2015 Freescale Semiconductor Inc.
360+ *
361+ * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
362+ */
363+
364+fman@1a00000 {
365+
366+ fman0_oh1: port@82000 {
367+ cell-index = <0>;
368+ compatible = "fsl,fman-port-oh";
369+ reg = <0x82000 0x1000>;
370+ };
371+
372+ fman0_oh2: port@83000 {
373+ cell-index = <1>;
374+ compatible = "fsl,fman-port-oh";
375+ reg = <0x83000 0x1000>;
376+ };
377+
378+ fman0_oh3: port@84000 {
379+ cell-index = <2>;
380+ compatible = "fsl,fman-port-oh";
381+ reg = <0x84000 0x1000>;
382+ };
383+
384+ fman0_oh4: port@85000 {
385+ cell-index = <3>;
386+ compatible = "fsl,fman-port-oh";
387+ reg = <0x85000 0x1000>;
388+ };
389+
390+ fman0_oh5: port@86000 {
391+ cell-index = <4>;
392+ compatible = "fsl,fman-port-oh";
393+ reg = <0x86000 0x1000>;
394+ };
395+
396+ fman0_oh6: port@87000 {
397+ cell-index = <5>;
398+ compatible = "fsl,fman-port-oh";
399+ reg = <0x87000 0x1000>;
400+ };
401+
402+};
403--- a/arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi
404+++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi
405@@ -20,45 +20,95 @@ fman0: fman@1a00000 {
406 fsl,qman-channel-range = <0x800 0x10>;
407 ptimer-handle = <&ptp_timer0>;
408
409+ cc {
410+ compatible = "fsl,fman-cc";
411+ };
412+
413 muram@0 {
414 compatible = "fsl,fman-muram";
415 reg = <0x0 0x60000>;
416 };
417
418+ bmi@80000 {
419+ compatible = "fsl,fman-bmi";
420+ reg = <0x80000 0x400>;
421+ };
422+
423+ qmi@80400 {
424+ compatible = "fsl,fman-qmi";
425+ reg = <0x80400 0x400>;
426+ };
427+
428 fman0_oh_0x2: port@82000 {
429 cell-index = <0x2>;
430 compatible = "fsl,fman-v3-port-oh";
431 reg = <0x82000 0x1000>;
432+ fsl,qman-channel-id = <0x809>;
433 };
434
435 fman0_oh_0x3: port@83000 {
436 cell-index = <0x3>;
437 compatible = "fsl,fman-v3-port-oh";
438 reg = <0x83000 0x1000>;
439+ fsl,qman-channel-id = <0x80a>;
440 };
441
442 fman0_oh_0x4: port@84000 {
443 cell-index = <0x4>;
444 compatible = "fsl,fman-v3-port-oh";
445 reg = <0x84000 0x1000>;
446+ fsl,qman-channel-id = <0x80b>;
447 };
448
449 fman0_oh_0x5: port@85000 {
450 cell-index = <0x5>;
451 compatible = "fsl,fman-v3-port-oh";
452 reg = <0x85000 0x1000>;
453+ fsl,qman-channel-id = <0x80c>;
454 };
455
456 fman0_oh_0x6: port@86000 {
457 cell-index = <0x6>;
458 compatible = "fsl,fman-v3-port-oh";
459 reg = <0x86000 0x1000>;
460+ fsl,qman-channel-id = <0x80d>;
461 };
462
463 fman0_oh_0x7: port@87000 {
464 cell-index = <0x7>;
465 compatible = "fsl,fman-v3-port-oh";
466 reg = <0x87000 0x1000>;
467+ fsl,qman-channel-id = <0x80e>;
468+ };
469+
470+ policer@c0000 {
471+ compatible = "fsl,fman-policer";
472+ reg = <0xc0000 0x1000>;
473+ };
474+
475+ keygen@c1000 {
476+ compatible = "fsl,fman-keygen";
477+ reg = <0xc1000 0x1000>;
478+ };
479+
480+ dma@c2000 {
481+ compatible = "fsl,fman-dma";
482+ reg = <0xc2000 0x1000>;
483+ };
484+
485+ fpm@c3000 {
486+ compatible = "fsl,fman-fpm";
487+ reg = <0xc3000 0x1000>;
488+ };
489+
490+ parser@c7000 {
491+ compatible = "fsl,fman-parser";
492+ reg = <0xc7000 0x1000>;
493+ };
494+
495+ vsps@dc000 {
496+ compatible = "fsl,fman-vsps";
497+ reg = <0xdc000 0x1000>;
498 };
499
500 mdio0: mdio@fc000 {
501@@ -77,7 +127,7 @@ fman0: fman@1a00000 {
502 };
503
504 ptp_timer0: ptp-timer@1afe000 {
505- compatible = "fsl,fman-ptp-timer";
506+ compatible = "fsl,fman-ptp-timer", "fsl,fman-rtc";
507 reg = <0x0 0x1afe000 0x0 0x1000>;
508 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
509 clocks = <&clockgen 3 0>;
510--- /dev/null
511+++ b/arch/arm64/boot/dts/freescale/qoriq-qman-portals-sdk.dtsi
512@@ -0,0 +1,38 @@
513+/*
514+ * QorIQ QMan SDK Portals device tree nodes
515+ *
516+ * Copyright 2011-2016 Freescale Semiconductor Inc.
517+ * Copyright 2017 NXP
518+ *
519+ * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
520+ */
521+
522+&qportals {
523+ qman-fqids@0 {
524+ compatible = "fsl,fqid-range";
525+ fsl,fqid-range = <256 256>;
526+ };
527+
528+ qman-fqids@1 {
529+ compatible = "fsl,fqid-range";
530+ fsl,fqid-range = <32768 32768>;
531+ };
532+
533+ qman-pools@0 {
534+ compatible = "fsl,pool-channel-range";
535+ fsl,pool-channel-range = <0x401 0xf>;
536+ };
537+
538+ qman-cgrids@0 {
539+ compatible = "fsl,cgrid-range";
540+ fsl,cgrid-range = <0 256>;
541+ };
542+
543+ qman-ceetm@0 {
544+ compatible = "fsl,qman-ceetm";
545+ fsl,ceetm-lfqid-range = <0xf00000 0x1000>;
546+ fsl,ceetm-sp-range = <0 16>;
547+ fsl,ceetm-lni-range = <0 8>;
548+ fsl,ceetm-channel-range = <0 32>;
549+ };
550+};