Skip to content

Commit 6c2832c

Browse files
FlyGoatMarc Zyngier
authored andcommitted
dt-bindings: interrupt-controller: Add Loongson HTVEC
Add binding for Loongson-3 HyperTransport Interrupt Vector Controller. Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Jiaxun Yang <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 818e915 commit 6c2832c

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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,htvec.yaml#"
5+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6+
7+
title: Loongson-3 HyperTransport Interrupt Vector Controller
8+
9+
maintainers:
10+
- Jiaxun Yang <[email protected]>
11+
12+
description:
13+
This interrupt controller is found in the Loongson-3 family of chips for
14+
receiving vectorized interrupts from PCH's interrupt controller.
15+
16+
properties:
17+
compatible:
18+
const: loongson,htvec-1.0
19+
20+
reg:
21+
maxItems: 1
22+
23+
interrupts:
24+
minItems: 1
25+
maxItems: 4
26+
description: Four parent interrupts that receive chained interrupts.
27+
28+
interrupt-controller: true
29+
30+
'#interrupt-cells':
31+
const: 1
32+
33+
required:
34+
- compatible
35+
- reg
36+
- interrupts
37+
- interrupt-controller
38+
- '#interrupt-cells'
39+
40+
additionalProperties: false
41+
42+
examples:
43+
- |
44+
#include <dt-bindings/interrupt-controller/irq.h>
45+
htvec: interrupt-controller@fb000080 {
46+
compatible = "loongson,htvec-1.0";
47+
reg = <0xfb000080 0x40>;
48+
interrupt-controller;
49+
#interrupt-cells = <1>;
50+
51+
interrupt-parent = <&liointc>;
52+
interrupts = <24 IRQ_TYPE_LEVEL_HIGH>,
53+
<25 IRQ_TYPE_LEVEL_HIGH>,
54+
<26 IRQ_TYPE_LEVEL_HIGH>,
55+
<27 IRQ_TYPE_LEVEL_HIGH>;
56+
};
57+
...

0 commit comments

Comments
 (0)