~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml (Version linux-5.4.285)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/interrupt-c      4 $id: http://devicetree.org/schemas/interrupt-controller/arm,gic-v3.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: ARM Generic Interrupt Controller, versi      7 title: ARM Generic Interrupt Controller, version 3
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Marc Zyngier <maz@kernel.org>               !!  10   - Marc Zyngier <marc.zyngier@arm.com>
 11                                                    11 
 12 description: |                                     12 description: |
 13   AArch64 SMP cores are often associated with      13   AArch64 SMP cores are often associated with a GICv3, providing Private
 14   Peripheral Interrupts (PPI), Shared Peripher     14   Peripheral Interrupts (PPI), Shared Peripheral Interrupts (SPI),
 15   Software Generated Interrupts (SGI), and Loc     15   Software Generated Interrupts (SGI), and Locality-specific Peripheral
 16   Interrupts (LPI).                                16   Interrupts (LPI).
 17                                                    17 
 18 allOf:                                             18 allOf:
 19   - $ref: /schemas/interrupt-controller.yaml#      19   - $ref: /schemas/interrupt-controller.yaml#
 20                                                    20 
 21 properties:                                        21 properties:
 22   compatible:                                      22   compatible:
 23     oneOf:                                         23     oneOf:
 24       - items:                                     24       - items:
 25           - enum:                                  25           - enum:
 26               - qcom,msm8996-gic-v3                26               - qcom,msm8996-gic-v3
 27           - const: arm,gic-v3                      27           - const: arm,gic-v3
 28       - const: arm,gic-v3                          28       - const: arm,gic-v3
 29                                                    29 
 30   interrupt-controller: true                       30   interrupt-controller: true
 31                                                    31 
 32   "#address-cells":                                32   "#address-cells":
 33     enum: [ 0, 1, 2 ]                              33     enum: [ 0, 1, 2 ]
 34   "#size-cells":                                   34   "#size-cells":
 35     enum: [ 1, 2 ]                                 35     enum: [ 1, 2 ]
 36                                                    36 
 37   ranges: true                                     37   ranges: true
 38                                                    38 
 39   "#interrupt-cells":                              39   "#interrupt-cells":
 40     description: |                                 40     description: |
 41       Specifies the number of cells needed to      41       Specifies the number of cells needed to encode an interrupt source.
 42       Must be a single cell with a value of at     42       Must be a single cell with a value of at least 3.
 43       If the system requires describing PPI af     43       If the system requires describing PPI affinity, then the value must
 44       be at least 4.                               44       be at least 4.
 45                                                    45 
 46       The 1st cell is the interrupt type; 0 fo     46       The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
 47       interrupts, 2 for interrupts in the Exte     47       interrupts, 2 for interrupts in the Extended SPI range, 3 for the
 48       Extended PPI range. Other values are res     48       Extended PPI range. Other values are reserved for future use.
 49                                                    49 
 50       The 2nd cell contains the interrupt numb     50       The 2nd cell contains the interrupt number for the interrupt type.
 51       SPI interrupts are in the range [0-987].     51       SPI interrupts are in the range [0-987]. PPI interrupts are in the
 52       range [0-15]. Extended SPI interrupts ar !!  52       range [0-15]. Extented SPI interrupts are in the range [0-1023].
 53       Extended PPI interrupts are in the range     53       Extended PPI interrupts are in the range [0-127].
 54                                                    54 
 55       The 3rd cell is the flags, encoded as fo     55       The 3rd cell is the flags, encoded as follows:
 56       bits[3:0] trigger type and level flags.      56       bits[3:0] trigger type and level flags.
 57         1 = edge triggered                         57         1 = edge triggered
 58         4 = level triggered                        58         4 = level triggered
 59                                                    59 
 60       The 4th cell is a phandle to a node desc     60       The 4th cell is a phandle to a node describing a set of CPUs this
 61       interrupt is affine to. The interrupt mu     61       interrupt is affine to. The interrupt must be a PPI, and the node
 62       pointed must be a subnode of the "ppi-pa     62       pointed must be a subnode of the "ppi-partitions" subnode. For
 63       interrupt types other than PPI or PPIs t !!  63       interrupt types other than PPI or PPIs that are not partitionned,
 64       this cell must be zero. See the "ppi-par     64       this cell must be zero. See the "ppi-partitions" node description
 65       below.                                       65       below.
 66                                                    66 
 67       Cells 5 and beyond are reserved for futu     67       Cells 5 and beyond are reserved for future use and must have a value
 68       of 0 if present.                             68       of 0 if present.
 69     enum: [ 3, 4 ]                                 69     enum: [ 3, 4 ]
 70                                                    70 
 71   reg:                                             71   reg:
 72     description: |                                 72     description: |
 73       Specifies base physical address(s) and s     73       Specifies base physical address(s) and size of the GIC
 74       registers, in the following order:           74       registers, in the following order:
 75       - GIC Distributor interface (GICD)           75       - GIC Distributor interface (GICD)
 76       - GIC Redistributors (GICR), one range p     76       - GIC Redistributors (GICR), one range per redistributor region
 77       - GIC CPU interface (GICC)                   77       - GIC CPU interface (GICC)
 78       - GIC Hypervisor interface (GICH)            78       - GIC Hypervisor interface (GICH)
 79       - GIC Virtual CPU interface (GICV)           79       - GIC Virtual CPU interface (GICV)
 80                                                    80 
 81       GICC, GICH and GICV are optional, but mu !!  81       GICC, GICH and GICV are optional.
 82       support them. Examples of such CPUs are  << 
 83       ARMv8.0 architecture such as Cortex-A32, << 
 84       A73 (this list is not exhaustive).       << 
 85                                                << 
 86     minItems: 2                                    82     minItems: 2
 87     maxItems: 4096   # Should be enough?           83     maxItems: 4096   # Should be enough?
 88                                                    84 
 89   interrupts:                                      85   interrupts:
 90     description:                                   86     description:
 91       Interrupt source of the VGIC maintenance     87       Interrupt source of the VGIC maintenance interrupt.
 92     maxItems: 1                                    88     maxItems: 1
 93                                                    89 
 94   redistributor-stride:                            90   redistributor-stride:
 95     description:                                   91     description:
 96       If using padding pages, specifies the st     92       If using padding pages, specifies the stride of consecutive
 97       redistributors. Must be a multiple of 64     93       redistributors. Must be a multiple of 64kB.
 98     $ref: /schemas/types.yaml#/definitions/uin !!  94     allOf:
 99     multipleOf: 0x10000                        !!  95       - $ref: /schemas/types.yaml#/definitions/uint64
