[PATCH] ARM: dts: add ngpios for vf610 compatible gpio controllers
Linus Walleij
linus.walleij at linaro.org
Tue May 20 14:53:30 PDT 2025
Hi Haibo,
On Fri, May 16, 2025 at 12:57 PM Haibo Chen <haibo.chen at nxp.com> wrote:
> After commit da5dd31efd24 ("gpio: vf610: Switch to gpio-mmio"), vf610
> gpio driver no more use the static number 32 for gc->ngpio, user has a
> chance to config it through device tree for each port.
>
> And some gpio controllers did have less pads. So add 'ngpios' here,
> this can save some memory when request bitmap, and also show user
> more accurate information when use gpio tools.
>
> Besides, some gpio controllers have hole in the gpio ranges, so use
> 'gpio-reserved-ranges' to cover that, then the gpioinfo tool show the
> correct result.
>
> Signed-off-by: Haibo Chen <haibo.chen at nxp.com>
the patch looks (very) good, but it seems the .yaml DT bindings need
to be updated with ngpios as well.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list