]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: mpfs: Add interrupt support
authorConor Dooley <conor.dooley@microchip.com>
Wed, 18 Mar 2026 11:04:33 +0000 (11:04 +0000)
committerConor Dooley <conor.dooley@microchip.com>
Tue, 31 Mar 2026 13:13:14 +0000 (14:13 +0100)
commite57b53f0f36ae0a3b13a101f135027c4aebc1bee
tree384e50b15402222973defa7824e5c6a9a5089e85
parent63b5305ad84d72ff60a7cfcdd70fd97dd45e0b7a
gpio: mpfs: Add interrupt support

Add support for interrupts to the PolarFire SoC GPIO driver. Each GPIO
has an independent interrupt that is wired to an interrupt mux that sits
between the controllers and the PLIC. The SoC has more GPIO lines than
connections from the mux to the PLIC, so some GPIOs must share PLIC
interrupts. The configuration is not static and is set at runtime,
conventionally by the platform's firmware. CoreGPIO, the version
intended for use in the FPGA fabric has two interrupt output ports, one
is IO_NUM bits wide, as is used in the hardened cores, and the other is
a single bit with all lines ORed together.

Acked-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/gpio/Kconfig
drivers/gpio/gpio-mpfs.c