diff options
author | Pavel Machek <pavel@ucw.cz> | 2014-12-22 17:27:29 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2015-01-14 13:40:19 -0500 |
commit | 13b695f3c41bc691028f255eae2f8e1938377565 (patch) | |
tree | 2fac70bb3ce59e19479d51aa97a41ab3f58443d1 | |
parent | 188c901941efd43cbf21e8f4f9e9a276536b989c (diff) |
DT: leds: Add flash LED devices related properties
Addition of a LED Flash class extension entails the need for flash LED
specific device tree properties. The properties being added are:
max-microamp, flash-max-microamp, flash-timeout-microsec.
(cooloney@gmail.com: remove white spaces)
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
-rw-r--r-- | Documentation/devicetree/bindings/leds/common.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt index 2d88816dd550..a2c3f7abe718 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt | |||
@@ -14,6 +14,15 @@ Optional properties for child nodes: | |||
14 | "ide-disk" - LED indicates disk activity | 14 | "ide-disk" - LED indicates disk activity |
15 | "timer" - LED flashes at a fixed, configurable rate | 15 | "timer" - LED flashes at a fixed, configurable rate |
16 | 16 | ||
17 | - max-microamp : maximum intensity in microamperes of the LED | ||
18 | (torch LED for flash devices) | ||
19 | - flash-max-microamp : maximum intensity in microamperes of the | ||
20 | flash LED; it is mandatory if the LED should | ||
21 | support the flash mode | ||
22 | - flash-timeout-us : timeout in microseconds after which the flash | ||
23 | LED is turned off | ||
24 | |||
25 | |||
17 | Examples: | 26 | Examples: |
18 | 27 | ||
19 | system-status { | 28 | system-status { |
@@ -21,3 +30,10 @@ system-status { | |||
21 | linux,default-trigger = "heartbeat"; | 30 | linux,default-trigger = "heartbeat"; |
22 | ... | 31 | ... |
23 | }; | 32 | }; |
33 | |||
34 | camera-flash { | ||
35 | label = "Flash"; | ||
36 | max-microamp = <50000>; | ||
37 | flash-max-microamp = <320000>; | ||
38 | flash-timeout-us = <500000>; | ||
39 | } | ||