]> git.baikalelectronics.ru Git - kernel.git/commit
LEDS: tca6507: add device-tree support for GPIO configuration.
authorNeilBrown <neilb@suse.de>
Fri, 1 Nov 2013 02:41:20 +0000 (19:41 -0700)
committerBryan Wu <cooloney@gmail.com>
Tue, 28 Jan 2014 01:28:46 +0000 (17:28 -0800)
commitfcde27dcae3518bd13567c2f5d4f60d2a71c90a2
treeaab76e123d6cda1cc9b3a484a3bdbf039e639c2c
parent1f6f1c4e31e7b11e3fc7a1874a3096be2ca03e53
LEDS: tca6507: add device-tree support for GPIO configuration.

The 7 lines driven by the TCA6507 can either drive LEDs or act as output-only
GPIOs.

To make this distinction in devicetree we use the "compatible" property.

If the device attached to a line is "compatible" with "gpio", we treat it
like a GPIO.  If it is "compatible" with "led" (or if no "compatible" value
is set) we treat it like an LED.

(cooloney@gmail.com: fix typo in the subject)

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Documentation/devicetree/bindings/leds/tca6507.txt
drivers/leds/leds-tca6507.c