gic.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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-a9-gic"
  11. "arm,arm11mp-gic"
  12. - interrupt-controller : Identifies the node as an interrupt controller
  13. - #interrupt-cells : Specifies the number of cells needed to encode an
  14. interrupt source. The type shall be a <u32> and the value shall be 3.
  15. The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
  16. interrupts.
  17. The 2nd cell contains the interrupt number for the interrupt type.
  18. SPI interrupts are in the range [0-987]. PPI interrupts are in the
  19. range [0-15].
  20. The 3rd cell is the flags, encoded as follows:
  21. bits[3:0] trigger type and level flags.
  22. 1 = low-to-high edge triggered
  23. 2 = high-to-low edge triggered
  24. 4 = active high level-sensitive
  25. 8 = active low level-sensitive
  26. bits[15:8] PPI interrupt cpu mask. Each bit corresponds to each of
  27. the 8 possible cpus attached to the GIC. A bit set to '1' indicated
  28. the interrupt is wired to that CPU. Only valid for PPI interrupts.
  29. - reg : Specifies base physical address(s) and size of the GIC registers. The
  30. first region is the GIC distributor register base and size. The 2nd region is
  31. the GIC cpu interface register base and size.
  32. Optional
  33. - interrupts : Interrupt source of the parent interrupt controller. Only
  34. present on secondary GICs.
  35. - cpu-offset : per-cpu offset within the distributor and cpu interface
  36. regions, used when the GIC doesn't have banked registers. The offset is
  37. cpu-offset * cpu-nr.
  38. Example:
  39. intc: interrupt-controller@fff11000 {
  40. compatible = "arm,cortex-a9-gic";
  41. #interrupt-cells = <3>;
  42. #address-cells = <1>;
  43. interrupt-controller;
  44. reg = <0xfff11000 0x1000>,
  45. <0xfff10100 0x100>;
  46. };