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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux