Commit e9c17d91 authored by Antonio Borneo's avatar Antonio Borneo Committed by Thomas Gleixner
Browse files

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: default avatarFabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: default avatarAntonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240415134926.1254428-3-antonio.borneo@foss.st.com
parent 8661327f
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -89,8 +89,23 @@ examples:
        reg = <0x5000d000 0x400>;
    };

  - |
    //Example 2
    exti2: interrupt-controller@40013c00 {
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    exti2: interrupt-controller@5000d000 {
        compatible = "st,stm32mp1-exti", "syscon";
        interrupt-controller;
        #interrupt-cells = <2>;
        reg = <0x5000d000 0x400>;
        interrupts-extended =
            <&intc GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
            <0>,
            <&intc GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
    };

  - |
    //Example 3
    exti3: interrupt-controller@40013c00 {
        compatible = "st,stm32-exti";
        interrupt-controller;
        #interrupt-cells = <2>;