1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/interrupt-controller/sophgo,sg2042-msi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Sophgo SG2042 MSI Controller
8
9maintainers:
10  - Chen Wang <unicorn_wang@outlook.com>
11
12description:
13  This interrupt controller is in Sophgo SG2042 for transforming interrupts from
14  PCIe MSI to PLIC interrupts.
15
16allOf:
17  - $ref: /schemas/interrupt-controller/msi-controller.yaml#
18
19properties:
20  compatible:
21    const: sophgo,sg2042-msi
22
23  reg:
24    items:
25      - description: clear register
26      - description: msi doorbell address
27
28  reg-names:
29    items:
30      - const: clr
31      - const: doorbell
32
33  msi-controller: true
34
35  msi-ranges:
36    maxItems: 1
37
38  "#msi-cells":
39    const: 0
40
41required:
42  - compatible
43  - reg
44  - reg-names
45  - msi-controller
46  - msi-ranges
47  - "#msi-cells"
48
49unevaluatedProperties: false
50
51examples:
52  - |
53    #include <dt-bindings/interrupt-controller/irq.h>
54    msi-controller@30000000 {
55      compatible = "sophgo,sg2042-msi";
56      reg = <0x30000000 0x4>, <0x30000008 0x4>;
57      reg-names = "clr", "doorbell";
58      msi-controller;
59      #msi-cells = <0>;
60      msi-ranges = <&plic 64 IRQ_TYPE_LEVEL_HIGH 32>;
61    };
62