Re: [PATCH v2 0/4] leds: pca955x: add GPIO support

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

 



On 08/02/2017 01:33 PM, Pavel Machek wrote:
> Hi!
> 
>> The PCA955x family of chips are I2C LED blinkers whose pins not used
>> to control LEDs can be used as general purpose I/Os (GPIOs).
>>
>> The following adds support for device tree and Open Firmware to be
>> able do define different operation modes for each pin. See bindings
>> documentation for more details. The pca955x driver is then extended
>> with a gpio_chip when pins are operating in GPIO mode.
>>
>> The driver follows the scheme of the leds-pca9532 driver which behaves
>> quite similarly.
> 
> Is there reason not to treat pca955x chip as a GPIO extender, and then
> use leds-gpio on top?

I would say mostly because there is already a leds-pca955x driver and
that the primary nature of the chip is being a LED blinker. It also 
supports different blinking rates.

If all pins are defined as GPIOs, the device then behaves as a GPIO 
extender on which we can use leds-gpio. It might be a bit awkward
that way but it should work.

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