devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5] DT: leds: Improve description of flash LEDs related properties
@ 2015-04-08 14:31 Jacek Anaszewski
  2015-04-08 15:15 ` Sylwester Nawrocki
  0 siblings, 1 reply; 8+ messages in thread
From: Jacek Anaszewski @ 2015-04-08 14:31 UTC (permalink / raw)
  To: linux-leds
  Cc: Jacek Anaszewski, Bryan Wu, Richard Purdie, Pavel Machek,
	Sakari Ailus, Sylwester Nawrocki, devicetree

Properties defining maximum values for LED currents and timeout should
be mandatory to avoid the risk of hardware damage. This patch fixes
the issue.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Bryan Wu <cooloney@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: devicetree@vger.kernel.org
---
 Documentation/devicetree/bindings/leds/common.txt |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt
index 747c538..e478ac6 100644
--- a/Documentation/devicetree/bindings/leds/common.txt
+++ b/Documentation/devicetree/bindings/leds/common.txt
@@ -10,6 +10,17 @@ can influence the way of the LED device initialization, the LED components
 have to be tightly coupled with the LED device binding. They are represented
 by child nodes of the parent LED device binding.
 
+Required properties for child nodes:
+- led-max-microamp : Maximum LED supply current in microamperes
+                     (torch LED for flash devices). Controllers that have no
+                     configurable current can omit this property.
+- flash-max-microamp : Maximum flash LED supply current in microamperes.
+- flash-timeout-us : Timeout in microseconds after which the flash
+                     LED is turned off.
+
+Above properties determine a LED driver IC settings required for safe
+operation. They should be also used as the initial settings for the IC.
+
 Optional properties for child nodes:
 - led-sources : List of device current outputs the LED is connected to. The
 		outputs are identified by the numbers that must be defined
@@ -29,14 +40,6 @@ 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:
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-04-09 23:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-08 14:31 [PATCH v5] DT: leds: Improve description of flash LEDs related properties Jacek Anaszewski
2015-04-08 15:15 ` Sylwester Nawrocki
2015-04-09  7:23   ` Jacek Anaszewski
2015-04-09  8:03     ` Sakari Ailus
2015-04-09 10:03       ` Sylwester Nawrocki
2015-04-09 14:39         ` Jacek Anaszewski
2015-04-09 23:25           ` Sakari Ailus
2015-04-09  9:45     ` Sylwester Nawrocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).