100     exclusiveMinimum: 0                        !!  96       - multipleOf: 0x10000
                                                   >>  97         exclusiveMinimum: 0
101                                                    98 
102   "#redistributor-regions":                        99   "#redistributor-regions":
103     description:                                  100     description:
104       The number of independent contiguous reg    101       The number of independent contiguous regions occupied by the
105       redistributors. Required if more than on    102       redistributors. Required if more than one such region is present.
106     $ref: /schemas/types.yaml#/definitions/uin !! 103     allOf:
107     maximum: 4096                              !! 104       - $ref: /schemas/types.yaml#/definitions/uint32
108                                                !! 105       - maximum: 4096   # Should be enough?
109   dma-noncoherent:                             << 
110     description:                               << 
111       Present if the GIC redistributors permit << 
112       and cacheability attributes but are conn << 
113       downstream interconnect.                 << 
114                                                   106 
115   msi-controller:                                 107   msi-controller:
116     description:                                  108     description:
117       Only present if the Message Based Interr !! 109       Only present if the Message Based Interrupt functionnality is
118       being exposed by the HW, and the mbi-ran    110       being exposed by the HW, and the mbi-ranges property present.
119                                                   111 
120   mbi-ranges:                                     112   mbi-ranges:
121     description:                                  113     description:
122       A list of pairs <intid span>, where "int    114       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     115       that can be used an MBI, and "span" the size of that range. Multiple
124       ranges can be provided.                     116       ranges can be provided.
125     $ref: /schemas/types.yaml#/definitions/uin !! 117     allOf:
126     items:                                     !! 118       - $ref: /schemas/types.yaml#/definitions/uint32-matrix
127       minItems: 2                              !! 119       - items:
128       maxItems: 2                              !! 120           minItems: 2
                                                   >> 121           maxItems: 2
