Skip to content

Commit 1e8ed06

Browse files
kumargalaScott Wood
authored andcommitted
powerpc/mpc85xx: Add FSL QorIQ DPAA BMan support to device tree(s)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Geoff Thorpe <Geoff.Thorpe@freescale.com> Signed-off-by: Hai-Ying Wang <Haiying.Wang@freescale.com> Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com> Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com> [Emil Medve: Sync with the upstream binding] Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
1 parent cb5915e commit 1e8ed06

26 files changed

Lines changed: 899 additions & 22 deletions

‎arch/powerpc/boot/dts/b4qds.dtsi‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* B4420DS Device Tree Source
33
*
4-
* Copyright 2012 Freescale Semiconductor, Inc.
4+
* Copyright 2012 - 2014 Freescale Semiconductor, Inc.
55
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:
@@ -97,10 +97,25 @@
9797
device_type = "memory";
9898
};
9999

100+
reserved-memory {
101+
#address-cells = <2>;
102+
#size-cells = <2>;
103+
ranges;
104+
105+
bman_fbpr: bman-fbpr {
106+
size = <0 0x1000000>;
107+
alignment = <0 0x1000000>;
108+
};
109+
};
110+
100111
dcsr: dcsr@f00000000 {
101112
ranges = <0x00000000 0xf 0x00000000 0x01052000>;
102113
};
103114

115+
bportals: bman-portals@ff4000000 {
116+
ranges = <0x0 0xf 0xf4000000 0x2000000>;
117+
};
118+
104119
soc: soc@ffe000000 {
105120
ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
106121
reg = <0xf 0xfe000000 0 0x00001000>;

‎arch/powerpc/boot/dts/fsl/b4860si-post.dtsi‎

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* B4860 Silicon/SoC Device Tree Source (post include)
33
*
4-
* Copyright 2012 Freescale Semiconductor Inc.
4+
* Copyright 2012 - 2014 Freescale Semiconductor Inc.
55
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:
@@ -109,6 +109,64 @@
109109
};
110110
};
111111

