Skip to content

Commit f4dee5d

Browse files
zhangqingmytsbogend
authored andcommitted
dt-bindings: interrupt-controller: Add Loongson-2K1000 LIOINTC
Add liointc-2.0 properties support, so update the maxItems and condition description. Signed-off-by: Qing Zhang <[email protected]> Tested-by: Ming Wang <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent b2c4c39 commit f4dee5d

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

Documentation/devicetree/bindings/interrupt-controller/loongson,liointc.yaml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ maintainers:
1010
- Jiaxun Yang <[email protected]>
1111

1212
description: |
13-
This interrupt controller is found in the Loongson-3 family of chips as the primary
14-
package interrupt controller which can route local I/O interrupt to interrupt lines
15-
of cores.
13+
This interrupt controller is found in the Loongson-3 family of chips and
14+
Loongson-2K1000 chip, as the primary package interrupt controller which
15+
can route local I/O interrupt to interrupt lines of cores.
1616
1717
allOf:
1818
- $ref: /schemas/interrupt-controller.yaml#
@@ -22,9 +22,17 @@ properties:
2222
oneOf:
2323
- const: loongson,liointc-1.0
2424
- const: loongson,liointc-1.0a
25+
- const: loongson,liointc-2.0
2526

2627
reg:
27-
maxItems: 1
28+
minItems: 1
29+
maxItems: 3
30+
31+
reg-names:
32+
items:
33+
- const: main
34+
- const: isr0
35+
- const: isr1
2836

2937
interrupt-controller: true
3038

@@ -69,6 +77,26 @@ required:
6977

7078
unevaluatedProperties: false
7179

80+
if:
81+
properties:
82+
compatible:
83+
contains:
84+
enum:
85+
- loongson,liointc-2.0
86+
87+
then:
88+
properties:
89+
reg:
90+
minItems: 3
91+
92+
required:
93+
- reg-names
94+
95+
else:
96+
properties:
97+
reg:
98+
maxItems: 1
99+
72100
examples:
73101
- |
74102
iointc: interrupt-controller@3ff01400 {

0 commit comments

Comments
 (0)