irqchip/stm32-exti: Map interrupts through interrupts-extended
authorAntonio Borneo <antonio.borneo@foss.st.com>
Mon, 15 Apr 2024 13:49:18 +0000 (15:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 22 Apr 2024 22:28:15 +0000 (00:28 +0200)
commit77ec258ffa5c5f8c700fab7a0a78426904d1e6d4
tree7b0539704dbc522d862f4c8fb558399cbf0247d4
parente9c17d91e6980993711eebe0c914fbd31298b94e
irqchip/stm32-exti: Map interrupts through interrupts-extended

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.

Check for the presence of the optional interrupts-extended property and use
it to map EXTI events to the parent's interrupts.

For old device trees without the optional interrupts-extended property, the
driver's behavior is unchanged, thus keeps backward compatibility.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240415134926.1254428-4-antonio.borneo@foss.st.com
drivers/irqchip/irq-stm32-exti.c