brcm,bcm7120-l2-intc.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Broadcom BCM7120-style Level 2 interrupt controller
  2. This interrupt controller hardware is a second level interrupt controller that
  3. is hooked to a parent interrupt controller: e.g: ARM GIC for ARM-based
  4. platforms. It can be found on BCM7xxx products starting with BCM7120.
  5. Such an interrupt controller has the following hardware design:
  6. - outputs multiple interrupts signals towards its interrupt controller parent
  7. - controls how some of the interrupts will be flowing, whether they will
  8. directly output an interrupt signal towards the interrupt controller parent,
  9. or if they will output an interrupt signal at this 2nd level interrupt
  10. controller, in particular for UARTs
  11. - has one 32-bit enable word and one 32-bit status word
  12. - no atomic set/clear operations
  13. - not all bits within the interrupt controller actually map to an interrupt
  14. The typical hardware layout for this controller is represented below:
  15. 2nd level interrupt line Outputs for the parent controller (e.g: ARM GIC)
  16. 0 -----[ MUX ] ------------|==========> GIC interrupt 75
  17. \-----------\
  18. |
  19. 1 -----[ MUX ] --------)---|==========> GIC interrupt 76
  20. \------------|
  21. |
  22. 2 -----[ MUX ] --------)---|==========> GIC interrupt 77
  23. \------------|
  24. |
  25. 3 ---------------------|
  26. 4 ---------------------|
  27. 5 ---------------------|
  28. 7 ---------------------|---|===========> GIC interrupt 66
  29. 9 ---------------------|
  30. 10 --------------------|
  31. 11 --------------------/
  32. 6 ------------------------\
  33. |===========> GIC interrupt 64
  34. 8 ------------------------/
  35. 12 ........................ X
  36. 13 ........................ X (not connected)
  37. ..
  38. 31 ........................ X
  39. Required properties:
  40. - compatible: should be "brcm,bcm7120-l2-intc"
  41. - reg: specifies the base physical address and size of the registers
  42. - interrupt-controller: identifies the node as an interrupt controller
  43. - #interrupt-cells: specifies the number of cells needed to encode an interrupt
  44. source, should be 1.
  45. - interrupt-parent: specifies the phandle to the parent interrupt controller
  46. this one is cascaded from
  47. - interrupts: specifies the interrupt line(s) in the interrupt-parent controller
  48. node, valid values depend on the type of parent interrupt controller
  49. - brcm,int-map-mask: 32-bits bit mask describing how many and which interrupts
  50. are wired to this 2nd level interrupt controller, and how they match their
  51. respective interrupt parents. Should match exactly the number of interrupts
  52. specified in the 'interrupts' property.
  53. Optional properties:
  54. - brcm,irq-can-wake: if present, this means the L2 controller can be used as a
  55. wakeup source for system suspend/resume.
  56. - brcm,int-fwd-mask: if present, a bit mask to configure the interrupts which
  57. have a mux gate, typically UARTs. Setting these bits will make their
  58. respective interrupt outputs bypass this 2nd level interrupt controller
  59. completely; it is completely transparent for the interrupt controller
  60. parent. This should have one 32-bit word per enable/status pair.
  61. Example:
  62. irq0_intc: interrupt-controller@f0406800 {
  63. compatible = "brcm,bcm7120-l2-intc";
  64. interrupt-parent = <&intc>;
  65. #interrupt-cells = <1>;
  66. reg = <0xf0406800 0x8>;
  67. interrupt-controller;
  68. interrupts = <0x0 0x42 0x0>, <0x0 0x40 0x0>;
  69. brcm,int-map-mask = <0xeb8>, <0x140>;
  70. brcm,int-fwd-mask = <0x7>;
  71. };