[PATCH linux dev-4.10 0/5] leds: pca955x: add GPIO support
Cédric Le Goater
clg at kaod.org
Fri Jun 9 23:12:24 AEST 2017
Hello,
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 such a support by defining different operation
modes for the pins (See bindings documentation for more details). The
pca955x driver is then extended with a gpio_chip when some of pins are
operating as GPIOs. The default operating mode is to behave as a LED.
The last patch adds the pca9552 bindings on the witherspoon.
I should send to mainline after some review.
Thanks,
Cédric Le Goater (5):
leds: pca955x: add device tree support
leds: pca955x: use devm_led_classdev_register
leds: pca955x: add GPIO support
dt-bindings leds: add pca955x
ARM: dts: aspeed: witherspoon: Add pca9552 device
.../devicetree/bindings/leds/leds-pca955x.txt | 88 +++++++
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 85 +++++++
drivers/leds/Kconfig | 11 +
drivers/leds/leds-pca955x.c | 263 +++++++++++++++++----
include/dt-bindings/leds/leds-pca955x.h | 16 ++
5 files changed, 418 insertions(+), 45 deletions(-)
create mode 100644 Documentation/devicetree/bindings/leds/leds-pca955x.txt
create mode 100644 include/dt-bindings/leds/leds-pca955x.h
--
2.7.4
More information about the openbmc
mailing list