Skip to content

Commit 2d51400

Browse files
erwangofabiobaltieri
authored andcommitted
dts/bindings: interrupt-controller: stm32: Add line properties
Add 2 properties in STM32 external interrupt controller: - num-lines - line-ranges Additionally, make interrupt-names a required property. The properties will help to simplify exti init code in building the exti_irq_table and simplify the isr related bits. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 0f40ddd commit 2d51400

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

dts/bindings/interrupt-controller/st,stm32-exti.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,35 @@ description: STMicroelectronics STM32 family External Interrupt Controller
22

33
compatible: "st,stm32-exti"
44

5-
include: base.yaml
5+
include: [base.yaml, interrupt-controller.yaml]
66

77
properties:
88
reg:
99
required: true
10+
11+
interrupts:
12+
required: true
13+
14+
interrupt-names:
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+
Description of the the input lines range for each interrupt line supported
27+
by the external interrupt controller. For each line a couple of integers is
28+
provided: the number of the first line of the range start and the length
29+
of the range.
30+
As example:
31+
line-ranges = <0 1>, <1 1>, <2 1>, <3 1>,
32+
<4 1>, <5 5>, <10 6>;
33+
Above property provides event-range for 7 lines.
34+
5 first lines contain one element
35+
6th line starts with input line 5 and contains 5 elements (5 to 9)
36+
7th line starts with inupt line 10 and contains 6 elements (10 to 15)

0 commit comments

Comments
 (0)