1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/interrupt-controller/arm,gic-v3.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ARM Generic Interrupt Controller, version 3
10 - Marc Zyngier <maz@kernel.org>
13 AArch64 SMP cores are often associated with a GICv3, providing Private
14 Peripheral Interrupts (PPI), Shared Peripheral Interrupts (SPI),
15 Software Generated Interrupts (SGI), and Locality-specific Peripheral
19 - $ref: /schemas/interrupt-controller.yaml#
30 interrupt-controller: true
41 Specifies the number of cells needed to encode an interrupt source.
42 Must be a single cell with a value of at least 3.
43 If the system requires describing PPI affinity, then the value must
46 The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
47 interrupts, 2 for interrupts in the Extended SPI range, 3 for the
48 Extended PPI range. Other values are reserved for future use.
50 The 2nd cell contains the interrupt number for the interrupt type.
51 SPI interrupts are in the range [0-987]. PPI interrupts are in the
52 range [0-15]. Extended SPI interrupts are in the range [0-1023].
53 Extended PPI interrupts are in the range [0-127].
55 The 3rd cell is the flags, encoded as follows:
56 bits[3:0] trigger type and level flags.
60 The 4th cell is a phandle to a node describing a set of CPUs this
61 interrupt is affine to. The interrupt must be a PPI, and the node
62 pointed must be a subnode of the "ppi-partitions" subnode. For
63 interrupt types other than PPI or PPIs that are not partitioned,
64 this cell must be zero. See the "ppi-partitions" node description
67 Cells 5 and beyond are reserved for future use and must have a value
73 Specifies base physical address(s) and size of the GIC
74 registers, in the following order:
75 - GIC Distributor interface (GICD)
76 - GIC Redistributors (GICR), one range per redistributor region
77 - GIC CPU interface (GICC)
78 - GIC Hypervisor interface (GICH)
79 - GIC Virtual CPU interface (GICV)
81 GICC, GICH and GICV are optional, but must be described if the CPUs
82 support them. Examples of such CPUs are ARM's implementations of the
83 ARMv8.0 architecture such as Cortex-A32, A34, A35, A53, A57, A72 and
84 A73 (this list is not exhaustive).
87 maxItems: 4096 # Should be enough?
91 Interrupt source of the VGIC maintenance interrupt.
96 If using padding pages, specifies the stride of consecutive
97 redistributors. Must be a multiple of 64kB.
98 $ref: /schemas/types.yaml#/definitions/uint64
102 "#redistributor-regions":
104 The number of independent contiguous regions occupied by the
105 redistributors. Required if more than one such region is present.
106 $ref: /schemas/types.yaml#/definitions/uint32
111 Present if the GIC redistributors permit programming shareability
112 and cacheability attributes but are connected to a non-coherent
113 downstream interconnect.
117 Only present if the Message Based Interrupt functionality is
118 being exposed by the HW, and the mbi-ranges property present.
122 A list of pairs <intid span>, where "intid" is the first SPI of a range
123 that can be used an MBI, and "span" the size of that range. Multiple
124 ranges can be provided.
125 $ref: /schemas/types.yaml#/definitions/uint32-matrix
132 Address property. Base address of an alias of the GICD region containing
133 only the {SET,CLR}SPI registers to be used if isolation is required,
134 and if supported by the HW.
135 $ref: /schemas/types.yaml#/definitions/uint32-array
142 additionalProperties: false
144 PPI affinity can be expressed as a single "ppi-partitions" node,
145 containing a set of sub-nodes.
147 "^interrupt-partition-[0-9]+$":
149 additionalProperties: false
152 $ref: /schemas/types.yaml#/definitions/phandle-array
156 Should be a list of phandles to CPU nodes (as described in
157 Documentation/devicetree/bindings/arm/cpus.yaml).
175 mediatek,broken-save-restore-fw:
178 Asserts that the firmware on this device has issues saving and restoring
179 GICR registers when the GIC redistributors are powered off.
182 mbi-ranges: [ msi-controller ]
183 msi-controller: [ mbi-ranges ]
191 "^interrupt-controller@[0-9a-f]+$": false
192 # msi-controller is preferred, but allow other names
193 "^(msi-controller|gic-its|interrupt-controller)@[0-9a-f]+$":
196 GICv3 has one or more Interrupt Translation Services (ITS) that are
197 used to route Message Signalled Interrupts (MSI) to the CPUs.
200 const: arm,gic-v3-its
204 Present if the GIC ITS permits programming shareability and
205 cacheability attributes but is connected to a non-coherent
206 downstream interconnect.
212 The single msi-cell is the DeviceID of the device which will generate
218 Specifies the base physical address and size of the ITS registers.
221 socionext,synquacer-pre-its:
223 (u32, u32) tuple describing the untranslated
224 address and size of the pre-ITS window.
225 $ref: /schemas/types.yaml#/definitions/uint32-array
236 additionalProperties: false
238 additionalProperties: false
242 gic: interrupt-controller@2cf00000 {
243 compatible = "arm,gic-v3";
244 #interrupt-cells = <3>;
245 #address-cells = <1>;
248 interrupt-controller;
249 reg = <0x2f000000 0x10000>, // GICD
250 <0x2f100000 0x200000>, // GICR
251 <0x2c000000 0x2000>, // GICC
252 <0x2c010000 0x2000>, // GICH
253 <0x2c020000 0x2000>; // GICV
254 interrupts = <1 9 4>;
257 mbi-ranges = <256 128>;
259 msi-controller@2c200000 {
260 compatible = "arm,gic-v3-its";
263 reg = <0x2c200000 0x20000>;
268 interrupt-controller@2c010000 {
269 compatible = "arm,gic-v3";
270 #interrupt-cells = <4>;
271 #address-cells = <1>;
274 interrupt-controller;
275 redistributor-stride = <0x0 0x40000>; // 256kB stride
276 #redistributor-regions = <2>;
277 reg = <0x2c010000 0x10000>, // GICD
278 <0x2d000000 0x800000>, // GICR 1: CPUs 0-31
279 <0x2e000000 0x800000>, // GICR 2: CPUs 32-63
280 <0x2c040000 0x2000>, // GICC
281 <0x2c060000 0x2000>, // GICH
282 <0x2c080000 0x2000>; // GICV
283 interrupts = <1 9 4 0>;
285 msi-controller@2c200000 {
286 compatible = "arm,gic-v3-its";
289 reg = <0x2c200000 0x20000>;
292 msi-controller@2c400000 {
293 compatible = "arm,gic-v3-its";
296 reg = <0x2c400000 0x20000>;
300 part0: interrupt-partition-0 {
301 affinity = <&cpu0>, <&cpu2>;
304 part1: interrupt-partition-1 {
305 affinity = <&cpu1>, <&cpu3>;
313 interrupts = <1 1 4 &part0>;