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

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

 



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.

>> +- #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.

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.

Yours,
Linus Walleij



[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