gpio: loongson: add gpio driver support
authorYinbo Zhu <zhuyinbo@loongson.cn>
Thu, 2 Mar 2023 08:17:11 +0000 (16:17 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 6 Mar 2023 09:44:28 +0000 (10:44 +0100)
commit7944d3b7fe86067509751473aa917fdfd662d92c
tree9cc688da2b5e0e11b2ec151c17a358a3b01eee1c
parentdb2056e21c666ec83d5ecbaf973fe5505405e8e0
gpio: loongson: add gpio driver support

The Loongson platforms GPIO controller contains 60 GPIO pins in total,
4 of which are dedicated GPIO pins, and the remaining 56 are reused
with other functions. Each GPIO can set input/output and has the
interrupt capability.

This driver added support for Loongson GPIO controller and support to
use DTS or ACPI to descibe GPIO device resources.

Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn>
Signed-off-by: Hongchen Zhang <zhanghongchen@loongson.cn>
Signed-off-by: Liu Peibao <liupeibao@loongson.cn>
Signed-off-by: Juxin Gao <gaojuxin@loongson.cn>
Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
MAINTAINERS
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-loongson-64bit.c [new file with mode: 0644]