leds: leds-pwm: Add device tree bindings
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 21 Dec 2012 09:44:01 +0000 (01:44 -0800)
committerBryan Wu <cooloney@gmail.com>
Sat, 2 Feb 2013 01:47:05 +0000 (17:47 -0800)
commit08541cbcc7386fa78efb454a92ddbfb1a2859cf9
tree288c9a3b4fcd689cb4551999afa39dbfa2fd0ee2
parent8a66a579083a20172a46e74d175a57621dccae0a
leds: leds-pwm: Add device tree bindings

The DT binding for the pwm-leds devices are similar to the gpio-leds type.
LEDs are represented as sub-nodes of the pwm-leds device.
The code for handling the DT boot is based on the code found in the
leds-gpio driver and adapted to use PWMs instead of GPIOs.
To avoid having custom cleanup code in case of DT boot the newly created
devm_of_pwm_get() API is used to get the correct PWM instance.

For usage see:
Documentation/devicetree/bindings/leds/leds-pwm.txt

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Documentation/devicetree/bindings/leds/leds-pwm.txt [new file with mode: 0644]
drivers/leds/leds-pwm.c