gic-v3.txt 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. * ARM Generic Interrupt Controller, version 3
  2. AArch64 SMP cores are often associated with a GICv3, providing Private
  3. Peripheral Interrupts (PPI), Shared Peripheral Interrupts (SPI),
  4. Software Generated Interrupts (SGI), and Locality-specific Peripheral
  5. Interrupts (LPI).
  6. Main node required properties:
  7. - compatible : should at least contain "arm,gic-v3".
  8. - interrupt-controller : Identifies the node as an interrupt controller
  9. - #interrupt-cells : Specifies the number of cells needed to encode an
  10. interrupt source. Must be a single cell with a value of at least 3.
  11. The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
  12. interrupts. Other values are reserved for future use.
  13. The 2nd cell contains the interrupt number for the interrupt type.
  14. SPI interrupts are in the range [0-987]. PPI interrupts are in the
  15. range [0-15].
  16. The 3rd cell is the flags, encoded as follows:
  17. bits[3:0] trigger type and level flags.
  18. 1 = edge triggered
  19. 4 = level triggered
  20. Cells 4 and beyond are reserved for future use. When the 1st cell
  21. has a value of 0 or 1, cells 4 and beyond act as padding, and may be
  22. ignored. It is recommended that padding cells have a value of 0.
  23. - reg : Specifies base physical address(s) and size of the GIC
  24. registers, in the following order:
  25. - GIC Distributor interface (GICD)
  26. - GIC Redistributors (GICR), one range per redistributor region
  27. - GIC CPU interface (GICC)
  28. - GIC Hypervisor interface (GICH)
  29. - GIC Virtual CPU interface (GICV)
  30. GICC, GICH and GICV are optional.
  31. - interrupts : Interrupt source of the VGIC maintenance interrupt.
  32. Optional
  33. - redistributor-stride : If using padding pages, specifies the stride
  34. of consecutive redistributors. Must be a multiple of 64kB.
  35. - #redistributor-regions: The number of independent contiguous regions
  36. occupied by the redistributors. Required if more than one such
  37. region is present.
  38. Examples:
  39. gic: interrupt-controller@2cf00000 {
  40. compatible = "arm,gic-v3";
  41. #interrupt-cells = <3>;
  42. interrupt-controller;
  43. reg = <0x0 0x2f000000 0 0x10000>, // GICD
  44. <0x0 0x2f100000 0 0x200000>, // GICR
  45. <0x0 0x2c000000 0 0x2000>, // GICC
  46. <0x0 0x2c010000 0 0x2000>, // GICH
  47. <0x0 0x2c020000 0 0x2000>; // GICV
  48. interrupts = <1 9 4>;
  49. };
  50. gic: interrupt-controller@2c010000 {
  51. compatible = "arm,gic-v3";
  52. #interrupt-cells = <3>;
  53. interrupt-controller;
  54. redistributor-stride = <0x0 0x40000>; // 256kB stride
  55. #redistributor-regions = <2>;
  56. reg = <0x0 0x2c010000 0 0x10000>, // GICD
  57. <0x0 0x2d000000 0 0x800000>, // GICR 1: CPUs 0-31
  58. <0x0 0x2e000000 0 0x800000>; // GICR 2: CPUs 32-63
  59. <0x0 0x2c040000 0 0x2000>, // GICC
  60. <0x0 0x2c060000 0 0x2000>, // GICH
  61. <0x0 0x2c080000 0 0x2000>; // GICV
  62. interrupts = <1 9 4>;
  63. };