]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: renesas: rzt2h: Add GPIO IRQ chip to handle interrupts
authorCosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Fri, 9 Jan 2026 14:39:10 +0000 (16:39 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 13 Jan 2026 09:21:53 +0000 (10:21 +0100)
commit829dde3369a91ad637ac15629ea8d73f3db2c562
tree0ddbdc646e8ab84770c2dc36148fdf2906466c19
parent8b12070746854a70bd43d5763562561efc1840de
pinctrl: renesas: rzt2h: Add GPIO IRQ chip to handle interrupts

The Renesas RZ/T2H (R9A09G077) and Renesas RZ/N2H (R9A09G087) SoCs have
IRQ-capable pins handled by the ICU, which forwards them to the GIC.

The ICU supports 16 IRQ lines, the pins map to these lines arbitrarily,
and the mapping is not configurable.

Add a GPIO IRQ chip to the pin controller that can be used to configure
these pins as IRQ lines.

The pin controller places the requested pins into IRQ function,
disabling GPIO mode. A hierarchical IRQ domain is used to forward other
functionality to the parent IRQ domain, the ICU. The ICU does level
translation and then forwards other functionality to the GIC.

Wakeup capability is implemented by placing the entire pin controller on
the wakeup path if any pins are requested to be wakeup-capable.

Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260109143910.645628-2-cosmin-gabriel.tanislav.xa@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/renesas/Kconfig
drivers/pinctrl/renesas/pinctrl-rzt2h.c