[PATCH 0/3] Support GPIO controller of Loongson 2K0300 SoC

Yao Zi posted 3 patches 1 month, 2 weeks ago
There is a newer version of this series
.../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            | 191 +++++++++++++++++-
4 files changed, 232 insertions(+), 8 deletions(-)
[PATCH 0/3] Support GPIO controller of Loongson 2K0300 SoC
Posted by Yao Zi 1 month, 2 weeks ago
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
2K1500 and 2K2000.

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.

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

Yao Zi (3):
  dt-bindings: gpio: loongson: Document GPIO controller of 2K0300 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            | 191 +++++++++++++++++-
 4 files changed, 232 insertions(+), 8 deletions(-)

-- 
2.50.1
Re: [PATCH 0/3] Support GPIO controller of Loongson 2K0300 SoC
Posted by Bartosz Golaszewski 1 month ago
On Sat, Aug 16, 2025 at 5:50 AM Yao Zi <ziyao@disroot.org> wrote:
>
> 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
> 2K1500 and 2K2000.
>
> 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.
>
> [1]: https://lore.kernel.org/all/20250816033327.11359-2-ziyao@disroot.org/
>

Hi!

This doesn't apply on top of current gpio/for-next. Can you please
rebase and resend?

Bart
Re: [PATCH 0/3] Support GPIO controller of Loongson 2K0300 SoC
Posted by Yao Zi 1 month ago
On Sat, Aug 30, 2025 at 09:49:46PM +0200, Bartosz Golaszewski wrote:
> On Sat, Aug 16, 2025 at 5:50 AM Yao Zi <ziyao@disroot.org> wrote:
> >
> > 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
> > 2K1500 and 2K2000.
> >
> > 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.
> >
> > [1]: https://lore.kernel.org/all/20250816033327.11359-2-ziyao@disroot.org/
> >
> 
> Hi!
> 
> This doesn't apply on top of current gpio/for-next. Can you please
> rebase and resend?

Sure. I'll send v2 soon.

> Bart

Best regards,
Yao Zi