129                                                   122 
130   mbi-alias:                                      123   mbi-alias:
131     description:                                  124     description:
132       Address property. Base address of an ali    125       Address property. Base address of an alias of the GICD region containing
133       only the {SET,CLR}SPI registers to be us    126       only the {SET,CLR}SPI registers to be used if isolation is required,
134       and if supported by the HW.                 127       and if supported by the HW.
135     $ref: /schemas/types.yaml#/definitions/uin !! 128     allOf:
136     items:                                     !! 129       - $ref: /schemas/types.yaml#/definitions/uint32-array
137       minItems: 1                              !! 130       - items:
138       maxItems: 2                              !! 131           minItems: 1
                                                   >> 132           maxItems: 2
139                                                   133 
140   ppi-partitions:                                 134   ppi-partitions:
141     type: object                                  135     type: object
142     additionalProperties: false                << 
143     description:                                  136     description:
144       PPI affinity can be expressed as a singl    137       PPI affinity can be expressed as a single "ppi-partitions" node,
145       containing a set of sub-nodes.              138       containing a set of sub-nodes.
146     patternProperties:                            139     patternProperties:
147       "^interrupt-partition-[0-9]+$":             140       "^interrupt-partition-[0-9]+$":
148         type: object                           << 
149         additionalProperties: false            << 
150         properties:                               141         properties:
151           affinity:                               142           affinity:
152             $ref: /schemas/types.yaml#/definit    143             $ref: /schemas/types.yaml#/definitions/phandle-array
153             items:                             << 
154               maxItems: 1                      << 
155             description:                          144             description:
156               Should be a list of phandles to     145               Should be a list of phandles to CPU nodes (as described in
157               Documentation/devicetree/binding    146               Documentation/devicetree/bindings/arm/cpus.yaml).
158                                                   147 
159         required:                                 148         required:
160           - affinity                              149           - affinity
161                                                   150 
162   clocks:                                      << 
163     maxItems: 1                                << 
164                                                << 
165   clock-names:                                 << 
166     items:                                     << 
167       - const: aclk                            << 
168                                                << 
169   power-domains:                               << 
170     maxItems: 1                                << 
171                                                << 
172   resets:                                      << 
173     maxItems: 1                                << 
174                                                << 
175   mediatek,broken-save-restore-fw:             << 
176     type: boolean                              << 
177     description:                               << 
178       Asserts that the firmware on this device << 
179       GICR registers when the GIC redistributo << 
180                                                << 
181 dependencies:                                     151 dependencies:
182   mbi-ranges: [ msi-controller ]                  152   mbi-ranges: [ msi-controller ]
183   msi-controller: [ mbi-ranges ]                  153   msi-controller: [ mbi-ranges ]
184                                                   154 
185 required:                                         155 required:
186   - compatible                                    156   - compatible
                                                   >> 157   - interrupts
