Thread (15 messages) 15 messages, 6 authors, 2025-06-19

Re: [PATCH v3 3/3] ARM64: dts: add ngpios for vf610 compatible gpio controllers

From: Stefan Wahren <wahrenst@gmx.net>
Date: 2025-05-21 08:44:58
Also in: imx, linux-devicetree, linux-gpio, lkml

Am 20.05.25 um 05:46 schrieb Haibo Chen:
After commit da5dd31efd24 ("gpio: vf610: Switch to gpio-mmio"),
the vf610 GPIO driver no longer uses the static number 32 for
gc->ngpio. This allows users to configure the number of GPIOs
per 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.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>

Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help