Skip to content

Commit 2c23c07

Browse files
AaronDotMarc Zyngier
authored andcommitted
dt-bindings: interrupt-controller: Add Loongson EIOINTC
Add Loongson Extended I/O Interrupt controller binding with DT schema format using json-schema. Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/4369959615eda101e612c450b8974d76ce7e8821.1683279769.git.zhoubinbin@loongson.cn
1 parent fb07b8f commit 2c23c07

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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,eiointc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Loongson Extended I/O Interrupt Controller
8+
9+
maintainers:
10+
- Binbin Zhou <zhoubinbin@loongson.cn>
11+
12+
description: |
13+
This interrupt controller is found on the Loongson-3 family chips and
14+
Loongson-2K series chips and is used to distribute interrupts directly to
15+
individual cores without forwarding them through the HT's interrupt line.
16+
17+
allOf:
18+
- $ref: /schemas/interrupt-controller.yaml#
19+
20+
properties:
21+
compatible:
22+
enum:
23+
- loongson,ls2k0500-eiointc
24+
- loongson,ls2k2000-eiointc
25+
26+
reg:
27+
maxItems: 1
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
interrupt-controller: true
33+
34+
'#interrupt-cells':
35+
const: 1
36+
37+
required:
38+
- compatible
39+
- reg
40+
- interrupts
41+
- interrupt-controller
42+
- '#interrupt-cells'
43+
44+
unevaluatedProperties: false
45+
46+
examples:
47+
- |
48+
eiointc: interrupt-controller@1fe11600 {
49+
compatible = "loongson,ls2k0500-eiointc";
50+
reg = <0x1fe10000 0x10000>;
51+
52+
interrupt-controller;
53+
#interrupt-cells = <1>;
54+
55+
interrupt-parent = <&cpuintc>;
56+
interrupts = <3>;
57+
};
58+
59+
...

0 commit comments

Comments
 (0)