112+
&bportals {
113+
bman-portal@38000 {
114+
compatible = "fsl,bman-portal";
115+
reg = <0x38000 0x4000>, <0x100e000 0x1000>;
116+
interrupts = <133 2 0 0>;
117+
};
118+
bman-portal@3c000 {
119+
compatible = "fsl,bman-portal";
120+
reg = <0x3c000 0x4000>, <0x100f000 0x1000>;
121+
interrupts = <135 2 0 0>;
122+
};
123+
bman-portal@40000 {
124+
compatible = "fsl,bman-portal";
125+
reg = <0x40000 0x4000>, <0x1010000 0x1000>;
126+
interrupts = <137 2 0 0>;
127+
};
128+
bman-portal@44000 {
129+
compatible = "fsl,bman-portal";
130+
reg = <0x44000 0x4000>, <0x1011000 0x1000>;
131+
interrupts = <139 2 0 0>;
132+
};
133+
bman-portal@48000 {
134+
compatible = "fsl,bman-portal";
135+
reg = <0x48000 0x4000>, <0x1012000 0x1000>;
136+
interrupts = <141 2 0 0>;
137+
};
138+
bman-portal@4c000 {
139+
compatible = "fsl,bman-portal";
140+
reg = <0x4c000 0x4000>, <0x1013000 0x1000>;
141+
interrupts = <143 2 0 0>;
142+
};
143+
bman-portal@50000 {
144+
compatible = "fsl,bman-portal";
145+
reg = <0x50000 0x4000>, <0x1014000 0x1000>;
146+
interrupts = <145 2 0 0>;
147+
};
148+
bman-portal@54000 {
149+
compatible = "fsl,bman-portal";
150+
reg = <0x54000 0x4000>, <0x1015000 0x1000>;
151+
interrupts = <147 2 0 0>;
152+
};
153+
bman-portal@58000 {
154+
compatible = "fsl,bman-portal";
155+
reg = <0x58000 0x4000>, <0x1016000 0x1000>;
156+
interrupts = <149 2 0 0>;
157+
};
158+
bman-portal@5c000 {
159+
compatible = "fsl,bman-portal";
160+
reg = <0x5c000 0x4000>, <0x1017000 0x1000>;
161+
interrupts = <151 2 0 0>;
162+
};
163+
bman-portal@60000 {
164+
compatible = "fsl,bman-portal";
165+
reg = <0x60000 0x4000>, <0x1018000 0x1000>;
166+
interrupts = <153 2 0 0>;
167+
};
168+
};
169+
112170
&soc {
113171
ddr2: memory-controller@9000 {
114172
compatible = "fsl,qoriq-memory-controller-v4.5", "fsl,qoriq-memory-controller";

‎arch/powerpc/boot/dts/fsl/b4si-post.dtsi‎

Lines changed: 88 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* B4420 Silicon/SoC Device Tree Source (post include)
33
*
4-
* Copyright 2012 Freescale Semiconductor, Inc.
4+
* Copyright 2012 - 2014 Freescale Semiconductor, Inc.
55
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:
@@ -32,6 +32,11 @@
3232
* this software, even if advised of the possibility of such damage.
3333
*/
3434

35+
&bman_fbpr {
36+
compatible = "fsl,bman-fbpr";
37+
alloc-ranges = <0 0 0x10000 0>;
38+
};
39+
3540
&ifc {
3641
#address-cells = <2>;
3742
#size-cells = <1>;
@@ -128,6 +133,83 @@
128133
};
129134
};
130135

136+
&bportals {
137+
#address-cells = <0x1>;
138+
#size-cells = <0x1>;
139+
compatible = "simple-bus";
140+
141+
bman-portal@0 {
142+
compatible = "fsl,bman-portal";
143+
reg = <0x0 0x4000>, <0x1000000 0x1000>;
144+
interrupts = <105 2 0 0>;
145+
};
146+
bman-portal@4000 {
147+
compatible = "fsl,bman-portal";
148+
reg = <0x4000 0x4000>, <0x1001000 0x1000>;
149+
interrupts = <107 2 0 0>;
150+
};
151+
bman-portal@8000 {
152+
compatible = "fsl,bman-portal";
153+
reg = <0x8000 0x4000>, <0x1002000 0x1000>;
154+
interrupts = <109 2 0 0>;
155+
};
156+
bman-portal@c000 {
157+
compatible = "fsl,bman-portal";
158+
reg = <0xc000 0x4000>, <0x1003000 0x1000>;
159+
interrupts = <111 2 0 0>;
160+
};
161+
bman-portal@10000 {
162+
compatible = "fsl,bman-portal";
163+
reg = <0x10000 0x4000>, <0x1004000 0x1000>;
164+
interrupts = <113 2 0 0>;
165+
};
166+
bman-portal@14000 {
167+
compatible = "fsl,bman-portal";
168+
reg = <0x14000 0x4000>, <0x1005000 0x1000>;
169+
interrupts = <115 2 0 0>;
170+
};
171+
bman-portal@18000 {
172+
compatible = "fsl,bman-portal";
173+
reg = <0x18000 0x4000>, <0x1006000 0x1000>;
174+
interrupts = <117 2 0 0>;
175+
};
176+
bman-portal@1c000 {
177+
compatible = "fsl,bman-portal";
178+
reg = <0x1c000 0x4000>, <0x1007000 0x1000>;
179+
interrupts = <119 2 0 0>;
180+
};
181+
bman-portal@20000 {
182+
compatible = "fsl,bman-portal";
183+
reg = <0x20000 0x4000>, <0x1008000 0x1000>;
184+
interrupts = <121 2 0 0>;
185+
};
186+
bman-portal@24000 {
187+
compatible = "fsl,bman-portal";
188+
reg = <0x24000 0x4000>, <0x1009000 0x1000>;
189+
interrupts = <123 2 0 0>;
190+
};
191+
bman-portal@28000 {
192+
compatible = "fsl,bman-portal";
193+
reg = <0x28000 0x4000>, <0x100a000 0x1000>;
194+
interrupts = <125 2 0 0>;
195+
};
196+
bman-portal@2c000 {
197+
compatible = "fsl,bman-portal";
198+
reg = <0x2c000 0x4000>, <0x100b000 0x1000>;
199+
interrupts = <127 2 0 0>;
200+
};
201+
bman-portal@30000 {
202+
compatible = "fsl,bman-portal";
203+
reg = <0x30000 0x4000>, <0x100c000 0x1000>;
204+
interrupts = <129 2 0 0>;
205+
};
206+
bman-portal@34000 {
207+
compatible = "fsl,bman-portal";
208+
reg = <0x34000 0x4000>, <0x100d000 0x1000>;
209+
interrupts = <131 2 0 0>;
210+
};
211+
};
212+
131213
&soc {
132214
#address-cells = <1>;
133215
#size-cells = <1>;
@@ -261,6 +343,11 @@
261343
/include/ "qoriq-duart-1.dtsi"
262344
/include/ "qoriq-sec5.3-0.dtsi"
263345

346+
/include/ "qoriq-bman1.dtsi"
347+
bman: bman@31a000 {
348+
interrupts = <16 2 1 29>;
349+
};
350+
264351
L2: l2-cache-controller@c20000 {
265352
compatible = "fsl,b4-l2-cache-controller";
266353
reg = <0xc20000 0x1000>;

‎arch/powerpc/boot/dts/fsl/p1023si-post.dtsi‎

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* P1023/P1017 Silicon/SoC Device Tree Source (post include)
33
*
4-
* Copyright 2011 Freescale Semiconductor Inc.
4+
* Copyright 2011 - 2014 Freescale Semiconductor Inc.
55
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:
@@ -32,6 +32,11 @@
3232
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333
*/
3434

35+
&bman_fbpr {
36+
compatible = "fsl,bman-fbpr";
37+
alloc-ranges = <0 0 0x10 0>;
38+
};
39+
3540
&lbc {
3641
#address-cells = <2>;
3742
#size-cells = <1>;
@@ -97,6 +102,28 @@
97102
};
98103
};
99104

105+
&bportals {
106+
#address-cells = <1>;
107+
#size-cells = <1>;
108+
compatible = "simple-bus";
109+
110+
bman-portal@0 {
111+
compatible = "fsl,bman-portal";
112+
reg = <0x0 0x4000>, <0x100000 0x1000>;
113+
interrupts = <30 2 0 0>;
114+
};
115+
bman-portal@4000 {
116+
compatible = "fsl,bman-portal";
117+
reg = <0x4000 0x4000>, <0x101000 0x1000>;
118+
interrupts = <32 2 0 0>;
119+
};
120+
bman-portal@8000 {
121+
compatible = "fsl,bman-portal";
122+
reg = <0x8000 0x4000>, <0x102000 0x1000>;
123+
interrupts = <34 2 0 0>;
124+
};
125+
};
126+
100127
&soc {
101128
#address-cells = <1>;
102129
#size-cells = <1>;
@@ -221,6 +248,14 @@
221248
/include/ "pq3-mpic.dtsi"
222249
/include/ "pq3-mpic-timer-B.dtsi"
223250

251+
bman: bman@8a000 {
252+
compatible = "fsl,bman";
253+
reg = <0x8a000 0x1000>;
254+
interrupts = <16 2 0 0>;
255+
fsl,bman-portals = <&bportals>;
256+
memory-region = <&bman_fbpr>;
257+
};
258+
224259
global-utilities@e0000 {
225260
compatible = "fsl,p1023-guts";
226261
reg = <0xe0000 0x1000>;

‎arch/powerpc/boot/dts/fsl/p2041si-post.dtsi‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* P2041/P2040 Silicon/SoC Device Tree Source (post include)
33
*
4-
* Copyright 2011 Freescale Semiconductor Inc.
4+
* Copyright 2011 - 2014 Freescale Semiconductor Inc.
55
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:
@@ -32,6 +32,11 @@
3232
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333
*/
3434

35+
&bman_fbpr {
36+
compatible = "fsl,bman-fbpr";
37+
alloc-ranges = <0 0 0x10 0>;
38+
};
39+
3540
&lbc {
3641
compatible = "fsl,p2041-elbc", "fsl,elbc", "simple-bus";
3742
interrupts = <25 2 0 0>;
@@ -216,6 +221,8 @@
216221
};
217222
};
218223

224+
/include/ "qoriq-bman1-portals.dtsi"
225+
219226
&soc {
220227
#address-cells = <1>;
221228
#size-cells = <1>;
@@ -407,4 +414,6 @@
407414
crypto: crypto@300000 {
408415
fsl,iommu-parent = <&pamu1>;
409416
};
417+
418+
/include/ "qoriq-bman1.dtsi"
410419
};

‎arch/powerpc/boot/dts/fsl/p3041si-post.dtsi‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* P3041 Silicon/SoC Device Tree Source (post include)
33
*
4-
* Copyright 2011 Freescale Semiconductor Inc.
4+
* Copyright 2011 - 2014 Freescale Semiconductor Inc.
55
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:
@@ -32,6 +32,11 @@
3232
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333
*/
3434

35+
&bman_fbpr {
36+
compatible = "fsl,bman-fbpr";
37+
alloc-ranges = <0 0 0x10 0>;
38+
};
39+
3540
&lbc {
3641
compatible = "fsl,p3041-elbc", "fsl,elbc", "simple-bus";
3742
interrupts = <25 2 0 0>;
@@ -243,6 +248,8 @@
243248
};
244249
};
245250

251+
/include/ "qoriq-bman1-portals.dtsi"
252+
246253
&soc {
247254
#address-cells = <1>;
248255
#size-cells = <1>;
@@ -434,4 +441,6 @@
434441
crypto: crypto@300000 {
435442
fsl,iommu-parent = <&pamu1>;
436443
};
444+
445+
/include/ "qoriq-bman1.dtsi"
437446
};

0 commit comments

Comments
 (0)