arm,gic-v3.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 and must have a value
  21. of 0 if present.
  22. - reg : Specifies base physical address(s) and size of the GIC
  23. registers, in the following order:
  24. - GIC Distributor interface (GICD)
  25. - GIC Redistributors (GICR), one range per redistributor region
  26. - GIC CPU interface (GICC)
  27. - GIC Hypervisor interface (GICH)
  28. - GIC Virtual CPU interface (GICV)
  29. GICC, GICH and GICV are optional.
  30. - interrupts : Interrupt source of the VGIC maintenance interrupt.
  31. Optional
  32. - redistributor-stride : If using padding pages, specifies the stride
  33. of consecutive redistributors. Must be a multiple of 64kB.
  34. - #redistributor-regions: The number of independent contiguous regions
  35. occupied by the redistributors. Required if more than one such
  36. region is present.
  37. Sub-nodes:
  38. GICv3 has one or more Interrupt Translation Services (ITS) that are
  39. used to route Message Signalled Interrupts (MSI) to the CPUs.
  40. These nodes must have the following properties:
  41. - compatible : Should at least contain "arm,gic-v3-its".
  42. - msi-controller : Boolean property. Identifies the node as an MSI controller
  43. - #msi-cells: Must be <1>. The single msi-cell is the DeviceID of the device
  44. which will generate the MSI.
  45. - reg: Specifies the base physical address and size of the ITS
  46. registers.
  47. The main GIC node must contain the appropriate #address-cells,
  48. #size-cells and ranges properties for the reg property of all ITS
  49. nodes.
  50. Examples:
  51. gic: interrupt-controller@2cf00000 {
  52. compatible = "arm,gic-v3";
  53. #interrupt-cells = <3>;
  54. #address-cells = <2>;
  55. #size-cells = <2>;
  56. ranges;
  57. interrupt-controller;
  58. reg = <0x0 0x2f000000 0 0x10000>, // GICD
  59. <0x0 0x2f100000 0 0x200000>, // GICR
  60. <0x0 0x2c000000 0 0x2000>, // GICC
  61. <0x0 0x2c010000 0 0x2000>, // GICH
  62. <0x0 0x2c020000 0 0x2000>; // GICV
  63. interrupts = <1 9 4>;
  64. gic-its@2c200000 {
  65. compatible = "arm,gic-v3-its";
  66. msi-controller;
  67. #msi-cells = <1>;
  68. reg = <0x0 0x2c200000 0 0x200000>;
  69. };
  70. };
  71. gic: interrupt-controller@2c010000 {
  72. compatible = "arm,gic-v3";
  73. #interrupt-cells = <3>;
  74. #address-cells = <2>;
  75. #size-cells = <2>;
  76. ranges;
  77. interrupt-controller;
  78. redistributor-stride = <0x0 0x40000>; // 256kB stride
  79. #redistributor-regions = <2>;
  80. reg = <0x0 0x2c010000 0 0x10000>, // GICD
  81. <0x0 0x2d000000 0 0x800000>, // GICR 1: CPUs 0-31
  82. <0x0 0x2e000000 0 0x800000>; // GICR 2: CPUs 32-63
  83. <0x0 0x2c040000 0 0x2000>, // GICC
  84. <0x0 0x2c060000 0 0x2000>, // GICH
  85. <0x0 0x2c080000 0 0x2000>; // GICV
  86. interrupts = <1 9 4>;
  87. gic-its@2c200000 {
  88. compatible = "arm,gic-v3-its";
  89. msi-controller;
  90. #msi-cells = <1>;
  91. reg = <0x0 0x2c200000 0 0x200000>;
  92. };
  93. gic-its@2c400000 {
  94. compatible = "arm,gic-v3-its";
  95. msi-controller;
  96. #msi-cells = <1>;
  97. reg = <0x0 0x2c400000 0 0x200000>;
  98. };
  99. };