Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: interrupt-controller: stm32-exti: Add irq mapping to parent

The mapping of EXTI events to its parent interrupt controller is both SoC
and instance dependent.

The current implementation requires adding a new mapping table to the
driver's code and a new compatible for each new EXTI instance.

To avoid that use the interrupts-extended property to list, for each EXTI
event, the associated parent interrupt.

Co-developed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240415134926.1254428-3-antonio.borneo@foss.st.com

authored by

Antonio Borneo and committed by
Thomas Gleixner
e9c17d91 8661327f

+16 -1
+16 -1
Documentation/devicetree/bindings/interrupt-controller/st,stm32-exti.yaml
··· 89 89 reg = <0x5000d000 0x400>; 90 90 }; 91 91 92 + - | 92 93 //Example 2 93 - exti2: interrupt-controller@40013c00 { 94 + #include <dt-bindings/interrupt-controller/arm-gic.h> 95 + exti2: interrupt-controller@5000d000 { 96 + compatible = "st,stm32mp1-exti", "syscon"; 97 + interrupt-controller; 98 + #interrupt-cells = <2>; 99 + reg = <0x5000d000 0x400>; 100 + interrupts-extended = 101 + <&intc GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, 102 + <0>, 103 + <&intc GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; 104 + }; 105 + 106 + - | 107 + //Example 3 108 + exti3: interrupt-controller@40013c00 { 94 109 compatible = "st,stm32-exti"; 95 110 interrupt-controller; 96 111 #interrupt-cells = <2>;