Skip to content

leds: pca955x: add GPIO support

Cédric Le Goater linux-devicetree linux-leds 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 of 4 patches 9 repliesApplied

Changes in v3 from the cover letter

- removed 'if (pdata)' tests

2 of 4 patches are in this archive. The cover letter announces 4.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4leds: pca955x: add device tree supportdrivers/leds/leds-pca955x.c+89 -120 replies
3/4leds: pca955x: add GPIO supportdrivers/leds/Kconfig drivers/leds/leds-pca955x.c include/dt-bindings/leds/leds-pca955x.h+147 -178 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPavel Machek
1/4
3/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] leds: pca955x: add GPIO support

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

Thanks,

C.

Changes since v2:

- removed 'if (pdata)' tests

Changes since v1:

- split the patchset in two : DT support and GPIO support
- introduced the use of devm_led_classdev_register()
- replaced the 'compatible' property with 'type'
- removed the 'gpio-base' property

Cédric Le Goater (4):
leds: pca955x: add device tree support
leds: pca955x: use devm_led_classdev_register
leds: pca955x: add GPIO support
dt-bindings leds: add pca955x

 .../devicetree/bindings/leds/leds-pca955x.txt      |  88 +++++++
 drivers/leds/Kconfig                               |  11 +
 drivers/leds/leds-pca955x.c                        | 254 +++++++++++++++++----
 include/dt-bindings/leds/leds-pca955x.h            |  16 ++
 4 files changed, 323 insertions(+), 46 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/leds/leds-pca955x.txt
 create mode 100644 include/dt-bindings/leds/leds-pca955x.h
Signature · 6 lines
2.7.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html