Re: [PATCH v2] gpio: Add Avionic Design N-bit GPIO expander support

From: Thierry Reding
Date: Thu Aug 02 2012 - 02:19:09 EST


On Tue, Jul 31, 2012 at 05:03:05PM -0500, Rob Herring wrote:
> For nr-gpios, I think it is typically not needed. Generally, you will
> know how many gpio lines the h/w has based on the compatible string. If
> this part really is the same part but different packages with different
> numbers of gpio, then this property makes sense.

That's exactly what I need it for. The controller is synthesized in a
CPLD, so technically the part is always the same, but the configured
logic can implement any number of GPIOs.

Thierry

Attachment: pgp00000.pgp
Description: PGP signature