pinctrl: rockchip: Add RV1126 pinctrl support
authorJagan Teki <jagan@edgeble.ai>
Thu, 18 Aug 2022 12:41:20 +0000 (18:11 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 22 Aug 2022 07:51:08 +0000 (09:51 +0200)
commitfd4ea48688c662593eb64ddf44d4a17173661672
tree1baae228f091a704c03a17e762ed985b7ccdd475
parent2dce502761a2dec7dc84c03872fba5c7af110290
pinctrl: rockchip: Add RV1126 pinctrl support

RV1126 has five GPIOs groups - GPIO0 in PD_MMU and GPIO1-4
in PD_BUS.

In GPIO0, up to Lower C group GPIO0_C[3:0] is part of PMU
but rest of the groups from there are part of GRF.

Added pinctrl support for RV1126 and the pull, drv and schmitt
calculations are inferred from [1] authored by Jianqun Xu.

[1] https://github.com/rockchip-linux/kernel/blob/develop-4.19/drivers/pinctrl/pinctrl-rockchip.c

Cc: linux-gpio@vger.kernel.org
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Jagan Teki <jagan@edgeble.ai>
Link: https://lore.kernel.org/r/20220818124132.125304-8-jagan@edgeble.ai
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c
drivers/pinctrl/pinctrl-rockchip.h