devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Support GPIO controller of Loongson-2K0300 SoC
@ 2025-09-04  1:34 Yao Zi
  2025-09-04  1:34 ` [PATCH v3 1/3] dt-bindings: gpio: loongson: Document GPIO controller of LS2K0300 SoC Yao Zi
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Yao Zi @ 2025-09-04  1:34 UTC (permalink / raw)
  To: Yinbo Zhu, Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Huacai Chen, WANG Xuerui,
	Philipp Zabel
  Cc: linux-gpio, devicetree, linux-kernel, loongarch, Mingcong Bai,
	Kexy Biscuit, Yao Zi

This series adds support for Loongson-2K0300's GPIO controller. While
being mostly identical to previous implementation, its interrupt
functionality hasn't been implemented in gpio-loongson-64bit.c. PATCH 2
implements its interrupt support with an IRQCHIP, and the code could be
reused for other Loongson SoCs with similar interrupt functionality like
LS2K1500 and LS2K2000.

Tested on CTCISZ Forever Pi, reading/writing GPIOs works correctly, and
both level and edge interrupts could be triggered.

The devicetree patch depends on series "Support reset controller of
Loongson 2K0300 SoC"[1] for a clean apply. Thanks for your time and
review.

Changed from v2:
- Adjust SoC naming style
- Fold some multi-line calls to dev_err_probe() in the driver into a
  single line
- Collect review tags
- Link to v2: https://lore.kernel.org/all/20250901133804.38433-1-ziyao@disroot.org/
Changed from v1:
- Rebase on top of gpio/for-next, adapt changes that convert
  gpio-loongson-64bit.c to use generic gpiochip.
- Collect review tags
- Link to v1: https://lore.kernel.org/all/20250816035027.11727-2-ziyao@disroot.org/

[1]: https://lore.kernel.org/all/20250816033327.11359-2-ziyao@disroot.org/

Yao Zi (3):
  dt-bindings: gpio: loongson: Document GPIO controller of LS2K0300 SoC
  gpio: loongson-64bit: Add support for Loongson-2K0300 SoC
  LoongArch: dts: Add GPIO controller for Loongson-2K0300

 .../bindings/gpio/loongson,ls-gpio.yaml       |  28 ++-
 arch/loongarch/boot/dts/loongson-2k0300.dtsi  |  20 ++
 drivers/gpio/Kconfig                          |   1 +
 drivers/gpio/gpio-loongson-64bit.c            | 189 +++++++++++++++++-
 4 files changed, 230 insertions(+), 8 deletions(-)

-- 
2.50.1


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

end of thread, other threads:[~2025-09-08  7:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-04  1:34 [PATCH v3 0/3] Support GPIO controller of Loongson-2K0300 SoC Yao Zi
2025-09-04  1:34 ` [PATCH v3 1/3] dt-bindings: gpio: loongson: Document GPIO controller of LS2K0300 SoC Yao Zi
2025-09-04 19:45   ` Linus Walleij
2025-09-04  1:34 ` [PATCH v3 2/3] gpio: loongson-64bit: Add support for Loongson-2K0300 SoC Yao Zi
2025-09-04 19:44   ` Linus Walleij
2025-09-04  1:34 ` [PATCH v3 3/3] LoongArch: dts: Add GPIO controller for Loongson-2K0300 Yao Zi
2025-09-08  7:38 ` (subset) [PATCH v3 0/3] Support GPIO controller of Loongson-2K0300 SoC Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).