bman.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. QorIQ DPAA Buffer Manager Device Tree Bindings
  2. Copyright (C) 2008 - 2014 Freescale Semiconductor Inc.
  3. CONTENTS
  4. - BMan Node
  5. - BMan Private Memory Node
  6. - Example
  7. BMan Node
  8. The Buffer Manager is part of the Data-Path Acceleration Architecture (DPAA).
  9. BMan supports hardware allocation and deallocation of buffers belonging to pools
  10. originally created by software with configurable depletion thresholds. This
  11. binding covers the CCSR space programming model
  12. PROPERTIES
  13. - compatible
  14. Usage: Required
  15. Value type: <stringlist>
  16. Definition: Must include "fsl,bman"
  17. May include "fsl,<SoC>-bman"
  18. - reg
  19. Usage: Required
  20. Value type: <prop-encoded-array>
  21. Definition: Registers region within the CCSR address space
  22. The BMan revision information is located in the BMAN_IP_REV_1/2 registers which
  23. are located at offsets 0xbf8 and 0xbfc
  24. - interrupts
  25. Usage: Required
  26. Value type: <prop-encoded-array>
  27. Definition: Standard property. The error interrupt
  28. - fsl,bman-portals
  29. Usage: Required
  30. Value type: <phandle>
  31. Definition: Phandle to this BMan instance's portals
  32. - fsl,liodn
  33. Usage: See pamu.txt
  34. Value type: <prop-encoded-array>
  35. Definition: PAMU property used for static LIODN assignment
  36. - fsl,iommu-parent
  37. Usage: See pamu.txt
  38. Value type: <phandle>
  39. Definition: PAMU property used for dynamic LIODN assignment
  40. For additional details about the PAMU/LIODN binding(s) see pamu.txt
  41. Devices connected to a BMan instance via Direct Connect Portals (DCP) must link
  42. to the respective BMan instance
  43. - fsl,bman
  44. Usage: Required
  45. Value type: <prop-encoded-array>
  46. Description: List of phandle and DCP index pairs, to the BMan instance
  47. to which this device is connected via the DCP
  48. BMan Private Memory Node
  49. BMan requires a contiguous range of physical memory used for the backing store
  50. for BMan Free Buffer Proxy Records (FBPR). This memory is reserved/allocated as a
  51. node under the /reserved-memory node
  52. The BMan FBPR memory node must be named "bman-fbpr"
  53. PROPERTIES
  54. - compatible
  55. Usage: required
  56. Value type: <stringlist>
  57. Definition: Must inclide "fsl,bman-fbpr"
  58. The following constraints are relevant to the FBPR private memory:
  59. - The size must be 2^(size + 1), with size = 11..33. That is 4 KiB to
  60. 16 GiB
  61. - The alignment must be a muliptle of the memory size
  62. The size of the FBPR must be chosen by observing the hardware features configured
  63. via the Reset Configuration Word (RCW) and that are relevant to a specific board
  64. (e.g. number of MAC(s) pinned-out, number of offline/host command FMan ports,
  65. etc.). The size configured in the DT must reflect the hardware capabilities and
  66. not the specific needs of an application
  67. For additional details about reserved memory regions see reserved-memory.txt
  68. EXAMPLE
  69. The example below shows a BMan FBPR dynamic allocation memory node
  70. reserved-memory {
  71. #address-cells = <2>;
  72. #size-cells = <2>;
  73. ranges;
  74. bman_fbpr: bman-fbpr {
  75. compatible = "fsl,bman-fbpr";
  76. alloc-ranges = <0 0 0x10 0>;
  77. size = <0 0x1000000>;
  78. alignment = <0 0x1000000>;
  79. };
  80. };
  81. The example below shows a (P4080) BMan CCSR-space node
  82. bportals: bman-portals@ff4000000 {
  83. ...
  84. };
  85. crypto@300000 {
  86. ...
  87. fsl,bman = <&bman, 2>;
  88. ...
  89. };
  90. bman: bman@31a000 {
  91. compatible = "fsl,bman";
  92. reg = <0x31a000 0x1000>;
  93. interrupts = <16 2 1 2>;
  94. fsl,liodn = <0x17>;
  95. fsl,bman-portals = <&bportals>;
  96. memory-region = <&bman_fbpr>;
  97. };
  98. fman@400000 {
  99. ...
  100. fsl,bman = <&bman, 0>;
  101. ...
  102. };