]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: renesas: rzg2l: Fix configuring the GPIO pins as interrupts
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 2 Jan 2023 22:18:11 +0000 (22:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:17 +0000 (09:33 +0100)
commita86a1ed7496a7e7c902e81a6a1f15b1808356290
tree36efbadebfeba464e5d2e3186f1374843c52173c
parentca983c9dce12d7ec81e0c9aaed20e26a2b0d4e0c
pinctrl: renesas: rzg2l: Fix configuring the GPIO pins as interrupts

[ Upstream commit 51bdcb8130e9d376b93975ea6a890c14991b76c7 ]

On the RZ/G2UL SoC we have less number of pins compared to RZ/G2L and also
the pin configs are completely different. This patch makes sure we use the
appropriate pin configs for each SoC (which is passed as part of the OF
data) while configuring the GPIO pin as interrupts instead of using
rzg2l_gpio_configs[] for all the SoCs.

Fixes: 7bbf6b1a3c67 ("pinctrl: renesas: rzg2l: Add RZ/G2UL support")
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230102221815.273719-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/renesas/pinctrl-rzg2l.c