fsl,mu.yaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mailbox/fsl,mu.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: NXP i.MX Messaging Unit (MU)
  7. maintainers:
  8. - Dong Aisheng <aisheng.dong@nxp.com>
  9. description: |
  10. The Messaging Unit module enables two processors within the SoC to
  11. communicate and coordinate by passing messages (e.g. data, status
  12. and control) through the MU interface. The MU also provides the ability
  13. for one processor to signal the other processor using interrupts.
  14. Because the MU manages the messaging between processors, the MU uses
  15. different clocks (from each side of the different peripheral buses).
  16. Therefore, the MU must synchronize the accesses from one side to the
  17. other. The MU accomplishes synchronization using two sets of matching
  18. registers (Processor A-facing, Processor B-facing).
  19. properties:
  20. compatible:
  21. oneOf:
  22. - const: fsl,imx6sx-mu
  23. - const: fsl,imx7ulp-mu
  24. - const: fsl,imx8ulp-mu
  25. - const: fsl,imx8-mu-scu
  26. - const: fsl,imx8-mu-seco
  27. - const: fsl,imx8ulp-mu-s4
  28. - const: fsl,imx93-mu-s4
  29. - const: fsl,imx95-mu
  30. - const: fsl,imx95-mu-ele
  31. - const: fsl,imx95-mu-v2x
  32. - items:
  33. - const: fsl,imx93-mu
  34. - const: fsl,imx8ulp-mu
  35. - items:
  36. - enum:
  37. - fsl,imx7s-mu
  38. - fsl,imx8mq-mu
  39. - fsl,imx8mm-mu
  40. - fsl,imx8mn-mu
  41. - fsl,imx8mp-mu
  42. - fsl,imx8qm-mu
  43. - fsl,imx8qxp-mu
  44. - const: fsl,imx6sx-mu
  45. - description: To communicate with i.MX8 SCU with fast IPC
  46. items:
  47. - const: fsl,imx8-mu-scu
  48. - enum:
  49. - fsl,imx8qm-mu
  50. - fsl,imx8qxp-mu
  51. - const: fsl,imx6sx-mu
  52. - items:
  53. - enum:
  54. - fsl,imx94-mu
  55. - const: fsl,imx95-mu
  56. reg:
  57. maxItems: 1
  58. interrupts:
  59. minItems: 1
  60. maxItems: 2
  61. interrupt-names:
  62. minItems: 1
  63. items:
  64. - const: tx
  65. - const: rx
  66. "#mbox-cells":
  67. description: |
  68. <&phandle type channel>
  69. phandle : Label name of controller
  70. type : Channel type
  71. channel : Channel number
  72. This MU support 6 type of unidirectional channels, each type
  73. has 4 channels except RST channel which only has 1 channel.
  74. A total of 21 channels. Following types are
  75. supported:
  76. 0 - TX channel with 32bit transmit register and IRQ transmit
  77. acknowledgment support.
  78. 1 - RX channel with 32bit receive register and IRQ support
  79. 2 - TX doorbell channel. Without own register and no ACK support.
  80. 3 - RX doorbell channel.
  81. 4 - RST channel
  82. 5 - Tx doorbell channel. With S/W ACK from the other side.
  83. const: 2
  84. clocks:
  85. maxItems: 1
  86. fsl,mu-side-b:
  87. description: boolean, if present, means it is for side B MU.
  88. type: boolean
  89. power-domains:
  90. maxItems: 1
  91. ranges: true
  92. '#address-cells':
  93. const: 1
  94. '#size-cells':
  95. const: 1
  96. patternProperties:
  97. "^sram@[a-f0-9]+":
  98. $ref: /schemas/sram/sram.yaml#
  99. unevaluatedProperties: false
  100. required:
  101. - compatible
  102. - reg
  103. - interrupts
  104. - "#mbox-cells"
  105. allOf:
  106. - if:
  107. properties:
  108. compatible:
  109. enum:
  110. - fsl,imx93-mu-s4
  111. then:
  112. properties:
  113. interrupt-names:
  114. minItems: 2
  115. interrupts:
  116. minItems: 2
  117. else:
  118. properties:
  119. interrupts:
  120. maxItems: 1
  121. not:
  122. required:
  123. - interrupt-names
  124. - if:
  125. not:
  126. properties:
  127. compatible:
  128. contains:
  129. const: fsl,imx95-mu
  130. then:
  131. patternProperties:
  132. "^sram@[a-f0-9]+": false
  133. additionalProperties: false
  134. examples:
  135. - |
  136. #include <dt-bindings/interrupt-controller/arm-gic.h>
  137. mailbox@5d1b0000 {
  138. compatible = "fsl,imx8qxp-mu", "fsl,imx6sx-mu";
  139. reg = <0x5d1b0000 0x10000>;
  140. interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
  141. #mbox-cells = <2>;
  142. };
  143. - |
  144. #include <dt-bindings/interrupt-controller/arm-gic.h>
  145. mailbox@445b0000 {
  146. compatible = "fsl,imx95-mu";
  147. reg = <0x445b0000 0x10000>;
  148. ranges;
  149. interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
  150. #address-cells = <1>;
  151. #size-cells = <1>;
  152. #mbox-cells = <2>;
  153. sram@445b1000 {
  154. compatible = "mmio-sram";
  155. reg = <0x445b1000 0x400>;
  156. ranges = <0x0 0x445b1000 0x400>;
  157. #address-cells = <1>;
  158. #size-cells = <1>;
  159. scmi-sram-section@0 {
  160. compatible = "arm,scmi-shmem";
  161. reg = <0x0 0x80>;
  162. };
  163. scmi-sram-section@80 {
  164. compatible = "arm,scmi-shmem";
  165. reg = <0x80 0x80>;
  166. };
  167. };
  168. };