0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/interrupt-controller/allwinner,sun6i-a31-r-intc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A31 NMI/Wakeup Interrupt Controller Device Tree Bindings
0008
0009 maintainers:
0010 - Chen-Yu Tsai <wens@csie.org>
0011 - Maxime Ripard <mripard@kernel.org>
0012
0013 allOf:
0014 - $ref: /schemas/interrupt-controller.yaml#
0015
0016 properties:
0017 "#interrupt-cells":
0018 const: 3
0019 description:
0020 The first cell is GIC_SPI (0), the second cell is the IRQ number, and
0021 the third cell is the trigger type as defined in interrupt.txt in this
0022 directory.
0023
0024 compatible:
0025 oneOf:
0026 - const: allwinner,sun6i-a31-r-intc
0027 - items:
0028 - enum:
0029 - allwinner,sun8i-a83t-r-intc
0030 - allwinner,sun8i-h3-r-intc
0031 - allwinner,sun50i-a64-r-intc
0032 - const: allwinner,sun6i-a31-r-intc
0033 - const: allwinner,sun50i-h6-r-intc
0034
0035 reg:
0036 maxItems: 1
0037
0038 interrupts:
0039 maxItems: 1
0040 description:
0041 The GIC interrupt labeled as "External NMI".
0042
0043 interrupt-controller: true
0044
0045 required:
0046 - "#interrupt-cells"
0047 - compatible
0048 - reg
0049 - interrupts
0050 - interrupt-controller
0051
0052 additionalProperties: false
0053
0054 examples:
0055 - |
0056 #include <dt-bindings/interrupt-controller/arm-gic.h>
0057
0058 r_intc: interrupt-controller@1f00c00 {
0059 compatible = "allwinner,sun50i-a64-r-intc",
0060 "allwinner,sun6i-a31-r-intc";
0061 interrupt-controller;
0062 #interrupt-cells = <3>;
0063 reg = <0x01f00c00 0x400>;
0064 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
0065 };
0066
0067 ...