ARM Generic Interrupt Controller, version 5
Schema identifier ($id): "http://devicetree.org/schemas/interrupt-controller/arm,gic-v5.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Pieralisi <lpieralisi@kernel.org>", "Marc Zyngier <maz@kernel.org>"
The GICv5 architecture defines the guidelines to implement GICv5 compliant interrupt controllers for AArch64 systems.
The GICv5 specification can be found at https://developer.arm.com/documentation/aes0070
The GICv5 architecture is composed of multiple components:
- one or more IRS (Interrupt Routing Service)
- zero or more ITS (Interrupt Translation Service)
The architecture defines:
- PE-Private Peripheral Interrupts (PPI)
- Shared Peripheral Interrupts (SPI)
- Logical Peripheral Interrupts (LPI)
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/interrupt-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "arm,gic-v5"
#address-cells — required here #
#size-cells — required here #
ranges — required here #
true — No constraints added by this property rule.
#interrupt-cells — required here #
The 1st cell corresponds to the INTID.Type field in the INTID; 1 for PPI, 3 for SPI. LPI interrupts must not be described in the bindings since they are allocated dynamically by the software component managing them.
The 2nd cell contains the interrupt INTID.ID field.
The 3rd cell is the flags, encoded as follows: bits[3:0] trigger type and level flags.
1 = low-to-high edge triggered
2 = high-to-low edge triggered
4 = active high level-sensitive
8 = active low level-sensitive
Exact value (const): 3
interrupt-controller — required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
The VGIC maintenance interrupt.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "#address-cells", "#size-cells", "ranges", "#interrupt-cells", "interrupt-controller"
Properties matching a name pattern (patternProperties) #
^irs@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
GICv5 has one or more Interrupt Routing Services (IRS) that are responsible for handling IRQ state and routing.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "arm,gic-v5-irs"
reg — required here
Minimum number of items (minItems): 1
Array item rules (items)
Item 1
IRS config frames
Item 2
IRS setlpi frames
reg-names — required here
Describe config and setlpi frames that are present. "ns-" stands for non-secure, "s-" for secure, "realm-" for realm and "el3-" for EL3.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Array item rules (items)
Allowed values (
enum):"ns-config","s-config","realm-config","el3-config","ns-setlpi","s-setlpi","realm-setlpi","el3-setlpi"
#address-cells — not listed as required here
#size-cells — not listed as required here
ranges — not listed as required here
true — No constraints added by this property rule.
dma-noncoherent — not listed as required here
Present if the GIC IRS permits programming shareability and cacheability attributes but is connected to a non-coherent downstream interconnect.
cpus — required here
CPUs managed by the IRS.
arm,iaffids — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16-array
Interrupt AFFinity ID (IAFFID) associated with the CPU whose CPU node phandle is at the same index in the cpus array.
Properties matching a name pattern (patternProperties) #
^its@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
GICv5 has zero or more Interrupt Translation Services (ITS) that are used to route Message Signalled Interrupts (MSI) to the CPUs. Each ITS is connected to an IRS.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
compatible — required here
Exact value (const): "arm,gic-v5-its"
reg — required here
Array item rules (items)
Item 1
ITS config frames
reg-names — required here
Describe config frames that are present. "ns-" stands for non-secure, "s-" for secure, "realm-" for realm and "el3-" for EL3.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Array item rules (items)
Allowed values (
enum):"ns-config","s-config","realm-config","el3-config"
#address-cells — not listed as required here
#size-cells — not listed as required here
ranges — not listed as required here
true — No constraints added by this property rule.
dma-noncoherent — not listed as required here
Present if the GIC ITS permits programming shareability and cacheability attributes but is connected to a non-coherent downstream interconnect.
Properties matching a name pattern (patternProperties)
^msi-controller@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
GICv5 ITS has one or more translate register frames.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Array item rules (items)
Item 1
ITS translate frames
reg-names — required here
Describe translate frames that are present. "ns-" stands for non-secure, "s-" for secure, "realm-" for realm and "el3-" for EL3.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Array item rules (items)
Allowed values (
enum):"ns-translate","s-translate","realm-translate","el3-translate"
#msi-cells — required here
The single msi-cell is the DeviceID of the device which will generate the MSI.
Exact value (const): 1
msi-controller — required here
true — No constraints added by this property rule.
Required in this object (required): "reg", "reg-names", "#msi-cells", "msi-controller"
Required in this object (required): "compatible", "reg", "reg-names"
Required in this object (required): "compatible", "reg", "reg-names", "cpus", "arm,iaffids"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
interrupt-controller {
compatible = "arm,gic-v5";
#interrupt-cells = <3>;
interrupt-controller;
#address-cells = <1>;
#size-cells = <1>;
ranges;
interrupts = <1 25 4>;
irs@2f1a0000 {
compatible = "arm,gic-v5-irs";
reg = <0x2f1a0000 0x10000>; // IRS_CONFIG_FRAME
reg-names = "ns-config";
#address-cells = <1>;
#size-cells = <1>;
ranges;
cpus = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>, <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>;
arm,iaffids = /bits/ 16 <0 1 2 3 4 5 6 7>;
its@2f120000 {
compatible = "arm,gic-v5-its";
reg = <0x2f120000 0x10000>; // ITS_CONFIG_FRAME
reg-names = "ns-config";
#address-cells = <1>;
#size-cells = <1>;
ranges;
msi-controller@2f130000 {
reg = <0x2f130000 0x10000>; // ITS_TRANSLATE_FRAME
reg-names = "ns-translate";
#msi-cells = <1>;
msi-controller;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)