gic.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. * ARM Generic Interrupt Controller
  2. ARM SMP cores are often associated with a GIC, providing per processor
  3. interrupts (PPI), shared processor interrupts (SPI) and software
  4. generated interrupts (SGI).
  5. Primary GIC is attached directly to the CPU and typically has PPIs and SGIs.
  6. Secondary GICs are cascaded into the upward interrupt controller and do not
  7. have PPIs or SGIs.
  8. Main node required properties:
  9. - compatible : should be one of:
  10. "arm,cortex-a15-gic"
  11. "arm,cortex-a9-gic"
  12. "arm,cortex-a7-gic"
  13. "arm,arm11mp-gic"
  14. - interrupt-controller : Identifies the node as an interrupt controller
  15. - #interrupt-cells : Specifies the number of cells needed to encode an
  16. interrupt source. The type shall be a <u32> and the value shall be 3.
  17. The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
  18. interrupts.
  19. The 2nd cell contains the interrupt number for the interrupt type.
  20. SPI interrupts are in the range [0-987]. PPI interrupts are in the
  21. range [0-15].
  22. The 3rd cell is the flags, encoded as follows:
  23. bits[3:0] trigger type and level flags.
  24. 1 = low-to-high edge triggered
  25. 2 = high-to-low edge triggered
  26. 4 = active high level-sensitive
  27. 8 = active low level-sensitive
  28. bits[15:8] PPI interrupt cpu mask. Each bit corresponds to each of
  29. the 8 possible cpus attached to the GIC. A bit set to '1' indicated
  30. the interrupt is wired to that CPU. Only valid for PPI interrupts.
  31. - reg : Specifies base physical address(s) and size of the GIC registers. The
  32. first region is the GIC distributor register base and size. The 2nd region is
  33. the GIC cpu interface register base and size.
  34. Optional
  35. - interrupts : Interrupt source of the parent interrupt controller on
  36. secondary GICs, or VGIC maintenance interrupt on primary GIC (see
  37. below).
  38. - cpu-offset : per-cpu offset within the distributor and cpu interface
  39. regions, used when the GIC doesn't have banked registers. The offset is
  40. cpu-offset * cpu-nr.
  41. Example:
  42. intc: interrupt-controller@fff11000 {
  43. compatible = "arm,cortex-a9-gic";
  44. #interrupt-cells = <3>;
  45. #address-cells = <1>;
  46. interrupt-controller;
  47. reg = <0xfff11000 0x1000>,
  48. <0xfff10100 0x100>;
  49. };
  50. * GIC virtualization extensions (VGIC)
  51. For ARM cores that support the virtualization extensions, additional
  52. properties must be described (they only exist if the GIC is the
  53. primary interrupt controller).
  54. Required properties:
  55. - reg : Additional regions specifying the base physical address and
  56. size of the VGIC registers. The first additional region is the GIC
  57. virtual interface control register base and size. The 2nd additional
  58. region is the GIC virtual cpu interface register base and size.
  59. - interrupts : VGIC maintenance interrupt.
  60. Example:
  61. interrupt-controller@2c001000 {
  62. compatible = "arm,cortex-a15-gic";
  63. #interrupt-cells = <3>;
  64. interrupt-controller;
  65. reg = <0x2c001000 0x1000>,
  66. <0x2c002000 0x1000>,
  67. <0x2c004000 0x2000>,
  68. <0x2c006000 0x2000>;
  69. interrupts = <1 9 0xf04>;
  70. };