1*ad6b47cdSSamuel Holland# SPDX-License-Identifier: GPL-2.0
2*ad6b47cdSSamuel Holland%YAML 1.2
3*ad6b47cdSSamuel Holland---
4*ad6b47cdSSamuel Holland$id: http://devicetree.org/schemas/interrupt-controller/allwinner,sun6i-a31-r-intc.yaml#
5*ad6b47cdSSamuel Holland$schema: http://devicetree.org/meta-schemas/core.yaml#
6*ad6b47cdSSamuel Holland
7*ad6b47cdSSamuel Hollandtitle: Allwinner A31 NMI/Wakeup Interrupt Controller Device Tree Bindings
8*ad6b47cdSSamuel Holland
9*ad6b47cdSSamuel Hollandmaintainers:
10*ad6b47cdSSamuel Holland  - Chen-Yu Tsai <wens@csie.org>
11*ad6b47cdSSamuel Holland  - Maxime Ripard <mripard@kernel.org>
12*ad6b47cdSSamuel Holland
13*ad6b47cdSSamuel HollandallOf:
14*ad6b47cdSSamuel Holland  - $ref: /schemas/interrupt-controller.yaml#
15*ad6b47cdSSamuel Holland
16*ad6b47cdSSamuel Hollandproperties:
17*ad6b47cdSSamuel Holland  "#interrupt-cells":
18*ad6b47cdSSamuel Holland    const: 3
19*ad6b47cdSSamuel Holland    description:
20*ad6b47cdSSamuel Holland      The first cell is GIC_SPI (0), the second cell is the IRQ number, and
21*ad6b47cdSSamuel Holland      the third cell is the trigger type as defined in interrupt.txt in this
22*ad6b47cdSSamuel Holland      directory.
23*ad6b47cdSSamuel Holland
24*ad6b47cdSSamuel Holland  compatible:
25*ad6b47cdSSamuel Holland    oneOf:
26*ad6b47cdSSamuel Holland      - const: allwinner,sun6i-a31-r-intc
27*ad6b47cdSSamuel Holland      - items:
28*ad6b47cdSSamuel Holland          - enum:
29*ad6b47cdSSamuel Holland              - allwinner,sun8i-a83t-r-intc
30*ad6b47cdSSamuel Holland              - allwinner,sun50i-a64-r-intc
31*ad6b47cdSSamuel Holland          - const: allwinner,sun6i-a31-r-intc
32*ad6b47cdSSamuel Holland      - const: allwinner,sun50i-h6-r-intc
33*ad6b47cdSSamuel Holland
34*ad6b47cdSSamuel Holland  reg:
35*ad6b47cdSSamuel Holland    maxItems: 1
36*ad6b47cdSSamuel Holland
37*ad6b47cdSSamuel Holland  interrupts:
38*ad6b47cdSSamuel Holland    maxItems: 1
39*ad6b47cdSSamuel Holland    description:
40*ad6b47cdSSamuel Holland      The GIC interrupt labeled as "External NMI".
41*ad6b47cdSSamuel Holland
42*ad6b47cdSSamuel Holland  interrupt-controller: true
43*ad6b47cdSSamuel Holland
44*ad6b47cdSSamuel Hollandrequired:
45*ad6b47cdSSamuel Holland  - "#interrupt-cells"
46*ad6b47cdSSamuel Holland  - compatible
47*ad6b47cdSSamuel Holland  - reg
48*ad6b47cdSSamuel Holland  - interrupts
49*ad6b47cdSSamuel Holland  - interrupt-controller
50*ad6b47cdSSamuel Holland
51*ad6b47cdSSamuel HollandadditionalProperties: false
52*ad6b47cdSSamuel Holland
53*ad6b47cdSSamuel Hollandexamples:
54*ad6b47cdSSamuel Holland  - |
55*ad6b47cdSSamuel Holland    #include <dt-bindings/interrupt-controller/arm-gic.h>
56*ad6b47cdSSamuel Holland
57*ad6b47cdSSamuel Holland    r_intc: interrupt-controller@1f00c00 {
58*ad6b47cdSSamuel Holland            compatible = "allwinner,sun50i-a64-r-intc",
59*ad6b47cdSSamuel Holland                         "allwinner,sun6i-a31-r-intc";
60*ad6b47cdSSamuel Holland            interrupt-controller;
61*ad6b47cdSSamuel Holland            #interrupt-cells = <3>;
62*ad6b47cdSSamuel Holland            reg = <0x01f00c00 0x400>;
63*ad6b47cdSSamuel Holland            interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
64*ad6b47cdSSamuel Holland    };
65*ad6b47cdSSamuel Holland
66*ad6b47cdSSamuel Holland...
67