xref: /freebsd/sys/contrib/device-tree/Bindings/interrupt-controller/sunplus,sp7021-intc.yaml (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1*b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b97ee269SEmmanuel Vadot# Copyright (C) Sunplus Co., Ltd. 2021
3*b97ee269SEmmanuel Vadot%YAML 1.2
4*b97ee269SEmmanuel Vadot---
5*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/interrupt-controller/sunplus,sp7021-intc.yaml#
6*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7*b97ee269SEmmanuel Vadot
8*b97ee269SEmmanuel Vadottitle: Sunplus SP7021 SoC Interrupt Controller
9*b97ee269SEmmanuel Vadot
10*b97ee269SEmmanuel Vadotmaintainers:
11*b97ee269SEmmanuel Vadot  - Qin Jian <qinjian@cqplus1.com>
12*b97ee269SEmmanuel Vadot
13*b97ee269SEmmanuel Vadotproperties:
14*b97ee269SEmmanuel Vadot  compatible:
15*b97ee269SEmmanuel Vadot    items:
16*b97ee269SEmmanuel Vadot      - const: sunplus,sp7021-intc
17*b97ee269SEmmanuel Vadot
18*b97ee269SEmmanuel Vadot  reg:
19*b97ee269SEmmanuel Vadot    maxItems: 2
20*b97ee269SEmmanuel Vadot    description:
21*b97ee269SEmmanuel Vadot      Specifies base physical address(s) and size of the controller regs.
22*b97ee269SEmmanuel Vadot      The 1st region include type/polarity/priority/mask regs.
23*b97ee269SEmmanuel Vadot      The 2nd region include clear/masked_ext0/masked_ext1/group regs.
24*b97ee269SEmmanuel Vadot
25*b97ee269SEmmanuel Vadot  interrupt-controller: true
26*b97ee269SEmmanuel Vadot
27*b97ee269SEmmanuel Vadot  "#interrupt-cells":
28*b97ee269SEmmanuel Vadot    const: 2
29*b97ee269SEmmanuel Vadot    description:
30*b97ee269SEmmanuel Vadot      The first cell is the IRQ number, the second cell is the trigger
31*b97ee269SEmmanuel Vadot      type as defined in interrupt.txt in this directory.
32*b97ee269SEmmanuel Vadot
33*b97ee269SEmmanuel Vadot  interrupts:
34*b97ee269SEmmanuel Vadot    maxItems: 2
35*b97ee269SEmmanuel Vadot    description:
36*b97ee269SEmmanuel Vadot      EXT_INT0 & EXT_INT1, 2 interrupts references to primary interrupt
37*b97ee269SEmmanuel Vadot      controller.
38*b97ee269SEmmanuel Vadot
39*b97ee269SEmmanuel Vadotrequired:
40*b97ee269SEmmanuel Vadot  - compatible
41*b97ee269SEmmanuel Vadot  - reg
42*b97ee269SEmmanuel Vadot  - interrupt-controller
43*b97ee269SEmmanuel Vadot  - "#interrupt-cells"
44*b97ee269SEmmanuel Vadot  - interrupts
45*b97ee269SEmmanuel Vadot
46*b97ee269SEmmanuel VadotadditionalProperties: false
47*b97ee269SEmmanuel Vadot
48*b97ee269SEmmanuel Vadotexamples:
49*b97ee269SEmmanuel Vadot  - |
50*b97ee269SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
51*b97ee269SEmmanuel Vadot
52*b97ee269SEmmanuel Vadot    intc: interrupt-controller@9c000780 {
53*b97ee269SEmmanuel Vadot        compatible = "sunplus,sp7021-intc";
54*b97ee269SEmmanuel Vadot        reg = <0x9c000780 0x80>, <0x9c000a80 0x80>;
55*b97ee269SEmmanuel Vadot        interrupt-controller;
56*b97ee269SEmmanuel Vadot        #interrupt-cells = <2>;
57*b97ee269SEmmanuel Vadot        interrupt-parent = <&gic>;
58*b97ee269SEmmanuel Vadot        interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>, /* EXT_INT0 */
59*b97ee269SEmmanuel Vadot                     <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; /* EXT_INT1 */
60*b97ee269SEmmanuel Vadot    };
61*b97ee269SEmmanuel Vadot
62*b97ee269SEmmanuel Vadot...
63