devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add attributes neccessary for LED flashes to devicetree/bindings/leds/common.txt
@ 2014-11-20 13:17 Pavel Machek
  2014-11-20 13:38 ` Jacek Anaszewski
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: Pavel Machek @ 2014-11-20 13:17 UTC (permalink / raw)
  To: j.anaszewski, sakari.ailus, devicetree, linux-leds, linux-doc,
	cooloney, rpurdie, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, rob


Add attributes neccessary for LED flashes to
devicetree/bindings/leds/common.txt .

This will allow me to add device tree support for adp1653 i2c flash
LED driver, and allow Jacek Anaszewski to add support for more LED
drivers..

Signed-off-by: Pavel Machek <pavel@ucw.cz>

diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt
index 2d88816..e9acbbc 100644
--- a/Documentation/devicetree/bindings/leds/common.txt
+++ b/Documentation/devicetree/bindings/leds/common.txt
@@ -14,6 +14,15 @@ 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-microsec : timeout in microseconds after which the flash
+                           LED is turned off
+
+
 Examples:
 
 system-status {
@@ -21,3 +30,10 @@ system-status {
 	linux,default-trigger = "heartbeat";
 	...
 };
+
+camera-flash {
+	label = "Flash";
+	max-microamp = <50000>;
+	flash-max-microamp = <320000>;
+	flash-timeout-microsec = <500000>;
+}

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

end of thread, other threads:[~2014-12-22 11:45 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-20 13:17 [PATCH] Add attributes neccessary for LED flashes to devicetree/bindings/leds/common.txt Pavel Machek
2014-11-20 13:38 ` Jacek Anaszewski
2014-11-20 14:48   ` Jacek Anaszewski
2014-11-20 20:52     ` Pavel Machek
2014-11-21  8:15       ` Jacek Anaszewski
2014-11-24 22:53         ` Pavel Machek
2014-11-26  6:09           ` Bryan Wu
2014-12-03 15:51             ` Pavel Machek
2014-12-03 16:10               ` Sakari Ailus
2014-12-03 18:58             ` Pavel Machek
2014-11-20 19:19   ` Pavel Machek
2014-11-20 15:03 ` Sakari Ailus
2014-11-20 20:53   ` Pavel Machek
2014-11-21  7:39     ` Sakari Ailus
2014-11-26 12:47       ` Pavel Machek
2014-11-21  7:38   ` Jacek Anaszewski
2014-11-21  7:40     ` Sakari Ailus
2014-12-03 16:03     ` Sakari Ailus
2014-11-26  7:57 ` Jacek Anaszewski
2014-12-03 18:57 ` [PATCH w/ acks] DT: leds: Add flash LED devices related properties Pavel Machek
2014-12-03 19:03   ` Bryan Wu
2014-12-20 15:02     ` Pavel Machek
2014-12-22  2:27   ` Rob Herring
2014-12-22 11:45     ` Pavel Machek

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).