aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/leds
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-09-15 06:50:17 -0400
committerBryan Wu <cooloney@gmail.com>2013-10-22 13:57:34 -0400
commitf65f0a1a9836abbfbe5c9b8fa0452e4d8eb7bf00 (patch)
tree852d6c106ac0a7b0458dff11a798f053f07f8090 /Documentation/devicetree/bindings/leds
parent2491c5c8c99dfcf2519ca73798be60f874a2b16e (diff)
leds: lp55xx: enable setting default trigger
This enables setting a default trigger on an LP55xx channel, either from platform data or device tree. This mechanism is identical to the mechanism for GPIO LEDs and references the common LEDs device tree bindings. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Tested-by: Milo Kim <milo.kim@ti.com> Acked-by: Milo Kim <milo.kim@ti.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/leds')
-rw-r--r--Documentation/devicetree/bindings/leds/leds-lp55xx.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.txt b/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
index a61727f9a6d1..d221e75d90fa 100644
--- a/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
+++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
@@ -17,12 +17,15 @@ Optional properties:
17 2: D1~6 with VOUT, D7~9 with VDD 17 2: D1~6 with VOUT, D7~9 with VDD
18 3: D1~9 are connected to VOUT 18 3: D1~9 are connected to VOUT
19 19
20Alternatively, each child can have specific channel name 20Alternatively, each child can have a specific channel name and trigger:
21- chan-name: Name of each channel name 21- chan-name (optional): name of channel
22- linux,default-trigger (optional): see
23 Documentation/devicetree/bindings/leds/common.txt
22 24
23example 1) LP5521 25example 1) LP5521
243 LED channels, external clock used. Channel names are 'lp5521_pri:channel0', 263 LED channels, external clock used. Channel names are 'lp5521_pri:channel0',
25'lp5521_pri:channel1' and 'lp5521_pri:channel2' 27'lp5521_pri:channel1' and 'lp5521_pri:channel2', with a heartbeat trigger
28on channel 0.
26 29
27lp5521@32 { 30lp5521@32 {
28 compatible = "national,lp5521"; 31 compatible = "national,lp5521";
@@ -33,6 +36,7 @@ lp5521@32 {
33 chan0 { 36 chan0 {
34 led-cur = /bits/ 8 <0x2f>; 37 led-cur = /bits/ 8 <0x2f>;
35 max-cur = /bits/ 8 <0x5f>; 38 max-cur = /bits/ 8 <0x5f>;
39 linux,default-trigger = "heartbeat";
36 }; 40 };
37 41
38 chan1 { 42 chan1 {