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