Skip to content

Commit 9dd7a57

Browse files
wojtas-marcindavem330
authored andcommitted
ARM: dts: armada-xp: enable buffer manager support on Armada XP boards
Since mvneta driver supports using hardware buffer management (BM), in order to use it, board files have to be adjusted accordingly. This commit enables BM on AXP-DB and AXP-GP in same manner - because number of ports on those boards is the same as number of possible pools, each port is supposed to use single pool for all kind of packets. Moreover appropriate entry is added to 'soc' node ranges, as well as "okay" status for 'bm' and 'bm-bppi' (internal SRAM) nodes. Signed-off-by: Marcin Wojtas <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ebae137 commit 9dd7a57

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
7878
MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000
7979
MBUS_ID(0x09, 0x09) 0 0 0xf8100000 0x10000
80-
MBUS_ID(0x09, 0x05) 0 0 0xf8110000 0x10000>;
80+
MBUS_ID(0x09, 0x05) 0 0 0xf8110000 0x10000
81+
MBUS_ID(0x0c, 0x04) 0 0 0xf1200000 0x100000>;
8182

8283
devbus-bootcs {
8384
status = "okay";
@@ -181,21 +182,33 @@
181182
status = "okay";
182183
phy = <&phy0>;
183184
phy-mode = "rgmii-id";
185+
buffer-manager = <&bm>;
186+
bm,pool-long = <0>;
184187
};
185188
ethernet@74000 {
186189
status = "okay";
187190
phy = <&phy1>;
188191
phy-mode = "rgmii-id";
192+
buffer-manager = <&bm>;
193+
bm,pool-long = <1>;
189194
};
190195
ethernet@30000 {
191196
status = "okay";
192197
phy = <&phy2>;
193198
phy-mode = "sgmii";
199+
buffer-manager = <&bm>;
200+
bm,pool-long = <2>;
194201
};
195202
ethernet@34000 {
196203
status = "okay";
197204
phy = <&phy3>;
198205
phy-mode = "sgmii";
206+
buffer-manager = <&bm>;
207+
bm,pool-long = <3>;
208+
};
209+
210+
bm@c0000 {
211+
status = "okay";
199212
};
200213

201214
mvsdio@d4000 {
@@ -230,5 +243,9 @@
230243
};
231244
};
232245
};
246+
247+
bm-bppi {
248+
status = "okay";
249+
};
233250
};
234251
};

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
9797
MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x1000000
9898
MBUS_ID(0x09, 0x09) 0 0 0xf8100000 0x10000
99-
MBUS_ID(0x09, 0x05) 0 0 0xf8110000 0x10000>;
99+
MBUS_ID(0x09, 0x05) 0 0 0xf8110000 0x10000
100+
MBUS_ID(0x0c, 0x04) 0 0 0xf1200000 0x100000>;
100101

101102
devbus-bootcs {
102103
status = "okay";
@@ -196,21 +197,29 @@
196197
status = "okay";
197198
phy = <&phy0>;
198199
phy-mode = "qsgmii";
200+
buffer-manager = <&bm>;
201+
bm,pool-long = <0>;
199202
};
200203
ethernet@74000 {
201204
status = "okay";
202205
phy = <&phy1>;
203206
phy-mode = "qsgmii";
207+
buffer-manager = <&bm>;
208+
bm,pool-long = <1>;
204209
};
205210
ethernet@30000 {
206211
status = "okay";
207212
phy = <&phy2>;
208213
phy-mode = "qsgmii";
214+
buffer-manager = <&bm>;
215+
bm,pool-long = <2>;
209216
};
210217
ethernet@34000 {
211218
status = "okay";
212219
phy = <&phy3>;
213220
phy-mode = "qsgmii";
221+
buffer-manager = <&bm>;
222+
bm,pool-long = <3>;
214223
};
215224

216225
/* Front-side USB slot */
@@ -235,6 +244,10 @@
235244
};
236245
};
237246

247+
bm@c0000 {
248+
status = "okay";
249+
};
250+
238251
nand@d0000 {
239252
status = "okay";
240253
num-cs = <1>;
@@ -243,5 +256,9 @@
243256
nand-on-flash-bbt;
244257
};
245258
};
259+
260+
bm-bppi {
261+
status = "okay";
262+
};
246263
};
247264
};

0 commit comments

Comments
 (0)