brcm,bcm7120-l2-intc.txt 3.2 KB

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