Skip to content

Commit

Permalink
DT: leds: Add flash LED devices related properties
Browse files Browse the repository at this point in the history
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.

([email protected]: remove white spaces)

Signed-off-by: Pavel Machek <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Acked-by: Jacek Anaszewski <[email protected]>
Acked-by: Rob Herring <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
  • Loading branch information
pavelmachek authored and cooloney committed Jan 14, 2015
1 parent 188c901 commit 13b695f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Documentation/devicetree/bindings/leds/common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,26 @@ Optional properties for child nodes:
"ide-disk" - LED indicates disk activity
"timer" - LED flashes at a fixed, configurable rate

- max-microamp : maximum intensity in microamperes of the LED
(torch LED for flash devices)
- flash-max-microamp : maximum intensity in microamperes of the
flash LED; it is mandatory if the LED should
support the flash mode
- flash-timeout-us : timeout in microseconds after which the flash
LED is turned off


Examples:

system-status {
label = "Status";
linux,default-trigger = "heartbeat";
...
};

camera-flash {
label = "Flash";
max-microamp = <50000>;
flash-max-microamp = <320000>;
flash-timeout-us = <500000>;
}

0 comments on commit 13b695f

Please sign in to comment.