summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/files/dts/p2041rdb-usdpaa-enea.dts
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/files/dts/p2041rdb-usdpaa-enea.dts')
-rw-r--r--recipes-kernel/linux/files/dts/p2041rdb-usdpaa-enea.dts109
1 files changed, 109 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/dts/p2041rdb-usdpaa-enea.dts b/recipes-kernel/linux/files/dts/p2041rdb-usdpaa-enea.dts
new file mode 100644
index 0000000..e0d2ff4
--- /dev/null
+++ b/recipes-kernel/linux/files/dts/p2041rdb-usdpaa-enea.dts
@@ -0,0 +1,109 @@
1/*
2 * P2041RDB Device Tree Source
3 *
4 * Copyright 2011-2012 Freescale Semiconductor Inc.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * * Neither the name of Freescale Semiconductor nor the
14 * names of its contributors may be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 *
18 * ALTERNATIVELY, this software may be distributed under the terms of the
19 * GNU General Public License ("GPL") as published by the Free Software
20 * Foundation, either version 2 of that License or (at your option) any
21 * later version.
22 *
23 * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
24 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
27 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35/include/ "p2041rdb.dts"
36
37/ {
38 /* NB: "bpool-ethernet-seeds" is not set to avoid buffer seeding,
39 * because apps seed these pools with buffers allocated at
40 * run-time.
41 * HOWEVER, the kernel driver requires the buffer-size so
42 * "fsl,bpool-ethernet-cfg" is set. It also mis-interprets
43 * things if the base-address is zero (hence the 0xdeadbeef
44 * values).
45 */
46 bp7: buffer-pool@7 {
47 compatible = "fsl,p2041-bpool", "fsl,bpool";
48 fsl,bpid = <7>;
49 fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
50 fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
51 };
52 bp8: buffer-pool@8 {
53 compatible = "fsl,p2041-bpool", "fsl,bpool";
54 fsl,bpid = <8>;
55 fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
56 fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
57 };
58 bp9: buffer-pool@9 {
59 compatible = "fsl,p2041-bpool", "fsl,bpool";
60 fsl,bpid = <9>;
61 fsl,bpool-ethernet-cfg = <0 0 0 1728 0 0xfeedabba>;
62 fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
63 };
64
65 fsl,dpaa {
66
67 /* ethernet@0 will be used as a normal Linux ethernet that
68 * interfaces to the kernel network stack. All others will be
69 * dedicated for use by usdpaa */
70
71 ethernet@1 {
72 compatible = "fsl,p2041-dpa-ethernet-init", "fsl,dpa-ethernet-init";
73 fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
74 fsl,qman-frame-queues-rx = <0x52 1 0x53 1>;
75 fsl,qman-frame-queues-tx = <0x72 1 0x73 1>;
76 };
77 ethernet@2 {
78 compatible = "fsl,p2041-dpa-ethernet-init", "fsl,dpa-ethernet-init";
79 fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
80 fsl,qman-frame-queues-rx = <0x54 1 0x55 1>;
81 fsl,qman-frame-queues-tx = <0x74 1 0x75 1>;
82 };
83 ethernet@3 {
84 compatible = "fsl,p2041-dpa-ethernet-init", "fsl,dpa-ethernet-init";
85 fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
86 fsl,qman-frame-queues-rx = <0x56 1 0x57 1>;
87 fsl,qman-frame-queues-tx = <0x76 1 0x77 1>;
88 };
89 ethernet@4 {
90 compatible = "fsl,p2041-dpa-ethernet-init", "fsl,dpa-ethernet-init";
91 fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
92 fsl,qman-frame-queues-rx = <0x58 1 0x59 1>;
93 fsl,qman-frame-queues-tx = <0x78 1 0x79 1>;
94 };
95 ethernet@5 {
96 compatible = "fsl,p2041-dpa-ethernet-init", "fsl,dpa-ethernet-init";
97 fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
98 fsl,qman-frame-queues-rx = <0x5a 1 0x5b 1>;
99 fsl,qman-frame-queues-tx = <0x7a 1 0x7b 1>;
100 };
101 dpa-fman0-oh@1 {
102 compatible = "fsl,dpa-oh";
103 /* Define frame queues for the OH port*/
104 /* <OH Rx error, OH Rx default> */
105 fsl,qman-frame-queues-oh = <0x68 1 0x69 1>;
106 fsl,fman-oh-port = <&fman0_oh1>;
107 };
108 };
109};