[PATCH v2 23/30] gpio: nomadik: handle variadic GPIO count
Linus Walleij
linus.walleij at linaro.org
Thu Feb 29 01:36:38 PST 2024
On Wed, Feb 28, 2024 at 12:28 PM Théo Lebrun <theo.lebrun at bootlin.com> wrote:
> Read the "ngpios" property to determine the number of GPIOs for a bank.
> If not available, fallback to NMK_GPIO_PER_CHIP ie 32 ie the current
> behavior.
>
> The IP block always supports 32 GPIOs, but platforms can expose a lesser
> amount. The Mobileye EyeQ5 is in this case; one bank is 29 GPIOs and
> the other is 23.
>
> Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
> Signed-off-by: Théo Lebrun <theo.lebrun at bootlin.com>
Patch applied!
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list