Skip to content

Commit a41d042

Browse files
unicornxKAGA-KOKO
authored andcommitted
dt-bindings: interrupt-controller: Add Sophgo SG2042 MSI
Add binding for Sophgo SG2042 MSI controller. Signed-off-by: Chen Wang <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/all/44de02977624be334ba6328acfdbb2a375f2071f.1740535748.git.unicorn_wang@outlook.com
1 parent b956c9d commit a41d042

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
7+
title: Sophgo SG2042 MSI Controller
8+
9+
maintainers:
10+
- Chen Wang <[email protected]>
11+
12+
description:
13+
This interrupt controller is in Sophgo SG2042 for transforming interrupts from
14+
PCIe MSI to PLIC interrupts.
15+
16+
allOf:
17+
- $ref: /schemas/interrupt-controller/msi-controller.yaml#
18+
19+
properties:
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+
41+
required:
42+
- compatible
43+
- reg
44+
- reg-names
45+
- msi-controller
46+
- msi-ranges
47+
- "#msi-cells"
48+
49+
unevaluatedProperties: false
50+
51+
examples:
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+
};

0 commit comments

Comments
 (0)