xref: /linux/Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.yaml (revision bf373e4c786bfe989e637195252698f45b157a68)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright 2025 Max Filippov <jcmvbkbc@gmail.com>
3
4%YAML 1.2
5---
6$id: http://devicetree.org/schemas/interrupt-controller/cdns,xtensa-pic.yaml#
7$schema: http://devicetree.org/meta-schemas/core.yaml#
8
9title: Xtensa Interrupt Controllers
10
11maintainers:
12  - Max Filippov <jcmvbkbc@gmail.com>
13
14description:
15  Xtensa Interrupt Distributor and Programmable Interrupt Controller (MX) and
16  Xtensa built-in Programmable Interrupt Controller (PIC)
17
18properties:
19  compatible:
20    enum:
21      - cdns,xtensa-mx
22      - cdns,xtensa-pic
23
24  '#interrupt-cells':
25    enum: [ 1, 2 ]
26    description:
27      Number of cells to define the interrupts. When 1, the first cell is the
28      internal IRQ number; when 2, the second cell specifies internal (0) or
29      external (1).
30
31  interrupt-controller: true
32
33required:
34  - compatible
35  - '#interrupt-cells'
36  - interrupt-controller
37
38additionalProperties: false
39
40examples:
41  - |
42    interrupt-controller {
43        compatible = "cdns,xtensa-pic";
44        /* one cell: internal irq number,
45         * two cells: second cell == 0: internal irq number
46         *            second cell == 1: external irq number
47         */
48        #interrupt-cells = <2>;
49        interrupt-controller;
50    };
51