Re: [PATCH 1/2] dt-bindings: gpio: Add CAT9532 GPIO

From: Linus Walleij

Date: Tue Sep 15 2026 - 06:22:07 EST


Hi Alban,

thanks for your patch!

On Tue, Sep 15, 2026 at 11:21 AM Alban Bedel <alban.bedel@xxxxxxxxxx> wrote:

> Add devicetree binding document for CAT9532 LED dimmer as GPIO
> controller.
>
> Signed-off-by: Alban Bedel <alban.bedel@xxxxxxxxxx>
(...)
> + ngpios:
> + minimum: 1
> + maximum: 16

ngpios is only used to lower the number of externally (on the package)
exposed GPIOs in SoC drivers, to avoid enumerating GPIOs not existing
on the physical package.

It has no place in a discrete circuit like this, don't even define this and
hardcode the GPIOs to 16 in the driver.

Yours,
Linus Walleij