qman-portals.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. QorIQ DPAA Queue Manager Portals Device Tree Binding
  2. Copyright (C) 2008 - 2014 Freescale Semiconductor Inc.
  3. CONTENTS
  4. - QMan Portal
  5. - QMan Pool Channel
  6. - Example
  7. QMan Portal Node
  8. Portals are memory mapped interfaces to QMan that allow low-latency, lock-less
  9. interaction by software running on processor cores, accelerators and network
  10. interfaces with the QMan
  11. PROPERTIES
  12. - compatible
  13. Usage: Required
  14. Value type: <stringlist>
  15. Definition: Must include "fsl,qman-portal-<hardware revision>"
  16. May include "fsl,<SoC>-qman-portal" or "fsl,qman-portal"
  17. - reg
  18. Usage: Required
  19. Value type: <prop-encoded-array>
  20. Definition: Two regions. The first is the cache-enabled region of
  21. the portal. The second is the cache-inhibited region of
  22. the portal
  23. - interrupts
  24. Usage: Required
  25. Value type: <prop-encoded-array>
  26. Definition: Standard property
  27. - fsl,liodn
  28. Usage: See pamu.txt
  29. Value type: <prop-encoded-array>
  30. Definition: Two LIODN(s). DQRR LIODN (DLIODN) and Frame LIODN
  31. (FLIODN)
  32. - fsl,iommu-parent
  33. Usage: See pamu.txt
  34. Value type: <phandle>
  35. Definition: PAMU property used for dynamic LIODN assignment
  36. For additional details about the PAMU/LIODN binding(s) see pamu.txt
  37. - cell-index
  38. Usage: Required
  39. Value type: <u32>
  40. Definition: The hardware index of the channel. This can also be
  41. determined by dividing any of the channel's 8 work queue
  42. IDs by 8
  43. In addition to these properties the qman-portals should have sub-nodes to
  44. represent the HW devices/portals that are connected to the software portal
  45. described here
  46. The currently supported sub-nodes are:
  47. * fman0
  48. * fman1
  49. * pme
  50. * crypto
  51. These subnodes should have the following properties:
  52. - fsl,liodn
  53. Usage: See pamu.txt
  54. Value type: <prop-encoded-array>
  55. Definition: PAMU property used for static LIODN assignment
  56. - fsl,iommu-parent
  57. Usage: See pamu.txt
  58. Value type: <phandle>
  59. Definition: PAMU property used for dynamic LIODN assignment
  60. - dev-handle
  61. Usage: Required
  62. Value type: <phandle>
  63. Definition: The phandle to the particular hardware device that this
  64. portal is connected to.
  65. DPAA QMan Pool Channel Nodes
  66. Pool Channels are defined with the following properties.
  67. PROPERTIES
  68. - compatible
  69. Usage: Required
  70. Value type: <stringlist>
  71. Definition: Must include "fsl,qman-pool-channel"
  72. May include "fsl,<SoC>-qman-pool-channel"
  73. - fsl,qman-channel-id
  74. Usage: Required
  75. Value type: <u32>
  76. Definition: The hardware index of the channel. This can also be
  77. determined by dividing any of the channel's 8 work queue
  78. IDs by 8
  79. EXAMPLE
  80. The example below shows a (P4080) QMan portals container/bus node with two portals
  81. qman-portals@ff4200000 {
  82. #address-cells = <1>;
  83. #size-cells = <1>;
  84. compatible = "simple-bus";
  85. ranges = <0 0xf 0xf4200000 0x200000>;
  86. qman-portal@0 {
  87. compatible = "fsl,qman-portal-1.2.0", "fsl,qman-portal";
  88. reg = <0 0x4000>, <0x100000 0x1000>;
  89. interrupts = <104 2 0 0>;
  90. fsl,liodn = <1 2>;
  91. fsl,qman-channel-id = <0>;
  92. fman0 {
  93. fsl,liodn = <0x21>;
  94. dev-handle = <&fman0>;
  95. };
  96. fman1 {
  97. fsl,liodn = <0xa1>;
  98. dev-handle = <&fman1>;
  99. };
  100. crypto {
  101. fsl,liodn = <0x41 0x66>;
  102. dev-handle = <&crypto>;
  103. };
  104. };
  105. qman-portal@4000 {
  106. compatible = "fsl,qman-portal-1.2.0", "fsl,qman-portal";
  107. reg = <0x4000 0x4000>, <0x101000 0x1000>;
  108. interrupts = <106 2 0 0>;
  109. fsl,liodn = <3 4>;
  110. cell-index = <1>;
  111. fman0 {
  112. fsl,liodn = <0x22>;
  113. dev-handle = <&fman0>;
  114. };
  115. fman1 {
  116. fsl,liodn = <0xa2>;
  117. dev-handle = <&fman1>;
  118. };
  119. crypto {
  120. fsl,liodn = <0x42 0x67>;
  121. dev-handle = <&crypto>;
  122. };
  123. };
  124. };