srio-rmu.txt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. Message unit node:
  2. For SRIO controllers that implement the message unit as part of the controller
  3. this node is required. For devices with RMAN this node should NOT exist. The
  4. node is composed of three types of sub-nodes ("fsl-srio-msg-unit",
  5. "fsl-srio-dbell-unit" and "fsl-srio-port-write-unit").
  6. See srio.txt for more details about generic SRIO controller details.
  7. - compatible
  8. Usage: required
  9. Value type: <string>
  10. Definition: Must include "fsl,srio-rmu-vX.Y", "fsl,srio-rmu".
  11. The version X.Y should match the general SRIO controller's IP Block
  12. revision register's Major(X) and Minor (Y) value.
  13. - reg
  14. Usage: required
  15. Value type: <prop-encoded-array>
  16. Definition: A standard property. Specifies the physical address and
  17. length of the SRIO configuration registers for message units
  18. and doorbell units.
  19. - fsl,liodn
  20. Usage: optional-but-recommended (for devices with PAMU)
  21. Value type: <prop-encoded-array>
  22. Definition: The logical I/O device number for the PAMU (IOMMU) to be
  23. correctly configured for SRIO accesses. The property should
  24. not exist on devices that do not support PAMU.
  25. The LIODN value is associated with all RMU transactions
  26. (msg-unit, doorbell, port-write).
  27. Sub-Nodes for RMU: The RMU node is composed of multiple sub-nodes that
  28. correspond to the actual sub-controllers in the RMU. The manual for a given
  29. SoC will detail which and how many of these sub-controllers are implemented.
  30. Message Unit:
  31. - compatible
  32. Usage: required
  33. Value type: <string>
  34. Definition: Must include "fsl,srio-msg-unit-vX.Y", "fsl,srio-msg-unit".
  35. The version X.Y should match the general SRIO controller's IP Block
  36. revision register's Major(X) and Minor (Y) value.
  37. - reg
  38. Usage: required
  39. Value type: <prop-encoded-array>
  40. Definition: A standard property. Specifies the physical address and
  41. length of the SRIO configuration registers for message units
  42. and doorbell units.
  43. - interrupts
  44. Usage: required
  45. Value type: <prop_encoded-array>
  46. Definition: Specifies the interrupts generated by this device. The
  47. value of the interrupts property consists of one interrupt
  48. specifier. The format of the specifier is defined by the
  49. binding document describing the node's interrupt parent.
  50. A pair of IRQs are specified in this property. The first
  51. element is associated with the transmit (TX) interrupt and the
  52. second element is associated with the receive (RX) interrupt.
  53. Doorbell Unit:
  54. - compatible
  55. Usage: required
  56. Value type: <string>
  57. Definition: Must include:
  58. "fsl,srio-dbell-unit-vX.Y", "fsl,srio-dbell-unit"
  59. The version X.Y should match the general SRIO controller's IP Block
  60. revision register's Major(X) and Minor (Y) value.
  61. - reg
  62. Usage: required
  63. Value type: <prop-encoded-array>
  64. Definition: A standard property. Specifies the physical address and
  65. length of the SRIO configuration registers for message units
  66. and doorbell units.
  67. - interrupts
  68. Usage: required
  69. Value type: <prop_encoded-array>
  70. Definition: Specifies the interrupts generated by this device. The
  71. value of the interrupts property consists of one interrupt
  72. specifier. The format of the specifier is defined by the
  73. binding document describing the node's interrupt parent.
  74. A pair of IRQs are specified in this property. The first
  75. element is associated with the transmit (TX) interrupt and the
  76. second element is associated with the receive (RX) interrupt.
  77. Port-Write Unit:
  78. - compatible
  79. Usage: required
  80. Value type: <string>
  81. Definition: Must include:
  82. "fsl,srio-port-write-unit-vX.Y", "fsl,srio-port-write-unit"
  83. The version X.Y should match the general SRIO controller's IP Block
  84. revision register's Major(X) and Minor (Y) value.
  85. - reg
  86. Usage: required
  87. Value type: <prop-encoded-array>
  88. Definition: A standard property. Specifies the physical address and
  89. length of the SRIO configuration registers for message units
  90. and doorbell units.
  91. - interrupts
  92. Usage: required
  93. Value type: <prop_encoded-array>
  94. Definition: Specifies the interrupts generated by this device. The
  95. value of the interrupts property consists of one interrupt
  96. specifier. The format of the specifier is defined by the
  97. binding document describing the node's interrupt parent.
  98. A single IRQ that handles port-write conditions is
  99. specified by this property. (Typically shared with error).
  100. Note: All other standard properties (see the ePAPR) are allowed
  101. but are optional.
  102. Example:
  103. rmu: rmu@d3000 {
  104. compatible = "fsl,srio-rmu";
  105. reg = <0xd3000 0x400>;
  106. ranges = <0x0 0xd3000 0x400>;
  107. fsl,liodn = <0xc8>;
  108. message-unit@0 {
  109. compatible = "fsl,srio-msg-unit";
  110. reg = <0x0 0x100>;
  111. interrupts = <
  112. 60 2 0 0 /* msg1_tx_irq */
  113. 61 2 0 0>;/* msg1_rx_irq */
  114. };
  115. message-unit@100 {
  116. compatible = "fsl,srio-msg-unit";
  117. reg = <0x100 0x100>;
  118. interrupts = <
  119. 62 2 0 0 /* msg2_tx_irq */
  120. 63 2 0 0>;/* msg2_rx_irq */
  121. };
  122. doorbell-unit@400 {
  123. compatible = "fsl,srio-dbell-unit";
  124. reg = <0x400 0x80>;
  125. interrupts = <
  126. 56 2 0 0 /* bell_outb_irq */
  127. 57 2 0 0>;/* bell_inb_irq */
  128. };
  129. port-write-unit@4e0 {
  130. compatible = "fsl,srio-port-write-unit";
  131. reg = <0x4e0 0x20>;
  132. interrupts = <16 2 1 11>;
  133. };
  134. };