054-ARM-dts-armada-38x-enable-buffer-manager-support-on-.patch 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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
  5. 38x boards
  6. Since mvneta driver supports using hardware buffer management (BM), in
  7. order to use it, board files have to be adjusted accordingly. This commit
  8. enables BM on:
  9. * A385-DB-AP - each port has its own pool for long and common pool for
  10. short packets,
  11. * A388-ClearFog - same as above,
  12. * A388-DB - to each port unique 'short' and 'long' pools are mapped,
  13. * A388-GP - same as above.
  14. Moreover appropriate entry is added to 'soc' node ranges, as well as "okay"
  15. status for 'bm' and 'bm-bppi' (internal SRAM) nodes.
  16. [gregory.clement@free-electrons.com: add suppport for the ClearFog board]
  17. Signed-off-by: Marcin Wojtas <mw@semihalf.com>
  18. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
  19. Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
  20. Signed-off-by: David S. Miller <davem@davemloft.net>
  21. ---
  22. arch/arm/boot/dts/armada-385-db-ap.dts | 20 +++++++++++++++++++-
  23. arch/arm/boot/dts/armada-388-clearfog.dts | 6 ++++++
  24. arch/arm/boot/dts/armada-388-db.dts | 17 ++++++++++++++++-
  25. arch/arm/boot/dts/armada-388-gp.dts | 17 ++++++++++++++++-
  26. arch/arm/boot/dts/armada-38x-solidrun-microsom.dtsi | 15 ++++++++++++++-
  27. 5 files changed, 71 insertions(+), 4 deletions(-)
  28. --- a/arch/arm/boot/dts/armada-385-db-ap.dts
  29. +++ b/arch/arm/boot/dts/armada-385-db-ap.dts
  30. @@ -61,7 +61,8 @@
  31. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
  32. MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
  33. MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
  34. - MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
  35. + MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
  36. + MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
  37. internal-regs {
  38. spi1: spi@10680 {
  39. @@ -138,12 +139,18 @@
  40. status = "okay";
  41. phy = <&phy2>;
  42. phy-mode = "sgmii";
  43. + buffer-manager = <&bm>;
  44. + bm,pool-long = <1>;
  45. + bm,pool-short = <3>;
  46. };
  47. ethernet@34000 {
  48. status = "okay";
  49. phy = <&phy1>;
  50. phy-mode = "sgmii";
  51. + buffer-manager = <&bm>;
  52. + bm,pool-long = <2>;
  53. + bm,pool-short = <3>;
  54. };
  55. ethernet@70000 {
  56. @@ -157,6 +164,13 @@
  57. status = "okay";
  58. phy = <&phy0>;
  59. phy-mode = "rgmii-id";
  60. + buffer-manager = <&bm>;
  61. + bm,pool-long = <0>;
  62. + bm,pool-short = <3>;
  63. + };
  64. +
  65. + bm@c8000 {
  66. + status = "okay";
  67. };
  68. nfc: flash@d0000 {
  69. @@ -178,6 +192,10 @@
  70. };
  71. };
  72. + bm-bppi {
  73. + status = "okay";
  74. + };
  75. +
  76. pcie-controller {
  77. status = "okay";
  78. --- a/arch/arm/boot/dts/armada-388-clearfog.dts
  79. +++ b/arch/arm/boot/dts/armada-388-clearfog.dts
  80. @@ -78,6 +78,9 @@
  81. internal-regs {
  82. ethernet@30000 {
  83. phy-mode = "sgmii";
  84. + buffer-manager = <&bm>;
  85. + bm,pool-long = <2>;
  86. + bm,pool-short = <1>;
  87. status = "okay";
  88. fixed-link {
  89. @@ -88,6 +91,9 @@
  90. ethernet@34000 {
  91. phy-mode = "sgmii";
  92. + buffer-manager = <&bm>;
  93. + bm,pool-long = <3>;
  94. + bm,pool-short = <1>;
  95. status = "okay";
  96. fixed-link {
  97. --- a/arch/arm/boot/dts/armada-388-db.dts
  98. +++ b/arch/arm/boot/dts/armada-388-db.dts
  99. @@ -66,7 +66,8 @@
  100. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
  101. MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
  102. MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
  103. - MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
  104. + MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
  105. + MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
  106. internal-regs {
  107. spi@10600 {
  108. @@ -99,6 +100,9 @@
  109. status = "okay";
  110. phy = <&phy1>;
  111. phy-mode = "rgmii-id";
  112. + buffer-manager = <&bm>;
  113. + bm,pool-long = <2>;
  114. + bm,pool-short = <3>;
  115. };
  116. usb@58000 {
  117. @@ -109,6 +113,9 @@
  118. status = "okay";
  119. phy = <&phy0>;
  120. phy-mode = "rgmii-id";
  121. + buffer-manager = <&bm>;
  122. + bm,pool-long = <0>;
  123. + bm,pool-short = <1>;
  124. };
  125. mdio@72004 {
  126. @@ -129,6 +136,10 @@
  127. status = "okay";
  128. };
  129. + bm@c8000 {
  130. + status = "okay";
  131. + };
  132. +
  133. flash@d0000 {
  134. status = "okay";
  135. num-cs = <1>;
  136. @@ -169,6 +180,10 @@
  137. };
  138. };
  139. + bm-bppi {
  140. + status = "okay";
  141. + };
  142. +
  143. pcie-controller {
  144. status = "okay";
  145. /*
  146. --- a/arch/arm/boot/dts/armada-388-gp.dts
  147. +++ b/arch/arm/boot/dts/armada-388-gp.dts
  148. @@ -60,7 +60,8 @@
  149. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
  150. MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
  151. MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
  152. - MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
  153. + MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
  154. + MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
  155. internal-regs {
  156. spi@10600 {
  157. @@ -133,6 +134,9 @@
  158. status = "okay";
  159. phy = <&phy1>;
  160. phy-mode = "rgmii-id";
  161. + buffer-manager = <&bm>;
  162. + bm,pool-long = <2>;
  163. + bm,pool-short = <3>;
  164. };
  165. /* CON4 */
  166. @@ -152,6 +156,9 @@
  167. status = "okay";
  168. phy = <&phy0>;
  169. phy-mode = "rgmii-id";
  170. + buffer-manager = <&bm>;
  171. + bm,pool-long = <0>;
  172. + bm,pool-short = <1>;
  173. };
  174. @@ -186,6 +193,10 @@
  175. };
  176. };
  177. + bm@c8000 {
  178. + status = "okay";
  179. + };
  180. +
  181. sata@e0000 {
  182. pinctrl-names = "default";
  183. pinctrl-0 = <&sata2_pins>, <&sata3_pins>;
  184. @@ -240,6 +251,10 @@
  185. };
  186. };
  187. + bm-bppi {
  188. + status = "okay";
  189. + };
  190. +
  191. pcie-controller {
  192. status = "okay";
  193. /*
  194. --- a/arch/arm/boot/dts/armada-38x-solidrun-microsom.dtsi
  195. +++ b/arch/arm/boot/dts/armada-38x-solidrun-microsom.dtsi
  196. @@ -58,7 +58,8 @@
  197. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
  198. MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
  199. MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
  200. - MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
  201. + MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
  202. + MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
  203. internal-regs {
  204. ethernet@70000 {
  205. @@ -66,6 +67,9 @@
  206. pinctrl-names = "default";
  207. phy = <&phy_dedicated>;
  208. phy-mode = "rgmii-id";
  209. + buffer-manager = <&bm>;
  210. + bm,pool-long = <0>;
  211. + bm,pool-short = <1>;
  212. status = "okay";
  213. };
  214. @@ -110,6 +114,15 @@
  215. pinctrl-names = "default";
  216. status = "okay";
  217. };
  218. +
  219. + bm@c8000 {
  220. + status = "okay";
  221. + };
  222. };
  223. +
  224. + bm-bppi {
  225. + status = "okay";
  226. + };
  227. +
  228. };
  229. };