layerscape: add patches-5.4
[openwrt/staging/jow.git] / target / linux / layerscape / patches-5.4 / 302-dts-0002-sdk-arm64-dts-add-DPAA1-SDK-flavor-dts-files.patch
1 From 7f3b260e937238632e523306089e856d0db1a4f9 Mon Sep 17 00:00:00 2001
2 From: Li Yang <leoyang.li@nxp.com>
3 Date: Fri, 5 Oct 2018 18:03:25 -0500
4 Subject: [PATCH] sdk: arm64: dts: add DPAA1 SDK flavor dts files
5
6 Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
7 Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
8 Signed-off-by: Iordache Florinel-R70177 <florinel.iordache@nxp.com>
9 Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
10 Signed-off-by: Li Yang <leoyang.li@nxp.com>
11 ---
12 arch/arm64/boot/dts/freescale/Makefile | 6 ++
13 .../boot/dts/freescale/fsl-ls1043a-qds-sdk.dts | 71 +++++++++++++
14 .../boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts | 71 +++++++++++++
15 .../boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts | 117 +++++++++++++++++++++
16 .../boot/dts/freescale/fsl-ls1046a-qds-sdk.dts | 79 ++++++++++++++
17 .../boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts | 115 ++++++++++++++++++++
18 .../boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts | 110 +++++++++++++++++++
19 7 files changed, 569 insertions(+)
20 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-qds-sdk.dts
21 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts
22 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts
23 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds-sdk.dts
24 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts
25 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts
26
27 --- a/arch/arm64/boot/dts/freescale/Makefile
28 +++ b/arch/arm64/boot/dts/freescale/Makefile
29 @@ -7,10 +7,16 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1
30 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds.dtb
31 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-rdb.dtb
32 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb
33 +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds-sdk.dtb
34 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb
35 +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb-sdk.dtb
36 +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb-usdpaa.dtb
37 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-frwy.dtb
38 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds.dtb
39 +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds-sdk.dtb
40 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb.dtb
41 +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb-sdk.dtb
42 +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb-usdpaa.dtb
43 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1088a-qds.dtb
44 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1088a-rdb.dtb
45 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-qds.dtb
46 --- /dev/null
47 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds-sdk.dts
48 @@ -0,0 +1,71 @@
49 +/*
50 + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
51 + *
52 + * Copyright 2014-2015 Freescale Semiconductor, Inc.
53 + *
54 + * Mingkai Hu <Mingkai.hu@freescale.com>
55 + *
56 + * This file is dual-licensed: you can use it either under the terms
57 + * of the GPLv2 or the X11 license, at your option. Note that this dual
58 + * licensing only applies to this file, and not this project as a
59 + * whole.
60 + *
61 + * a) This library is free software; you can redistribute it and/or
62 + * modify it under the terms of the GNU General Public License as
63 + * published by the Free Software Foundation; either version 2 of the
64 + * License, or (at your option) any later version.
65 + *
66 + * This library is distributed in the hope that it will be useful,
67 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
68 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
69 + * GNU General Public License for more details.
70 + *
71 + * Or, alternatively,
72 + *
73 + * b) Permission is hereby granted, free of charge, to any person
74 + * obtaining a copy of this software and associated documentation
75 + * files (the "Software"), to deal in the Software without
76 + * restriction, including without limitation the rights to use,
77 + * copy, modify, merge, publish, distribute, sublicense, and/or
78 + * sell copies of the Software, and to permit persons to whom the
79 + * Software is furnished to do so, subject to the following
80 + * conditions:
81 + *
82 + * The above copyright notice and this permission notice shall be
83 + * included in all copies or substantial portions of the Software.
84 + *
85 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
87 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
88 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
89 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
92 + * OTHER DEALINGS IN THE SOFTWARE.
93 + */
94 +
95 +#include "fsl-ls1043a-qds.dts"
96 +#include "qoriq-qman-portals-sdk.dtsi"
97 +#include "qoriq-bman-portals-sdk.dtsi"
98 +
99 +&bman_fbpr {
100 + compatible = "fsl,bman-fbpr";
101 + alloc-ranges = <0 0 0x10000 0>;
102 +};
103 +&qman_fqd {
104 + compatible = "fsl,qman-fqd";
105 + alloc-ranges = <0 0 0x10000 0>;
106 +};
107 +&qman_pfdr {
108 + compatible = "fsl,qman-pfdr";
109 + alloc-ranges = <0 0 0x10000 0>;
110 +};
111 +
112 +&soc {
113 +#include "qoriq-dpaa-eth.dtsi"
114 +#include "qoriq-fman3-0-6oh.dtsi"
115 +};
116 +
117 +&fman0 {
118 + compatible = "fsl,fman", "simple-bus";
119 +};
120 --- /dev/null
121 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts
122 @@ -0,0 +1,71 @@
123 +/*
124 + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
125 + *
126 + * Copyright 2014-2015 Freescale Semiconductor, Inc.
127 + *
128 + * Mingkai Hu <Mingkai.hu@freescale.com>
129 + *
130 + * This file is dual-licensed: you can use it either under the terms
131 + * of the GPLv2 or the X11 license, at your option. Note that this dual
132 + * licensing only applies to this file, and not this project as a
133 + * whole.
134 + *
135 + * a) This library is free software; you can redistribute it and/or
136 + * modify it under the terms of the GNU General Public License as
137 + * published by the Free Software Foundation; either version 2 of the
138 + * License, or (at your option) any later version.
139 + *
140 + * This library is distributed in the hope that it will be useful,
141 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
142 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
143 + * GNU General Public License for more details.
144 + *
145 + * Or, alternatively,
146 + *
147 + * b) Permission is hereby granted, free of charge, to any person
148 + * obtaining a copy of this software and associated documentation
149 + * files (the "Software"), to deal in the Software without
150 + * restriction, including without limitation the rights to use,
151 + * copy, modify, merge, publish, distribute, sublicense, and/or
152 + * sell copies of the Software, and to permit persons to whom the
153 + * Software is furnished to do so, subject to the following
154 + * conditions:
155 + *
156 + * The above copyright notice and this permission notice shall be
157 + * included in all copies or substantial portions of the Software.
158 + *
159 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
160 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
161 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
162 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
163 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
164 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
165 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
166 + * OTHER DEALINGS IN THE SOFTWARE.
167 + */
168 +
169 +#include "fsl-ls1043a-rdb.dts"
170 +#include "qoriq-qman-portals-sdk.dtsi"
171 +#include "qoriq-bman-portals-sdk.dtsi"
172 +
173 +&bman_fbpr {
174 + compatible = "fsl,bman-fbpr";
175 + alloc-ranges = <0 0 0x10000 0>;
176 +};
177 +&qman_fqd {
178 + compatible = "fsl,qman-fqd";
179 + alloc-ranges = <0 0 0x10000 0>;
180 +};
181 +&qman_pfdr {
182 + compatible = "fsl,qman-pfdr";
183 + alloc-ranges = <0 0 0x10000 0>;
184 +};
185 +
186 +&soc {
187 +#include "qoriq-dpaa-eth.dtsi"
188 +#include "qoriq-fman3-0-6oh.dtsi"
189 +};
190 +
191 +&fman0 {
192 + compatible = "fsl,fman", "simple-bus";
193 +};
194 --- /dev/null
195 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts
196 @@ -0,0 +1,117 @@
197 +/*
198 + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
199 + *
200 + * Copyright (C) 2014-2015, Freescale Semiconductor
201 + *
202 + * This file is licensed under the terms of the GNU General Public
203 + * License version 2. This program is licensed "as is" without any
204 + * warranty of any kind, whether express or implied.
205 + */
206 +
207 +#include "fsl-ls1043a-rdb-sdk.dts"
208 +
209 +&soc {
210 + bp7: buffer-pool@7 {
211 + compatible = "fsl,p4080-bpool", "fsl,bpool";
212 + fsl,bpid = <7>;
213 + fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
214 + fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
215 + };
216 +
217 + bp8: buffer-pool@8 {
218 + compatible = "fsl,p4080-bpool", "fsl,bpool";
219 + fsl,bpid = <8>;
220 + fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
221 + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
222 + };
223 +
224 + bp9: buffer-pool@9 {
225 + compatible = "fsl,p4080-bpool", "fsl,bpool";
226 + fsl,bpid = <9>;
227 + fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
228 + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
229 + };
230 +
231 + fsl,dpaa {
232 + compatible = "fsl,ls1043a", "fsl,dpaa", "simple-bus";
233 +
234 + ethernet@0 {
235 + compatible = "fsl,dpa-ethernet-init";
236 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
237 + fsl,qman-frame-queues-rx = <0x50 1 0x51 1>;
238 + fsl,qman-frame-queues-tx = <0x70 1 0x71 1>;
239 + };
240 +
241 + ethernet@1 {
242 + compatible = "fsl,dpa-ethernet-init";
243 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
244 + fsl,qman-frame-queues-rx = <0x52 1 0x53 1>;
245 + fsl,qman-frame-queues-tx = <0x72 1 0x73 1>;
246 + };
247 +
248 + ethernet@2 {
249 + compatible = "fsl,dpa-ethernet-init";
250 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
251 + fsl,qman-frame-queues-rx = <0x54 1 0x55 1>;
252 + fsl,qman-frame-queues-tx = <0x74 1 0x75 1>;
253 + };
254 +
255 + ethernet@3 {
256 + compatible = "fsl,dpa-ethernet-init";
257 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
258 + fsl,qman-frame-queues-rx = <0x56 1 0x57 1>;
259 + fsl,qman-frame-queues-tx = <0x76 1 0x77 1>;
260 + };
261 +
262 + ethernet@4 {
263 + compatible = "fsl,dpa-ethernet-init";
264 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
265 + fsl,qman-frame-queues-rx = <0x58 1 0x59 1>;
266 + fsl,qman-frame-queues-tx = <0x78 1 0x79 1>;
267 + };
268 +
269 + ethernet@5 {
270 + compatible = "fsl,dpa-ethernet-init";
271 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
272 + fsl,qman-frame-queues-rx = <0x60 1 0x61 1>;
273 + fsl,qman-frame-queues-tx = <0x80 1 0x81 1>;
274 + };
275 +
276 + ethernet@8 {
277 + compatible = "fsl,dpa-ethernet-init";
278 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
279 + fsl,qman-frame-queues-rx = <0x5c 1 0x5d 1>;
280 + fsl,qman-frame-queues-tx = <0x7c 1 0x7d 1>;
281 +
282 + };
283 + dpa-fman0-oh@2 {
284 + compatible = "fsl,dpa-oh";
285 + /* Define frame queues for the OH port*/
286 + /* <OH Rx error, OH Rx default> */
287 + fsl,qman-frame-queues-oh = <0x5a 1 0x5b 1>;
288 + fsl,fman-oh-port = <&fman0_oh2>;
289 + };
290 + };
291 +};
292 +/ {
293 + reserved-memory {
294 + #address-cells = <2>;
295 + #size-cells = <2>;
296 + ranges;
297 +
298 + usdpaa_mem: usdpaa_mem {
299 + compatible = "fsl,usdpaa-mem";
300 + alloc-ranges = <0 0 0x10000 0>;
301 + size = <0 0x10000000>;
302 + alignment = <0 0x10000000>;
303 + };
304 + };
305 +};
306 +
307 +&fman0 {
308 + fman0_oh2: port@83000 {
309 + cell-index = <1>;
310 + compatible = "fsl,fman-port-oh";
311 + reg = <0x83000 0x1000>;
312 + };
313 +};
314 --- /dev/null
315 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-qds-sdk.dts
316 @@ -0,0 +1,79 @@
317 +/*
318 + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
319 + *
320 + * Copyright 2014-2015 Freescale Semiconductor, Inc.
321 + *
322 + * Mingkai Hu <Mingkai.hu@freescale.com>
323 + *
324 + * This file is dual-licensed: you can use it either under the terms
325 + * of the GPLv2 or the X11 license, at your option. Note that this dual
326 + * licensing only applies to this file, and not this project as a
327 + * whole.
328 + *
329 + * a) This library is free software; you can redistribute it and/or
330 + * modify it under the terms of the GNU General Public License as
331 + * published by the Free Software Foundation; either version 2 of the
332 + * License, or (at your option) any later version.
333 + *
334 + * This library is distributed in the hope that it will be useful,
335 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
336 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
337 + * GNU General Public License for more details.
338 + *
339 + * Or, alternatively,
340 + *
341 + * b) Permission is hereby granted, free of charge, to any person
342 + * obtaining a copy of this software and associated documentation
343 + * files (the "Software"), to deal in the Software without
344 + * restriction, including without limitation the rights to use,
345 + * copy, modify, merge, publish, distribute, sublicense, and/or
346 + * sell copies of the Software, and to permit persons to whom the
347 + * Software is furnished to do so, subject to the following
348 + * conditions:
349 + *
350 + * The above copyright notice and this permission notice shall be
351 + * included in all copies or substantial portions of the Software.
352 + *
353 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
354 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
355 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
356 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
357 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
358 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
359 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
360 + * OTHER DEALINGS IN THE SOFTWARE.
361 + */
362 +
363 +#include "fsl-ls1046a-qds.dts"
364 +#include "qoriq-qman-portals-sdk.dtsi"
365 +#include "qoriq-bman-portals-sdk.dtsi"
366 +
367 +&bman_fbpr {
368 + compatible = "fsl,bman-fbpr";
369 + alloc-ranges = <0 0 0x10000 0>;
370 +};
371 +&qman_fqd {
372 + compatible = "fsl,qman-fqd";
373 + alloc-ranges = <0 0 0x10000 0>;
374 +};
375 +&qman_pfdr {
376 + compatible = "fsl,qman-pfdr";
377 + alloc-ranges = <0 0 0x10000 0>;
378 +};
379 +
380 +&soc {
381 +#include "qoriq-dpaa-eth.dtsi"
382 +#include "qoriq-fman3-0-6oh.dtsi"
383 +};
384 +
385 +&fsldpaa {
386 + ethernet@9 {
387 + compatible = "fsl,dpa-ethernet";
388 + fsl,fman-mac = <&enet7>;
389 + dma-coherent;
390 + };
391 +};
392 +
393 +&fman0 {
394 + compatible = "fsl,fman", "simple-bus";
395 +};
396 --- /dev/null
397 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts
398 @@ -0,0 +1,115 @@
399 +/*
400 + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
401 + *
402 + * Copyright 2014-2015 Freescale Semiconductor, Inc.
403 + *
404 + * Mingkai Hu <Mingkai.hu@freescale.com>
405 + *
406 + * This file is dual-licensed: you can use it either under the terms
407 + * of the GPLv2 or the X11 license, at your option. Note that this dual
408 + * licensing only applies to this file, and not this project as a
409 + * whole.
410 + *
411 + * a) This library is free software; you can redistribute it and/or
412 + * modify it under the terms of the GNU General Public License as
413 + * published by the Free Software Foundation; either version 2 of the
414 + * License, or (at your option) any later version.
415 + *
416 + * This library is distributed in the hope that it will be useful,
417 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
418 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
419 + * GNU General Public License for more details.
420 + *
421 + * Or, alternatively,
422 + *
423 + * b) Permission is hereby granted, free of charge, to any person
424 + * obtaining a copy of this software and associated documentation
425 + * files (the "Software"), to deal in the Software without
426 + * restriction, including without limitation the rights to use,
427 + * copy, modify, merge, publish, distribute, sublicense, and/or
428 + * sell copies of the Software, and to permit persons to whom the
429 + * Software is furnished to do so, subject to the following
430 + * conditions:
431 + *
432 + * The above copyright notice and this permission notice shall be
433 + * included in all copies or substantial portions of the Software.
434 + *
435 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
436 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
437 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
438 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
439 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
440 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
441 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
442 + * OTHER DEALINGS IN THE SOFTWARE.
443 + */
444 +
445 +#include "fsl-ls1046a-rdb.dts"
446 +#include "qoriq-qman-portals-sdk.dtsi"
447 +#include "qoriq-bman-portals-sdk.dtsi"
448 +
449 +&bman_fbpr {
450 + compatible = "fsl,bman-fbpr";
451 + alloc-ranges = <0 0 0x10000 0>;
452 +};
453 +&qman_fqd {
454 + compatible = "fsl,qman-fqd";
455 + alloc-ranges = <0 0 0x10000 0>;
456 +};
457 +&qman_pfdr {
458 + compatible = "fsl,qman-pfdr";
459 + alloc-ranges = <0 0 0x10000 0>;
460 +};
461 +
462 +&soc {
463 +#include "qoriq-dpaa-eth.dtsi"
464 +#include "qoriq-fman3-0-6oh.dtsi"
465 +};
466 +
467 +&fsldpaa {
468 + ethernet@0 {
469 + status = "disabled";
470 + };
471 + ethernet@1 {
472 + status = "disabled";
473 + };
474 + ethernet@9 {
475 + compatible = "fsl,dpa-ethernet";
476 + fsl,fman-mac = <&enet7>;
477 + dma-coherent;
478 + };
479 +};
480 +
481 +&fman0 {
482 + compatible = "fsl,fman", "simple-bus";
483 +};
484 +
485 +&mdio9 {
486 + pcsphy6: ethernet-phy@0 {
487 + backplane-mode = "10gbase-kr";
488 + compatible = "ethernet-phy-ieee802.3-c45";
489 + reg = <0x0>;
490 + fsl,lane-handle = <&serdes1>;
491 + fsl,lane-reg = <0x8C0 0x40>; /* lane D */
492 + };
493 +};
494 +
495 +&mdio10 {
496 + pcsphy7: ethernet-phy@0 {
497 + backplane-mode = "10gbase-kr";
498 + compatible = "ethernet-phy-ieee802.3-c45";
499 + reg = <0x0>;
500 + fsl,lane-handle = <&serdes1>;
501 + fsl,lane-reg = <0x880 0x40>; /* lane C */
502 + };
503 +};
504 +
505 +/* Update MAC connections to backplane PHYs
506 + * &mac9 {
507 + * phy-handle = <&pcsphy6>;
508 + *};
509 + *
510 + *&mac10 {
511 + * phy-handle = <&pcsphy7>;
512 + *};
513 +*/
514 --- /dev/null
515 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts
516 @@ -0,0 +1,110 @@
517 +/*
518 + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
519 + *
520 + * Copyright (C) 2016, Freescale Semiconductor
521 + *
522 + * This file is licensed under the terms of the GNU General Public
523 + * License version 2. This program is licensed "as is" without any
524 + * warranty of any kind, whether express or implied.
525 + */
526 +
527 +#include "fsl-ls1046a-rdb-sdk.dts"
528 +
529 +&soc {
530 + bp7: buffer-pool@7 {
531 + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
532 + fsl,bpid = <7>;
533 + fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
534 + fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
535 + };
536 +
537 + bp8: buffer-pool@8 {
538 + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
539 + fsl,bpid = <8>;
540 + fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
541 + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
542 + };
543 +
544 + bp9: buffer-pool@9 {
545 + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
546 + fsl,bpid = <9>;
547 + fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
548 + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
549 + };
550 +
551 + fsl,dpaa {
552 + compatible = "fsl,ls1046a", "fsl,dpaa", "simple-bus";
553 +
554 + ethernet@2 {
555 + compatible = "fsl,dpa-ethernet-init";
556 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
557 + fsl,qman-frame-queues-rx = <0x54 1 0x55 1>;
558 + fsl,qman-frame-queues-tx = <0x74 1 0x75 1>;
559 + };
560 +
561 + ethernet@3 {
562 + compatible = "fsl,dpa-ethernet-init";
563 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
564 + fsl,qman-frame-queues-rx = <0x56 1 0x57 1>;
565 + fsl,qman-frame-queues-tx = <0x76 1 0x77 1>;
566 + };
567 +
568 + ethernet@4 {
569 + compatible = "fsl,dpa-ethernet-init";
570 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
571 + fsl,qman-frame-queues-rx = <0x58 1 0x59 1>;
572 + fsl,qman-frame-queues-tx = <0x78 1 0x79 1>;
573 + };
574 +
575 + ethernet@5 {
576 + compatible = "fsl,dpa-ethernet-init";
577 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
578 + fsl,qman-frame-queues-rx = <0x5a 1 0x5b 1>;
579 + fsl,qman-frame-queues-tx = <0x7a 1 0x7b 1>;
580 + };
581 +
582 + ethernet@8 {
583 + compatible = "fsl,dpa-ethernet-init";
584 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
585 + fsl,qman-frame-queues-rx = <0x5c 1 0x5d 1>;
586 + fsl,qman-frame-queues-tx = <0x7c 1 0x7d 1>;
587 + };
588 +
589 + ethernet@9 {
590 + compatible = "fsl,dpa-ethernet-init";
591 + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
592 + fsl,qman-frame-queues-rx = <0x5e 1 0x5f 1>;
593 + fsl,qman-frame-queues-tx = <0x7e 1 0x7f 1>;
594 + };
595 +
596 + dpa-fman0-oh@2 {
597 + compatible = "fsl,dpa-oh";
598 + /* Define frame queues for the OH port*/
599 + /* <OH Rx error, OH Rx default> */
600 + fsl,qman-frame-queues-oh = <0x60 1 0x61 1>;
601 + fsl,fman-oh-port = <&fman0_oh2>;
602 + };
603 + };
604 +};
605 +/ {
606 + reserved-memory {
607 + #address-cells = <2>;
608 + #size-cells = <2>;
609 + ranges;
610 +
611 + usdpaa_mem: usdpaa_mem {
612 + compatible = "fsl,usdpaa-mem";
613 + alloc-ranges = <0 0 0x10000 0>;
614 + size = <0 0x10000000>;
615 + alignment = <0 0x10000000>;
616 + };
617 + };
618 +};
619 +
620 +&fman0 {
621 + fman0_oh2: port@83000 {
622 + cell-index = <1>;
623 + compatible = "fsl,fman-port-oh";
624 + reg = <0x83000 0x1000>;
625 + };
626 +};