1 From c49e99c2b25a412623412a461bb751239208b9b3 Mon Sep 17 00:00:00 2001
2 From: Marcin Wojtas <mw@semihalf.com>
3 Date: Mon, 14 Mar 2016 09:38:58 +0100
4 Subject: [PATCH] ARM: dts: armada-38x: enable buffer manager support on Armada
7 Since mvneta driver supports using hardware buffer management (BM), in
8 order to use it, board files have to be adjusted accordingly. This commit
10 * A385-DB-AP - each port has its own pool for long and common pool for
12 * A388-ClearFog - same as above,
13 * A388-DB - to each port unique 'short' and 'long' pools are mapped,
14 * A388-GP - same as above.
16 Moreover appropriate entry is added to 'soc' node ranges, as well as "okay"
17 status for 'bm' and 'bm-bppi' (internal SRAM) nodes.
19 [gregory.clement@free-electrons.com: add suppport for the ClearFog board]
21 Signed-off-by: Marcin Wojtas <mw@semihalf.com>
22 Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
23 Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
24 Signed-off-by: David S. Miller <davem@davemloft.net>
26 arch/arm/boot/dts/armada-385-db-ap.dts | 20 +++++++++++++++++++-
27 arch/arm/boot/dts/armada-388-clearfog.dts | 6 ++++++
28 arch/arm/boot/dts/armada-388-db.dts | 17 ++++++++++++++++-
29 arch/arm/boot/dts/armada-388-gp.dts | 17 ++++++++++++++++-
30 arch/arm/boot/dts/armada-38x-solidrun-microsom.dtsi | 15 ++++++++++++++-
31 5 files changed, 71 insertions(+), 4 deletions(-)
33 --- a/arch/arm/boot/dts/armada-385-db-ap.dts
34 +++ b/arch/arm/boot/dts/armada-385-db-ap.dts
36 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
37 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
38 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
39 - MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
40 + MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
41 + MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
49 + buffer-manager = <&bm>;
51 + bm,pool-short = <3>;
58 + buffer-manager = <&bm>;
60 + bm,pool-short = <3>;
67 phy-mode = "rgmii-id";
68 + buffer-manager = <&bm>;
70 + bm,pool-short = <3>;
89 --- a/arch/arm/boot/dts/armada-388-clearfog.dts
90 +++ b/arch/arm/boot/dts/armada-388-clearfog.dts
95 + buffer-manager = <&bm>;
97 + bm,pool-short = <1>;
105 + buffer-manager = <&bm>;
106 + bm,pool-long = <3>;
107 + bm,pool-short = <1>;
111 --- a/arch/arm/boot/dts/armada-388-db.dts
112 +++ b/arch/arm/boot/dts/armada-388-db.dts
114 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
115 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
116 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
117 - MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
118 + MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
119 + MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
126 phy-mode = "rgmii-id";
127 + buffer-manager = <&bm>;
128 + bm,pool-long = <2>;
129 + bm,pool-short = <3>;
136 phy-mode = "rgmii-id";
137 + buffer-manager = <&bm>;
138 + bm,pool-long = <0>;
139 + bm,pool-short = <1>;
165 --- a/arch/arm/boot/dts/armada-388-gp.dts
166 +++ b/arch/arm/boot/dts/armada-388-gp.dts
168 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
169 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
170 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
171 - MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
172 + MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
173 + MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
180 phy-mode = "rgmii-id";
181 + buffer-manager = <&bm>;
182 + bm,pool-long = <2>;
183 + bm,pool-short = <3>;
190 phy-mode = "rgmii-id";
191 + buffer-manager = <&bm>;
192 + bm,pool-long = <0>;
193 + bm,pool-short = <1>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&sata2_pins>, <&sata3_pins>;
219 --- a/arch/arm/boot/dts/armada-38x-solidrun-microsom.dtsi
220 +++ b/arch/arm/boot/dts/armada-38x-solidrun-microsom.dtsi
222 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
223 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
224 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
225 - MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
226 + MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
227 + MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
232 pinctrl-names = "default";
233 phy = <&phy_dedicated>;
234 phy-mode = "rgmii-id";
235 + buffer-manager = <&bm>;
236 + bm,pool-long = <0>;
237 + bm,pool-short = <1>;
242 pinctrl-names = "default";