187   - reg                                           158   - reg
188                                                   159 
189 patternProperties:                                160 patternProperties:
190   "^gic-its@": false                              161   "^gic-its@": false
191   "^interrupt-controller@[0-9a-f]+$": false       162   "^interrupt-controller@[0-9a-f]+$": false
192   # msi-controller is preferred, but allow oth    163   # msi-controller is preferred, but allow other names
193   "^(msi-controller|gic-its|interrupt-controll    164   "^(msi-controller|gic-its|interrupt-controller)@[0-9a-f]+$":
194     type: object                                  165     type: object
195     description:                                  166     description:
196       GICv3 has one or more Interrupt Translat    167       GICv3 has one or more Interrupt Translation Services (ITS) that are
197       used to route Message Signalled Interrup    168       used to route Message Signalled Interrupts (MSI) to the CPUs.
198     properties:                                   169     properties:
199       compatible:                                 170       compatible:
200         const: arm,gic-v3-its                     171         const: arm,gic-v3-its
201                                                   172 
202       dma-noncoherent:                         << 
203         description:                           << 
204           Present if the GIC ITS permits progr << 
205           cacheability attributes but is conne << 
206           downstream interconnect.             << 
207                                                << 
208       msi-controller: true                        173       msi-controller: true
209                                                   174 
210       "#msi-cells":                               175       "#msi-cells":
211         description:                              176         description:
212           The single msi-cell is the DeviceID     177           The single msi-cell is the DeviceID of the device which will generate
213           the MSI.                                178           the MSI.
214         const: 1                                  179         const: 1
215                                                   180 
216       reg:                                        181       reg:
217         description:                              182         description:
218           Specifies the base physical address     183           Specifies the base physical address and size of the ITS registers.
219         maxItems: 1                               184         maxItems: 1
220                                                   185 
221       socionext,synquacer-pre-its:                186       socionext,synquacer-pre-its:
222         description:                              187         description:
223           (u32, u32) tuple describing the untr    188           (u32, u32) tuple describing the untranslated
224           address and size of the pre-ITS wind    189           address and size of the pre-ITS window.
225         $ref: /schemas/types.yaml#/definitions !! 190         allOf:
226         items:                                 !! 191           - $ref: /schemas/types.yaml#/definitions/uint32-array
227           minItems: 2                          !! 192           - items:
228           maxItems: 2                          !! 193               minItems: 2
                                                   >> 194               maxItems: 2
