arm64: dts: add ngpios for vf610 compatible gpio controllers
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 20 May 2025 03:46:14 +0000 (11:46 +0800)
committerShawn Guo <shawnguo@kernel.org>
Thu, 19 Jun 2025 03:49:13 +0000 (11:49 +0800)
commit40567fa4ef149838378497bbcc30cb2a83776460
treea8524544587314ec032baff54abb9dee3219eeed
parentdea4914e48aef3c2a25d24d77009427b876c7a63
arm64: dts: add ngpios for vf610 compatible gpio controllers

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>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8ulp.dtsi
arch/arm64/boot/dts/freescale/imx93.dtsi
arch/arm64/boot/dts/freescale/imx94.dtsi
arch/arm64/boot/dts/freescale/imx95.dtsi