xref: /linux/Documentation/devicetree/bindings/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml (revision e7e86d7697c6ed1dbbde18d7185c35b6967945ed)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A20 Non-Maskable Interrupt Controller
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: 2
19    description:
20      The first cell is the IRQ number, the second cell the trigger
21      type as defined in interrupt.txt in this directory.
22
23  compatible:
24    oneOf:
25      - const: allwinner,sun6i-a31-sc-nmi
26        deprecated: true
27      - const: allwinner,sun7i-a20-sc-nmi
28      - const: allwinner,sun9i-a80-nmi
29      - const: allwinner,sun55i-a523-nmi
30      - items:
31          - enum:
32              - allwinner,sun8i-v3s-nmi
33              - allwinner,sun50i-a100-nmi
34              - allwinner,sun50i-h616-nmi
35          - const: allwinner,sun9i-a80-nmi
36
37  reg:
38    maxItems: 1
39
40  interrupts:
41    maxItems: 1
42
43  interrupt-controller: true
44
45required:
46  - "#interrupt-cells"
47  - compatible
48  - reg
49  - interrupts
50  - interrupt-controller
51
52unevaluatedProperties: false
53
54examples:
55  - |
56    interrupt-controller@1c00030 {
57        compatible = "allwinner,sun7i-a20-sc-nmi";
58        interrupt-controller;
59        #interrupt-cells = <2>;
60        reg = <0x01c00030 0x0c>;
61        interrupt-parent = <&gic>;
62        interrupts = <0 0 4>;
63    };
64
65...
66