1# Copyright (c) 2025 Michael Hope
2# SPDX-License-Identifier: Apache-2.0
3
4description: WCH CH32V003/20x/30x External Interrupt and Event Controller (EXTI)
5
6compatible: "wch,exti"
7
8include: [base.yaml, interrupt-controller.yaml]
9
10properties:
11  reg:
12    required: true
13
14  interrupts:
15    required: true
16
17  num-lines:
18    type: int
19    required: true
20    description: Number of lines supported by the interrupt controller.
21
22  line-ranges:
23    type: array
24    required: true
25    description: |
26      Describes how the input lines are grouped into ranges. Each range
27      consists of a (starting line, number of lines) pair and map to
28      a single interrupt.
29
30      For example:
31             line-ranges = <0 1>, <1 1>, <2 1>, <3 1>,
32                           <4 1>, <5 5>, <10 6>;
33
34      defines seven ranges where the first five contain one line, the
35      sixth starts with line 5 and contains five elements (5 to 9), and
36      the last starts with line 10 and contains six elements (10 to 15).
37