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