Skip to content

Commit ebae137

Browse files
wojtas-marcindavem330
authored andcommitted
ARM: dts: armada-xp: add buffer manager nodes
Armada XP network controller supports hardware buffer management (BM). Since it is now enabled in mvneta driver, appropriate nodes can be added to armada-xp.dtsi - for the actual common BM unit (bm@c0000) and its internal SRAM (bm-bppi), which is used for indirect access to buffer pointer ring residing in DRAM. Pools - ports mapping, bm-bppi entry in 'soc' node's ranges and optional parameters are supposed to be set in board files. Signed-off-by: Marcin Wojtas <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c49e99c commit ebae137

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

arch/arm/boot/dts/armada-xp.dtsi

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,14 @@
253253
marvell,crypto-sram-size = <0x800>;
254254
};
255255

256+
bm: bm@c0000 {
257+
compatible = "marvell,armada-380-neta-bm";
258+
reg = <0xc0000 0xac>;
259+
clocks = <&gateclk 13>;
260+
internal-mem = <&bm_bppi>;
261+
status = "disabled";
262+
};
263+
256264
xor@f0900 {
257265
compatible = "marvell,orion-xor";
258266
reg = <0xF0900 0x100
@@ -291,6 +299,17 @@
291299
#size-cells = <1>;
292300
ranges = <0 MBUS_ID(0x09, 0x05) 0 0x800>;
293301
};
302+
303+
bm_bppi: bm-bppi {
304+
compatible = "mmio-sram";
305+
reg = <MBUS_ID(0x0c, 0x04) 0 0x100000>;
306+
ranges = <0 MBUS_ID(0x0c, 0x04) 0 0x100000>;
307+
#address-cells = <1>;
308+
#size-cells = <1>;
309+
clocks = <&gateclk 13>;
310+
no-memory-wc;
311+
status = "disabled";
312+
};
294313
};
295314

296315
clocks {

0 commit comments

Comments
 (0)