229                                                   195 
230     required:                                     196     required:
231       - compatible                                197       - compatible
232       - msi-controller                            198       - msi-controller
233       - "#msi-cells"                              199       - "#msi-cells"
234       - reg                                       200       - reg
235                                                   201 
236     additionalProperties: false                   202     additionalProperties: false
237                                                   203 
238 additionalProperties: false                       204 additionalProperties: false
239                                                   205 
240 examples:                                         206 examples:
241   - |                                             207   - |
242     gic: interrupt-controller@2cf00000 {          208     gic: interrupt-controller@2cf00000 {
243       compatible = "arm,gic-v3";                  209       compatible = "arm,gic-v3";
244       #interrupt-cells = <3>;                     210       #interrupt-cells = <3>;
245       #address-cells = <1>;                       211       #address-cells = <1>;
246       #size-cells = <1>;                          212       #size-cells = <1>;
247       ranges;                                     213       ranges;
248       interrupt-controller;                       214       interrupt-controller;
249       reg = <0x2f000000 0x10000>,  // GICD        215       reg = <0x2f000000 0x10000>,  // GICD
250             <0x2f100000 0x200000>,  // GICR       216             <0x2f100000 0x200000>,  // GICR
251             <0x2c000000 0x2000>,  // GICC         217             <0x2c000000 0x2000>,  // GICC
252             <0x2c010000 0x2000>,  // GICH         218             <0x2c010000 0x2000>,  // GICH
253             <0x2c020000 0x2000>;  // GICV         219             <0x2c020000 0x2000>;  // GICV
254       interrupts = <1 9 4>;                       220       interrupts = <1 9 4>;
255                                                   221 
256       msi-controller;                             222       msi-controller;
257       mbi-ranges = <256 128>;                     223       mbi-ranges = <256 128>;
258                                                   224 
259       msi-controller@2c200000 {                   225       msi-controller@2c200000 {
260         compatible = "arm,gic-v3-its";            226         compatible = "arm,gic-v3-its";
261         msi-controller;                           227         msi-controller;
262         #msi-cells = <1>;                         228         #msi-cells = <1>;
263         reg = <0x2c200000 0x20000>;               229         reg = <0x2c200000 0x20000>;
264       };                                          230       };
265     };                                            231     };
266                                                   232 
267   - |                                          << 
268     interrupt-controller@2c010000 {               233     interrupt-controller@2c010000 {
269       compatible = "arm,gic-v3";                  234       compatible = "arm,gic-v3";
270       #interrupt-cells = <4>;                     235       #interrupt-cells = <4>;
271       #address-cells = <1>;                       236       #address-cells = <1>;
272       #size-cells = <1>;                          237       #size-cells = <1>;
273       ranges;                                     238       ranges;
274       interrupt-controller;                       239       interrupt-controller;
275       redistributor-stride = <0x0 0x40000>;  /    240       redistributor-stride = <0x0 0x40000>;  // 256kB stride
276       #redistributor-regions = <2>;               241       #redistributor-regions = <2>;
277       reg = <0x2c010000 0x10000>,  // GICD        242       reg = <0x2c010000 0x10000>,  // GICD
278             <0x2d000000 0x800000>,  // GICR 1:    243             <0x2d000000 0x800000>,  // GICR 1: CPUs 0-31
279             <0x2e000000 0x800000>,  // GICR 2:    244             <0x2e000000 0x800000>,  // GICR 2: CPUs 32-63
280             <0x2c040000 0x2000>,  // GICC         245             <0x2c040000 0x2000>,  // GICC
281             <0x2c060000 0x2000>,  // GICH         246             <0x2c060000 0x2000>,  // GICH
282             <0x2c080000 0x2000>;  // GICV         247             <0x2c080000 0x2000>;  // GICV
283       interrupts = <1 9 4 0>;                  !! 248       interrupts = <1 9 4>;
284                                                   249 
285       msi-controller@2c200000 {                   250       msi-controller@2c200000 {
286         compatible = "arm,gic-v3-its";            251         compatible = "arm,gic-v3-its";
287         msi-controller;                           252         msi-controller;
288         #msi-cells = <1>;                         253         #msi-cells = <1>;
289         reg = <0x2c200000 0x20000>;               254         reg = <0x2c200000 0x20000>;
290       };                                          255       };
291                                                   256 
292       msi-controller@2c400000 {                   257       msi-controller@2c400000 {
293         compatible = "arm,gic-v3-its";            258         compatible = "arm,gic-v3-its";
294         msi-controller;                           259         msi-controller;
295         #msi-cells = <1>;                         260         #msi-cells = <1>;
296         reg = <0x2c400000 0x20000>;               261         reg = <0x2c400000 0x20000>;
297       };                                          262       };
298                                                   263 
299       ppi-partitions {                            264       ppi-partitions {
300         part0: interrupt-partition-0 {            265         part0: interrupt-partition-0 {
301           affinity = <&cpu0>, <&cpu2>;         !! 266           affinity = <&cpu0 &cpu2>;
302         };                                        267         };
303                                                   268 
304         part1: interrupt-partition-1 {            269         part1: interrupt-partition-1 {
305           affinity = <&cpu1>, <&cpu3>;         !! 270           affinity = <&cpu1 &cpu3>;
306         };                                        271         };
307       };                                          272       };
308     };                                            273     };
309                                                   274 
310                                                   275 
311     device@0 {                                    276     device@0 {
312       reg = <0 4>;                                277       reg = <0 4>;
313       interrupts = <1 1 4 &part0>;                278       interrupts = <1 1 4 &part0>;
314     };                                            279     };
315                                                   280 
316 ...                                               281 ...
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php