gpio: rcar: Add R-Car V3U (R8A779A0) support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 8 Jan 2021 10:20:26 +0000 (11:20 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:27 +0000 (11:43 +0100)
commit93ac0b0c68c0cff8e49d2a7c08525824dbb8642e
treeb0f106ca13cc20a8b7311f1f6aedb786a8fd1329
parentecba1eaa7906b0ce864e7eee27ea6cf5d6844e8a
gpio: rcar: Add R-Car V3U (R8A779A0) support

Add support for the GPIO controller block in the R-Car V3U (R8A779A0)
SoC, which is very similar to the block found on other R-Car Gen3 SoCs.
However, this block has a new General Input Enable Register (INEN),
whose reset state is to have all inputs disabled.

Enable input for all available pins in probe and resume, to support the
use of the General Input Register (INDT) for reading pin state at all
times.  This preserves backwards compatibility with other R-Car Gen3
SoCs, as recommended by the Hardware Manual.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-rcar.c