Thread (91 messages) 91 messages, 8 authors, 2015-02-09
STALE4149d REVIEWED: 3 (3M)
Revisions (15)
  1. rfc [diff vs current]
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v4 [diff vs current]
  5. v9 [diff vs current]
  6. v10 current
  7. v13 [diff vs current]
  8. v1 [diff vs current]
  9. v2 [diff vs current]
  10. v4 [diff vs current]
  11. v5 [diff vs current]
  12. v6 [diff vs current]
  13. v8 [diff vs current]
  14. v9 [diff vs current]
  15. v10 [diff vs current]

[PATCH/RFC v10 03/19] DT: leds: Add led-sources property

From: Jacek Anaszewski <hidden>
Date: 2015-01-09 15:23:43
Also in: linux-leds, linux-media, lkml
Subsystem: led subsystem, open firmware and flattened device tree bindings, the rest · Maintainers: Lee Jones, Pavel Machek, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

Add a property for defining the device outputs the LED
represented by the DT child node is connected to.

Signed-off-by: Jacek Anaszewski <redacted>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Bryan Wu <redacted>
Cc: Richard Purdie <redacted>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pawel Moll <redacted>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ian Campbell <redacted>
Cc: Kumar Gala <redacted>
---
 Documentation/devicetree/bindings/leds/common.txt |    5 +++++
 1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt
index a2c3f7a..29295bf 100644
--- a/Documentation/devicetree/bindings/leds/common.txt
+++ b/Documentation/devicetree/bindings/leds/common.txt
@@ -1,6 +1,10 @@
 Common leds properties.
 
 Optional properties for child nodes:
+- led-sources : Array of bits signifying the LED current regulator outputs the
+		LED represented by the child node is connected to (1 - the LED
+		is connected to the output, 0 - the LED isn't connected to the
+		output).
 - label : The label for this LED.  If omitted, the label is
   taken from the node name (excluding the unit address).
 
@@ -33,6 +37,7 @@ system-status {
 
 camera-flash {
 	label = "Flash";
+	led-sources = <1 0>;
 	max-microamp = <50000>;
 	flash-max-microamp = <320000>;
 	flash-timeout-us = <500000>;
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help