pinctrl: pinctrl-loongson2: add pinctrl driver support
authorzhanghongchen <zhanghongchen@loongson.cn>
Mon, 14 Nov 2022 02:49:41 +0000 (10:49 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Nov 2022 09:24:08 +0000 (10:24 +0100)
commitf73f88acbc18a679def4c16eb8648cc279995075
tree71ee410a81267a3a7e6e171cb4476b57ce7f2929
parentda67eff50ceff2f33c284aac35648851b9c9c8cf
pinctrl: pinctrl-loongson2: add pinctrl driver support

The Loongson-2 SoC has a few pins that can be used as GPIOs or take
multiple other functions. Add a driver for the pinmuxing.

There is currently no support for GPIO pin pull-up and pull-down.

Signed-off-by: zhanghongchen <zhanghongchen@loongson.cn>
Co-developed-by: Yinbo Zhu <zhuyinbo@loongson.cn>
Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
Link: https://lore.kernel.org/r/20221114024942.8111-1-zhuyinbo@loongson.cn
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Kconfig
drivers/pinctrl/Makefile
drivers/pinctrl/pinctrl-loongson2.c [new file with mode: 0644]