gpio: nomadik: support mobileye,eyeq5-gpio
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 28 Feb 2024 11:28:22 +0000 (12:28 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 29 Feb 2024 09:36:55 +0000 (10:36 +0100)
commit3c30cc26df0a3fc50b1f3fe4fd3a9b19a1704d95
treeeaa16011ddd97fff53d65788d8473180f274cf54
parent50bc2a4953cceb70f90d37fd513dd1231367aa4d
gpio: nomadik: support mobileye,eyeq5-gpio

We create a custom compatible for the STA2X11 IP block as integrated
into the Mobileye EyeQ5 platform. Its wake and alternate functions have
been disabled, we want to avoid touching those registers.

We both do: (1) early return in functions that do not support the
platform, but with warnings, and (2) avoid calling those functions in
the first place.

We ensure that pinctrl-nomadik is not used with this STA2X11 variant.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20240228-mbly-gpio-v2-24-3ba757474006@bootlin.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-nomadik.c
drivers/pinctrl/nomadik/pinctrl-nomadik.c
include/linux/gpio/gpio-nomadik.h