summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/interrupt-controller/loongson,ls1x-intc.yaml
blob: c60125fb1cbfb79b554b119e663a280a87c445c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/interrupt-controller/loongson,ls1x-intc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Loongson-1 Interrupt Controller

maintainers:
  - Keguang Zhang <keguang.zhang@gmail.com>

description:
  Loongson-1 interrupt controller is connected to the MIPS core interrupt
  controller, which controls several groups of interrupts.

properties:
  compatible:
    const: loongson,ls1x-intc

  reg:
    maxItems: 1

  interrupt-controller: true

  '#interrupt-cells':
    const: 2

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupt-controller
  - '#interrupt-cells'
  - interrupts

additionalProperties: false

examples:
  - |
    intc0: interrupt-controller@1fd01040 {
        compatible = "loongson,ls1x-intc";
        reg = <0x1fd01040 0x18>;

        interrupt-controller;
        #interrupt-cells = <2>;

        interrupt-parent = <&cpu_intc>;
        interrupts = <2>;
    };