[PATCH 2/5] Documentation: add description of DT binding for the gpio-mvebu driver

Linus Walleij linus.walleij at linaro.org
Sun Sep 2 03:33:28 EDT 2012


On Mon, Aug 27, 2012 at 11:53 PM, Olof Johansson <olof at lixom.net> wrote:
> Hi,
>
> On Sat, Aug 11, 2012 at 03:31:43PM +0200, Thomas Petazzoni wrote:
>> +- gpio-controller: marks the device node as a gpio controller
>> +
>> +- ngpios: number of GPIOs this controller has
>> +
>> +- #gpio-cells: Should be one. It is the pin number.
>
> Most platforms will hit a need to encode polarity of the GPIO, in
> particular on inputs. Having an extra cell for flags is quite useful.

Isn't that surplus in this case since this driver has a proper
pinctrl backend controlling such stuff? I don't really like
pinctrl portions of GPIOs being showeled into the GPIO
actually. Or am I just getting this wrong...?

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list