brcm,bcm7120-l2-intc.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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/brcm,bcm7120-l2-intc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Broadcom BCM7120-style Level 2 and Broadcom BCM3380 Level 1 / Level 2
  7. maintainers:
  8. - Florian Fainelli <f.fainelli@gmail.com>
  9. description: >
  10. This interrupt controller hardware is a second level interrupt controller that
  11. is hooked to a parent interrupt controller: e.g: ARM GIC for ARM-based
  12. platforms. It can be found on BCM7xxx products starting with BCM7120.
  13. Such an interrupt controller has the following hardware design:
  14. - outputs multiple interrupts signals towards its interrupt controller parent
  15. - controls how some of the interrupts will be flowing, whether they will
  16. directly output an interrupt signal towards the interrupt controller parent,
  17. or if they will output an interrupt signal at this 2nd level interrupt
  18. controller, in particular for UARTs
  19. - has one 32-bit enable word and one 32-bit status word
  20. - no atomic set/clear operations
  21. - not all bits within the interrupt controller actually map to an interrupt
  22. The typical hardware layout for this controller is represented below:
  23. 2nd level interrupt line Outputs for the parent controller (e.g: ARM GIC)
  24. 0 -----[ MUX ] ------------|==========> GIC interrupt 75
  25. \-----------\
  26. |
  27. 1 -----[ MUX ] --------)---|==========> GIC interrupt 76
  28. \------------|
  29. |
  30. 2 -----[ MUX ] --------)---|==========> GIC interrupt 77
  31. \------------|
  32. |
  33. 3 ---------------------|
  34. 4 ---------------------|
  35. 5 ---------------------|
  36. 7 ---------------------|---|===========> GIC interrupt 66
  37. 9 ---------------------|
  38. 10 --------------------|
  39. 11 --------------------/
  40. 6 ------------------------\
  41. |===========> GIC interrupt 64
  42. 8 ------------------------/
  43. 12 ........................ X
  44. 13 ........................ X (not connected)
  45. ..
  46. 31 ........................ X
  47. The BCM3380 Level 1 / Level 2 interrupt controller shows up in various forms
  48. on many BCM338x/BCM63xx chipsets. It has the following properties:
  49. - outputs a single interrupt signal to its interrupt controller parent
  50. - contains one or more enable/status word pairs, which often appear at
  51. different offsets in different blocks
  52. - no atomic set/clear operations
  53. allOf:
  54. - $ref: /schemas/interrupt-controller.yaml#
  55. properties:
  56. compatible:
  57. items:
  58. - enum:
  59. - brcm,bcm7120-l2-intc
  60. - brcm,bcm3380-l2-intc
  61. reg:
  62. minItems: 1
  63. maxItems: 4
  64. description: >
  65. Specifies the base physical address and size of the registers
  66. interrupt-controller: true
  67. "#interrupt-cells":
  68. const: 1
  69. interrupts:
  70. minItems: 1
  71. maxItems: 32
  72. brcm,int-map-mask:
  73. $ref: /schemas/types.yaml#/definitions/uint32-array
  74. description: >
  75. 32-bits bit mask describing how many and which interrupts are wired to
  76. this 2nd level interrupt controller, and how they match their respective
  77. interrupt parents. Should match exactly the number of interrupts
  78. specified in the 'interrupts' property.
  79. brcm,irq-can-wake:
  80. type: boolean
  81. description: >
  82. If present, this means the L2 controller can be used as a wakeup source
  83. for system suspend/resume.
  84. brcm,int-fwd-mask:
  85. $ref: /schemas/types.yaml#/definitions/uint32-array
  86. maxItems: 1
  87. description: >
  88. if present, a bit mask to configure the interrupts which have a mux gate,
  89. typically UARTs. Setting these bits will make their respective interrupt
  90. outputs bypass this 2nd level interrupt controller completely; it is
  91. completely transparent for the interrupt controller parent. This should
  92. have one 32-bit word per enable/status pair.
  93. additionalProperties: false
  94. required:
  95. - compatible
  96. - reg
  97. - interrupt-controller
  98. - "#interrupt-cells"
  99. - interrupts
  100. examples:
  101. - |
  102. irq0_intc: interrupt-controller@f0406800 {
  103. compatible = "brcm,bcm7120-l2-intc";
  104. interrupt-parent = <&intc>;
  105. #interrupt-cells = <1>;
  106. reg = <0xf0406800 0x8>;
  107. interrupt-controller;
  108. interrupts = <0x0 0x42 0x0>, <0x0 0x40 0x0>;
  109. brcm,int-map-mask = <0xeb8>, <0x140>;
  110. brcm,int-fwd-mask = <0x7>;
  111. };
  112. - |
  113. irq1_intc: interrupt-controller@10000020 {
  114. compatible = "brcm,bcm3380-l2-intc";
  115. reg = <0x10000024 0x4>, <0x1000002c 0x4>,
  116. <0x10000020 0x4>, <0x10000028 0x4>;
  117. interrupt-controller;
  118. #interrupt-cells = <1>;
  119. interrupt-parent = <&cpu_intc>;
  120. interrupts = <2>;
  121. };