xref: /linux/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-lpc.yaml (revision c0ecb2a9eeaa25832c1367ecc865ab2523b8c3d5)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/interrupt-controller/loongson,pch-lpc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Loongson PCH LPC Controller
8
9maintainers:
10  - Jiaxun Yang <jiaxun.yang@flygoat.com>
11
12description:
13  This interrupt controller is found in the Loongson LS7A family of PCH for
14  accepting interrupts sent by LPC-connected peripherals and signalling PIC
15  via a single interrupt line when interrupts are available.
16
17properties:
18  compatible:
19    const: loongson,ls7a-lpc
20
21  reg:
22    maxItems: 1
23
24  interrupt-controller: true
25
26  interrupts:
27    maxItems: 1
28
29  '#interrupt-cells':
30    const: 2
31
32required:
33  - compatible
34  - reg
35  - interrupt-controller
36  - interrupts
37  - '#interrupt-cells'
38
39additionalProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/interrupt-controller/irq.h>
44    lpc: interrupt-controller@10002000 {
45      compatible = "loongson,ls7a-lpc";
46      reg = <0x10002000 0x400>;
47      interrupt-controller;
48      #interrupt-cells = <2>;
49      interrupt-parent = <&pic>;
50      interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
51    };
52...
53