Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] gpio: irq: support describing three-cell interrupts
@ 2025-02-27 11:24 Yixun Lan
  2025-02-27 11:24 ` [PATCH 1/2] irqdomain: support three-cell scheme interrupts Yixun Lan
  2025-02-27 11:25 ` [PATCH 2/2] gpiolib: support parsing gpio three-cell interrupts scheme Yixun Lan
  0 siblings, 2 replies; 10+ messages in thread
From: Yixun Lan @ 2025-02-27 11:24 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Thomas Gleixner
  Cc: Alex Elder, Inochi Amaoto, linux-kernel, linux-gpio, linux-riscv,
	spacemit, Yixun Lan

In this patch [1], the GPIO controller add support for describing
hardware with a three-cell scheme:

    gpios = <&gpio instance offset flags>;

It also result describing interrupts in three-cell as this in DT:

    node {
            interrupt-parent = <&gpio>;
            interrupts = <instance hwirq irqflag>;
    }

This series try to extend describing interrupts with three-cell scheme.
The first patch will parse interrupt irq and flag from last two cells,
the second patch support finding irqdomain with interrupt instance info.

Link: https://lore.kernel.org/all/20250225-gpio-ranges-fourcell-v3-0-860382ba4713@linaro.org [1]
Signed-off-by: Yixun Lan <dlan@gentoo.org>
---
Yixun Lan (2):
      irqdomain: support three-cell scheme interrupts
      gpiolib: support parsing gpio three-cell interrupts scheme

 drivers/gpio/gpiolib.c | 19 +++++++++++++++++--
 kernel/irq/irqdomain.c | 11 +++++++++--
 2 files changed, 26 insertions(+), 4 deletions(-)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250227-04-gpio-irq-threecell-66e1e073c806
prerequisite-change-id: 20250217-gpio-ranges-fourcell-85888ad219da:v3
prerequisite-patch-id: 9d4c8b05cc56d25bfb93f3b06420ba6e93340d31
prerequisite-patch-id: 7949035abd05ec02a9426bb17819d9108e66e0d7

Best regards,
-- 
Yixun Lan


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-02-28 13:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27 11:24 [PATCH 0/2] gpio: irq: support describing three-cell interrupts Yixun Lan
2025-02-27 11:24 ` [PATCH 1/2] irqdomain: support three-cell scheme interrupts Yixun Lan
2025-02-27 16:12   ` Alex Elder
2025-02-27 20:41     ` Yixun Lan
2025-02-28  8:44       ` Linus Walleij
2025-02-28 10:52         ` Yixun Lan
2025-02-28 13:44       ` Thomas Gleixner
2025-02-27 11:25 ` [PATCH 2/2] gpiolib: support parsing gpio three-cell interrupts scheme Yixun Lan
2025-02-28  9:11   ` Linus Walleij
2025-02-28 10:10     ` Yixun Lan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox