diff options
Diffstat (limited to 'recipes-kernel/linux/files/dts/p3041ds-usdpaa-enea.dts')
-rw-r--r-- | recipes-kernel/linux/files/dts/p3041ds-usdpaa-enea.dts | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/dts/p3041ds-usdpaa-enea.dts b/recipes-kernel/linux/files/dts/p3041ds-usdpaa-enea.dts new file mode 100644 index 0000000..2930da6 --- /dev/null +++ b/recipes-kernel/linux/files/dts/p3041ds-usdpaa-enea.dts | |||
@@ -0,0 +1,123 @@ | |||
1 | /* | ||
2 | * P3041DS Device Tree Source | ||
3 | * | ||
4 | * Copyright 2010-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/ "p3041ds.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,p3041-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,p3041-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,p3041-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 | bp10: buffer-pool@10 { | ||
65 | compatible = "fsl,p3041-bpool", "fsl,bpool"; | ||
66 | fsl,bpid = <10>; | ||
67 | fsl,bpool-thresholds = <0x10 0x30 0x0 0x0>; | ||
68 | }; | ||
69 | bp11: buffer-pool@11 { | ||
70 | compatible = "fsl,p3041-bpool", "fsl,bpool"; | ||
71 | fsl,bpid = <11>; | ||
72 | fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>; | ||
73 | }; | ||
74 | bp12: buffer-pool@12 { | ||
75 | compatible = "fsl,p3041-bpool", "fsl,bpool"; | ||
76 | fsl,bpid = <12>; | ||
77 | fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>; | ||
78 | }; | ||
79 | |||
80 | fsl,dpaa { | ||
81 | ethernet@0 { | ||
82 | compatible = "fsl,p3041-dpa-ethernet-init", "fsl,dpa-ethernet-init"; | ||
83 | fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>; | ||
84 | fsl,qman-frame-queues-rx = <0x50 1 0x51 1>; | ||
85 | fsl,qman-frame-queues-tx = <0x70 1 0x71 1>; | ||
86 | }; | ||
87 | |||
88 | ethernet@1 { | ||
89 | compatible = "fsl,p3041-dpa-ethernet-init", "fsl,dpa-ethernet-init"; | ||
90 | fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>; | ||
91 | fsl,qman-frame-queues-rx = <0x52 1 0x53 1>; | ||
92 | fsl,qman-frame-queues-tx = <0x72 1 0x73 1>; | ||
93 | }; | ||
94 | ethernet@2 { | ||
95 | compatible = "fsl,p3041-dpa-ethernet-init", "fsl,dpa-ethernet-init"; | ||
96 | fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>; | ||
97 | fsl,qman-frame-queues-rx = <0x54 1 0x55 1>; | ||
98 | fsl,qman-frame-queues-tx = <0x74 1 0x75 1>; | ||
99 | }; | ||
100 | ethernet@3 { | ||
101 | compatible = "fsl,p3041-dpa-ethernet-init", "fsl,dpa-ethernet-init"; | ||
102 | fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>; | ||
103 | fsl,qman-frame-queues-rx = <0x56 1 0x57 1>; | ||
104 | fsl,qman-frame-queues-tx = <0x76 1 0x77 1>; | ||
105 | }; | ||
106 | /* ethernet@4 will be used as a normal Linux ethernet that | ||
107 | * interfaces to the kernel network stack. All others will be | ||
108 | * dedicated for use by usdpaa */ | ||
109 | ethernet@5 { | ||
110 | compatible = "fsl,p3041-dpa-ethernet-init", "fsl,dpa-ethernet-init"; | ||
111 | fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>; | ||
112 | fsl,qman-frame-queues-rx = <0x5a 1 0x5b 1>; | ||
113 | fsl,qman-frame-queues-tx = <0x7a 1 0x7b 1>; | ||
114 | }; | ||
115 | dpa-fman0-oh@1 { | ||
116 | compatible = "fsl,dpa-oh"; | ||
117 | /* Define frame queues for the OH port*/ | ||
118 | /* <OH Rx error, OH Rx default> */ | ||
119 | fsl,qman-frame-queues-oh = <0x68 1 0x69 1>; | ||
120 | fsl,fman-oh-port = <&fman0_oh1>; | ||
121 | }; | ||
122 | }; | ||
123 | }; | ||