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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/interrupt-controller/arm,gic.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.yaml (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml (Version linux-5.13.19)


  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.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 v1 and      7 title: ARM Generic Interrupt Controller v1 and v2
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Marc Zyngier <marc.zyngier@arm.com>             10   - Marc Zyngier <marc.zyngier@arm.com>
 11                                                    11 
 12 description: |+                                    12 description: |+
 13   ARM SMP cores are often associated with a GI     13   ARM SMP cores are often associated with a GIC, providing per processor
 14   interrupts (PPI), shared processor interrupt     14   interrupts (PPI), shared processor interrupts (SPI) and software
 15   generated interrupts (SGI).                      15   generated interrupts (SGI).
 16                                                    16 
 17   Primary GIC is attached directly to the CPU      17   Primary GIC is attached directly to the CPU and typically has PPIs and SGIs.
 18   Secondary GICs are cascaded into the upward      18   Secondary GICs are cascaded into the upward interrupt controller and do not
 19   have PPIs or SGIs.                               19   have PPIs or SGIs.
 20                                                    20 
 21 allOf:                                             21 allOf:
 22   - $ref: /schemas/interrupt-controller.yaml#      22   - $ref: /schemas/interrupt-controller.yaml#
 23                                                    23 
 24 properties:                                        24 properties:
 25   compatible:                                      25   compatible:
 26     oneOf:                                         26     oneOf:
 27       - items:                                     27       - items:
 28           - enum:                                  28           - enum:
 29               - arm,arm11mp-gic                    29               - arm,arm11mp-gic
 30               - arm,cortex-a15-gic                 30               - arm,cortex-a15-gic
 31               - arm,cortex-a7-gic                  31               - arm,cortex-a7-gic
 32               - arm,cortex-a5-gic                  32               - arm,cortex-a5-gic
 33               - arm,cortex-a9-gic                  33               - arm,cortex-a9-gic
 34               - arm,eb11mp-gic                     34               - arm,eb11mp-gic
 35               - arm,gic-400                        35               - arm,gic-400
 36               - arm,pl390                          36               - arm,pl390
 37               - arm,tc11mp-gic                     37               - arm,tc11mp-gic
 38               - qcom,msm-8660-qgic                 38               - qcom,msm-8660-qgic
 39               - qcom,msm-qgic2                     39               - qcom,msm-qgic2
 40                                                    40 
 41       - items:                                     41       - items:
 42           - const: arm,gic-400                     42           - const: arm,gic-400
 43           - enum:                                  43           - enum:
 44               - arm,cortex-a15-gic                 44               - arm,cortex-a15-gic
 45               - arm,cortex-a7-gic                  45               - arm,cortex-a7-gic
 46                                                    46 
 47       - items:                                     47       - items:
 48           - const: arm,arm1176jzf-devchip-gic      48           - const: arm,arm1176jzf-devchip-gic
 49           - const: arm,arm11mp-gic                 49           - const: arm,arm11mp-gic
 50                                                    50 
 51       - items:                                     51       - items:
 52           - const: brcm,brahma-b15-gic             52           - const: brcm,brahma-b15-gic
 53           - const: arm,cortex-a15-gic              53           - const: arm,cortex-a15-gic
 54                                                    54 
 55       - oneOf:                                     55       - oneOf:
 56           - const: nvidia,tegra210-agic            56           - const: nvidia,tegra210-agic
 57           - items:                                 57           - items:
 58               - enum:                              58               - enum:
 59                   - nvidia,tegra186-agic           59                   - nvidia,tegra186-agic
 60                   - nvidia,tegra194-agic           60                   - nvidia,tegra194-agic
 61                   - nvidia,tegra234-agic       << 
 62               - const: nvidia,tegra210-agic        61               - const: nvidia,tegra210-agic
 63                                                    62 
 64   interrupt-controller: true                       63   interrupt-controller: true
 65                                                    64 
 66   "#address-cells":                                65   "#address-cells":
 67     enum: [ 0, 1, 2 ]                          !!  66     enum: [ 0, 1 ]
 68   "#size-cells":                                   67   "#size-cells":
 69     enum: [ 1, 2 ]                             !!  68     const: 1
 70                                                    69 
 71   "#interrupt-cells":                              70   "#interrupt-cells":
 72     const: 3                                       71     const: 3
 73     description: |                                 72     description: |
 74       The 1st cell is the interrupt type; 0 fo     73       The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
 75       interrupts.                                  74       interrupts.
 76                                                    75 
 77       The 2nd cell contains the interrupt numb     76       The 2nd cell contains the interrupt number for the interrupt type.
 78       SPI interrupts are in the range [0-987].     77       SPI interrupts are in the range [0-987].  PPI interrupts are in the
 79       range [0-15].                                78       range [0-15].
 80                                                    79 
 81       The 3rd cell is the flags, encoded as fo     80       The 3rd cell is the flags, encoded as follows:
 82         bits[3:0] trigger type and level flags     81         bits[3:0] trigger type and level flags.
 83           1 = low-to-high edge triggered           82           1 = low-to-high edge triggered
 84           2 = high-to-low edge triggered (inva     83           2 = high-to-low edge triggered (invalid for SPIs)
 85           4 = active high level-sensitive          84           4 = active high level-sensitive
 86           8 = active low level-sensitive (inva     85           8 = active low level-sensitive (invalid for SPIs).
 87         bits[15:8] PPI interrupt cpu mask.  Ea     86         bits[15:8] PPI interrupt cpu mask.  Each bit corresponds to each of
 88         the 8 possible cpus attached to the GI     87         the 8 possible cpus attached to the GIC.  A bit set to '1' indicated
 89         the interrupt is wired to that CPU.  O     88         the interrupt is wired to that CPU.  Only valid for PPI interrupts.
 90         Also note that the configurability of      89         Also note that the configurability of PPI interrupts is IMPLEMENTATION
 91         DEFINED and as such not guaranteed to      90         DEFINED and as such not guaranteed to be present (most SoC available
 92         in 2014 seem to ignore the setting of      91         in 2014 seem to ignore the setting of this flag and use the hardware
 93         default value).                            92         default value).
 94                                                    93 
 95   reg:                                             94   reg:
 96     description: |                                 95     description: |
 97       Specifies base physical address(s) and s     96       Specifies base physical address(s) and size of the GIC registers. The
 98       first region is the GIC distributor regi     97       first region is the GIC distributor register base and size. The 2nd region
 99       is the GIC cpu interface register base a     98       is the GIC cpu interface register base and size.
100                                                    99 
101       For GICv2 with virtualization extensions    100       For GICv2 with virtualization extensions, additional regions are
102       required for specifying the base physica    101       required for specifying the base physical address and size of the VGIC
103       registers. The first additional region i    102       registers. The first additional region is the GIC virtual interface
104       control register base and size. The 2nd     103       control register base and size. The 2nd additional region is the GIC
105       virtual cpu interface register base and     104       virtual cpu interface register base and size.
106     minItems: 2                                   105     minItems: 2
107     maxItems: 4                                   106     maxItems: 4
108                                                   107 
109   ranges: true                                    108   ranges: true
110                                                   109 
111   interrupts:                                     110   interrupts:
112     description: Interrupt source of the paren    111     description: Interrupt source of the parent interrupt controller on
113       secondary GICs, or VGIC maintenance inte    112       secondary GICs, or VGIC maintenance interrupt on primary GIC (see
114       below).                                     113       below).
115     maxItems: 1                                   114     maxItems: 1
116                                                   115 
117   cpu-offset:                                     116   cpu-offset:
118     description: per-cpu offset within the dis    117     description: per-cpu offset within the distributor and cpu interface
119       regions, used when the GIC doesn't have     118       regions, used when the GIC doesn't have banked registers. The offset
120       is cpu-offset * cpu-nr.                     119       is cpu-offset * cpu-nr.
121     $ref: /schemas/types.yaml#/definitions/uin    120     $ref: /schemas/types.yaml#/definitions/uint32
122                                                   121 
123   clocks:                                         122   clocks:
124     minItems: 1                                   123     minItems: 1
125     maxItems: 2                                   124     maxItems: 2
126                                                   125 
127   clock-names:                                    126   clock-names:
128     description: List of names for the GIC clo    127     description: List of names for the GIC clock input(s). Valid clock names
129       depend on the GIC variant.                  128       depend on the GIC variant.
130     oneOf:                                        129     oneOf:
131       - const: ic_clk # for "arm,arm11mp-gic"     130       - const: ic_clk # for "arm,arm11mp-gic"
132       - const: PERIPHCLKEN # for "arm,cortex-a    131       - const: PERIPHCLKEN # for "arm,cortex-a15-gic"
133       - items: # for "arm,cortex-a9-gic"          132       - items: # for "arm,cortex-a9-gic"
134           - const: PERIPHCLK                      133           - const: PERIPHCLK
135           - const: PERIPHCLKEN                    134           - const: PERIPHCLKEN
136       - const: clk  # for "arm,gic-400" and "n !! 135       - const: clk # for "arm,gic-400" and "nvidia,tegra210"
137       - const: gclk # for "arm,pl390"          !! 136       - const: gclk #for "arm,pl390"
138                                                   137 
139   power-domains:                                  138   power-domains:
140     maxItems: 1                                   139     maxItems: 1
141                                                   140 
142   resets:                                         141   resets:
143     maxItems: 1                                   142     maxItems: 1
144                                                   143 
145 required:                                         144 required:
146   - compatible                                    145   - compatible
147   - reg                                           146   - reg
148                                                   147 
149 patternProperties:                                148 patternProperties:
150   "^v2m@[0-9a-f]+$":                              149   "^v2m@[0-9a-f]+$":
151     type: object                                  150     type: object
152     description: |                                151     description: |
153       * GICv2m extension for MSI/MSI-x support    152       * GICv2m extension for MSI/MSI-x support (Optional)
154                                                   153 
155       Certain revisions of GIC-400 supports MS    154       Certain revisions of GIC-400 supports MSI/MSI-x via V2M register frame(s).
156       This is enabled by specifying v2m sub-no    155       This is enabled by specifying v2m sub-node(s).
157                                                   156 
158     properties:                                   157     properties:
159       compatible:                                 158       compatible:
160         const: arm,gic-v2m-frame                  159         const: arm,gic-v2m-frame
161                                                   160 
162       msi-controller: true                        161       msi-controller: true
163                                                   162 
164       reg:                                        163       reg:
165         maxItems: 1                               164         maxItems: 1
166         description: GICv2m MSI interface regi    165         description: GICv2m MSI interface register base and size
167                                                   166 
168       arm,msi-base-spi:                           167       arm,msi-base-spi:
169         description: When the MSI_TYPER regist    168         description: When the MSI_TYPER register contains an incorrect value,
170           this property should contain the SPI    169           this property should contain the SPI base of the MSI frame, overriding
171           the HW value.                           170           the HW value.
172         $ref: /schemas/types.yaml#/definitions    171         $ref: /schemas/types.yaml#/definitions/uint32
173                                                   172 
174       arm,msi-num-spis:                           173       arm,msi-num-spis:
175         description: When the MSI_TYPER regist    174         description: When the MSI_TYPER register contains an incorrect value,
176           this property should contain the num    175           this property should contain the number of SPIs assigned to the
177           frame, overriding the HW value.         176           frame, overriding the HW value.
178         $ref: /schemas/types.yaml#/definitions    177         $ref: /schemas/types.yaml#/definitions/uint32
179                                                   178 
180     required:                                     179     required:
181       - compatible                                180       - compatible
182       - msi-controller                            181       - msi-controller
183       - reg                                       182       - reg
184                                                   183 
185     additionalProperties: false                   184     additionalProperties: false
186                                                   185 
187 additionalProperties: false                       186 additionalProperties: false
188                                                   187 
189 examples:                                         188 examples:
190   - |                                             189   - |
191     // GICv1                                      190     // GICv1
192     intc: interrupt-controller@fff11000 {         191     intc: interrupt-controller@fff11000 {
193       compatible = "arm,cortex-a9-gic";           192       compatible = "arm,cortex-a9-gic";
194       #interrupt-cells = <3>;                     193       #interrupt-cells = <3>;
195       #address-cells = <1>;                       194       #address-cells = <1>;
196       interrupt-controller;                       195       interrupt-controller;
197       reg = <0xfff11000 0x1000>,                  196       reg = <0xfff11000 0x1000>,
198             <0xfff10100 0x100>;                   197             <0xfff10100 0x100>;
199     };                                            198     };
200                                                   199 
201   - |                                             200   - |
202     // GICv2                                      201     // GICv2
203     interrupt-controller@2c001000 {               202     interrupt-controller@2c001000 {
204       compatible = "arm,cortex-a15-gic";          203       compatible = "arm,cortex-a15-gic";
205       #interrupt-cells = <3>;                     204       #interrupt-cells = <3>;
206       interrupt-controller;                       205       interrupt-controller;
207       reg = <0x2c001000 0x1000>,                  206       reg = <0x2c001000 0x1000>,
208             <0x2c002000 0x2000>,                  207             <0x2c002000 0x2000>,
209             <0x2c004000 0x2000>,                  208             <0x2c004000 0x2000>,
210             <0x2c006000 0x2000>;                  209             <0x2c006000 0x2000>;
211       interrupts = <1 9 0xf04>;                   210       interrupts = <1 9 0xf04>;
212     };                                            211     };
213                                                   212 
214   - |                                             213   - |
215     // GICv2m extension for MSI/MSI-x support     214     // GICv2m extension for MSI/MSI-x support
216     interrupt-controller@e1101000 {               215     interrupt-controller@e1101000 {
217       compatible = "arm,gic-400";                 216       compatible = "arm,gic-400";
218       #interrupt-cells = <3>;                     217       #interrupt-cells = <3>;
219       #address-cells = <1>;                       218       #address-cells = <1>;
220       #size-cells = <1>;                          219       #size-cells = <1>;
221       interrupt-controller;                       220       interrupt-controller;
222       interrupts = <1 8 0xf04>;                   221       interrupts = <1 8 0xf04>;
223       ranges = <0 0xe1100000 0x100000>;           222       ranges = <0 0xe1100000 0x100000>;
224       reg = <0xe1110000 0x01000>,                 223       reg = <0xe1110000 0x01000>,
225             <0xe112f000 0x02000>,                 224             <0xe112f000 0x02000>,
226             <0xe1140000 0x10000>,                 225             <0xe1140000 0x10000>,
227             <0xe1160000 0x10000>;                 226             <0xe1160000 0x10000>;
228                                                   227 
229       v2m0: v2m@80000 {                           228       v2m0: v2m@80000 {
230         compatible = "arm,gic-v2m-frame";         229         compatible = "arm,gic-v2m-frame";
231         msi-controller;                           230         msi-controller;
232         reg = <0x80000 0x1000>;                   231         reg = <0x80000 0x1000>;
233       };                                          232       };
234                                                   233 
235       //...                                       234       //...
236                                                   235 
237       v2mN: v2m@90000 {                           236       v2mN: v2m@90000 {
238         compatible = "arm,gic-v2m-frame";         237         compatible = "arm,gic-v2m-frame";
239         msi-controller;                           238         msi-controller;
240         reg = <0x90000 0x1000>;                   239         reg = <0x90000 0x1000>;
241       };                                          240       };
242     };                                            241     };
243 ...                                               242 ...
                                                      

~ [ 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