[PATCH RFC v2 0/4] gpio: loongson-64bit: add interrupt support for more models
From: Miao Wang via B4 Relay
Date: Thu Oct 01 2026 - 14:21:31 EST
This patch series aims to correctly add interrupt support for GPIO
controllers found on more Loongson CPUs. The GPIO controllers in such
models do not have a complete intgrated interrupt controller, but choose
to delegate interrupt handling to their parent interrupt controller.
This sounds like a heirarchical interrupt setup, but what makes it
more complex is that multiple GPIO lines in these controllers may share
one interrupt line on the parent interrupt controller. The details is
described in the third patch.
Signed-off-by: Miao Wang <shankerwangmiao@xxxxxxxxx>
---
Changes in v2:
- +Cc: linux-kernel, as required by Bartosz
- Shorten the names of struct members to increase code readability
- No other significant changes
- Link to v1: https://lore.kernel.org/r/20260926-loongsongpio-v1-0-71de7ebebb76@xxxxxxxxx
---
Miao Wang (4):
gpio: loongson-64bit: Support for irq controller on 2k2000 and 7a2000
gpio: loongson-64bit: Generalize interrupt controller initialization
gpio: loongson-64bit: Add shared interrupt support
gpio: loongson-64bit: remove gpio_to_irq() handler
drivers/gpio/gpio-loongson-64bit.c | 706 +++++++++++++++++++++++++++++++++++--
1 file changed, 681 insertions(+), 25 deletions(-)
---
base-commit: 481ed5dd3ed7136f627b8ec372ba39f5b2e7d27f
change-id: 20260925-loongsongpio-829824a3d562
Best regards,
--
Miao Wang <shankerwangmiao@xxxxxxxxx>