Re: [PATCH] leds: pca955x: add GPIO support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/23/2017 10:18 AM, Linus Walleij wrote:
> On Thu, May 11, 2017 at 10:23 PM, Jacek Anaszewski
> <jacek.anaszewski@xxxxxxxxx> wrote:
> 
>>> +Optional properties:
>>> +- gpio-controller: allows pins to be used as GPIOs.
> 
> Are these output-only? Then write something about that.

no. input is also supported.

>>> +- #gpio-cells: if present, must not be 0.
> 
> Must be present and must be <2>
> 
>>> +- gpio-base : base number of the pins used as GPIOs. If there are more
>>> +              than one, they should be contiguous. See 'type' property
>>> +              below.
> 
> NACK. Not in my life.

yes, indeed. this is useless. 
 
> Provide -1 in the Linux driver and use the ioctl() from userspace
> to look up your gpios. Add .names array to the gpiochip if necessary,
> define line names in the device tree for the board.
> 
> Consult tools/gpio/* for the modern way of using GPIOs.

OK. I wasn't aware of these.

Thanks,

C. 



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux