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