ti,pruss-intc.yaml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/interrupt-controller/ti,pruss-intc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TI PRU-ICSS Local Interrupt Controller
  7. maintainers:
  8. - Suman Anna <s-anna@ti.com>
  9. description: |
  10. Each PRU-ICSS has a single interrupt controller instance that is common
  11. to all the PRU cores. Most interrupt controllers can route 64 input events
  12. which are then mapped to 10 possible output interrupts through two levels
  13. of mapping. The input events can be triggered by either the PRUs and/or
  14. various other PRUSS internal and external peripherals. The first 2 output
  15. interrupts (0, 1) are fed exclusively to the internal PRU cores, with the
  16. remaining 8 (2 through 9) connected to external interrupt controllers
  17. including the MPU and/or other PRUSS instances, DSPs or devices.
  18. The property "ti,irqs-reserved" is used for denoting the connection
  19. differences on the output interrupts 2 through 9. If this property is not
  20. defined, it implies that all the PRUSS INTC output interrupts 2 through 9
  21. (host_intr0 through host_intr7) are connected exclusively to the Arm interrupt
  22. controller.
  23. The K3 family of SoCs can handle 160 input events that can be mapped to 20
  24. different possible output interrupts. The additional output interrupts (10
  25. through 19) are connected to new sub-modules within the ICSSG instances.
  26. This interrupt-controller node should be defined as a child node of the
  27. corresponding PRUSS node. The node should be named "interrupt-controller".
  28. properties:
  29. $nodename:
  30. pattern: "^interrupt-controller@[0-9a-f]+$"
  31. compatible:
  32. enum:
  33. - ti,pruss-intc
  34. - ti,icssg-intc
  35. description: |
  36. Use "ti,pruss-intc" for OMAP-L13x/AM18x/DA850 SoCs,
  37. AM335x family of SoCs,
  38. AM437x family of SoCs,
  39. AM57xx family of SoCs
  40. 66AK2G family of SoCs
  41. Use "ti,icssg-intc" for K3 AM65x, J721E and AM64x family of SoCs
  42. reg:
  43. maxItems: 1
  44. interrupts:
  45. minItems: 1
  46. maxItems: 8
  47. description: |
  48. All the interrupts generated towards the main host processor in the SoC.
  49. A shared interrupt can be skipped if the desired destination and usage is
  50. by a different processor/device.
  51. interrupt-names:
  52. minItems: 1
  53. maxItems: 8
  54. items:
  55. pattern: host_intr[0-7]
  56. description: |
  57. Should use one of the above names for each valid host event interrupt
  58. connected to Arm interrupt controller, the name should match the
  59. corresponding host event interrupt number.
  60. interrupt-controller: true
  61. "#interrupt-cells":
  62. const: 3
  63. description: |
  64. Client users shall use the PRU System event number (the interrupt source
  65. that the client is interested in) [cell 1], PRU channel [cell 2] and PRU
  66. host_event (target) [cell 3] as the value of the interrupts property in
  67. their node. The system events can be mapped to some output host
  68. interrupts through 2 levels of many-to-one mapping i.e. events to channel
  69. mapping and channels to host interrupts so through this property entire
  70. mapping is provided.
  71. ti,irqs-reserved:
  72. $ref: /schemas/types.yaml#/definitions/uint8
  73. description: |
  74. Bitmask of host interrupts between 0 and 7 (corresponding to PRUSS INTC
  75. output interrupts 2 through 9) that are not connected to the Arm interrupt
  76. controller or are shared and used by other devices or processors in the
  77. SoC. Define this property when any of 8 interrupts should not be handled
  78. by Arm interrupt controller.
  79. Eg: - AM437x and 66AK2G SoCs do not have "host_intr5" interrupt
  80. connected to MPU
  81. - AM65x and J721E SoCs have "host_intr5", "host_intr6" and
  82. "host_intr7" interrupts connected to MPU, and other ICSSG
  83. instances.
  84. - AM64x SoCs have all the 8 host interrupts connected to various
  85. other SoC entities
  86. required:
  87. - compatible
  88. - reg
  89. - interrupts
  90. - interrupt-names
  91. - interrupt-controller
  92. - "#interrupt-cells"
  93. additionalProperties: false
  94. examples:
  95. - |
  96. /* AM33xx PRU-ICSS */
  97. pruss: pruss@0 {
  98. compatible = "ti,am3356-pruss";
  99. reg = <0x0 0x80000>;
  100. #address-cells = <1>;
  101. #size-cells = <1>;
  102. ranges;
  103. pruss_intc: interrupt-controller@20000 {
  104. compatible = "ti,pruss-intc";
  105. reg = <0x20000 0x2000>;
  106. interrupts = <20 21 22 23 24 25 26 27>;
  107. interrupt-names = "host_intr0", "host_intr1",
  108. "host_intr2", "host_intr3",
  109. "host_intr4", "host_intr5",
  110. "host_intr6", "host_intr7";
  111. interrupt-controller;
  112. #interrupt-cells = <3>;
  113. };
  114. };
  115. - |
  116. /* AM4376 PRU-ICSS */
  117. #include <dt-bindings/interrupt-controller/arm-gic.h>
  118. pruss@0 {
  119. compatible = "ti,am4376-pruss1";
  120. reg = <0x0 0x40000>;
  121. #address-cells = <1>;
  122. #size-cells = <1>;
  123. ranges;
  124. interrupt-controller@20000 {
  125. compatible = "ti,pruss-intc";
  126. reg = <0x20000 0x2000>;
  127. interrupt-controller;
  128. #interrupt-cells = <3>;
  129. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
  130. <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
  131. <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
  132. <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
  133. <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
  134. <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
  135. <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
  136. interrupt-names = "host_intr0", "host_intr1",
  137. "host_intr2", "host_intr3",
  138. "host_intr4",
  139. "host_intr6", "host_intr7";
  140. ti,irqs-reserved = /bits/ 8 <0x20>; /* BIT(5) */
  141. };
  142. };