All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: Add docs for EL15203000
@ 2019-06-07 18:40 Oleh Kravchenko
  2019-06-07 20:14 ` Dan Murphy
  0 siblings, 1 reply; 13+ messages in thread
From: Oleh Kravchenko @ 2019-06-07 18:40 UTC (permalink / raw)
  To: devicetree, linux-leds; +Cc: Oleh Kravchenko

Add documentation and example for dt-bindings EL15203000.
LED board (aka RED LED board) from Crane Merchandising Systems.

Signed-off-by: Oleh Kravchenko <oleg@kaa.org.ua>
---
 .../bindings/leds/leds-el15203000.txt         | 53 +++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/leds/leds-el15203000.txt

diff --git a/Documentation/devicetree/bindings/leds/leds-el15203000.txt b/Documentation/devicetree/bindings/leds/leds-el15203000.txt
new file mode 100644
index 000000000000..457fd8d7226f
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-el15203000.txt
@@ -0,0 +1,53 @@
+Crane Merchandising System - el15203000 LED driver
+--------------------------------------------------
+
+This LED Board (aka RED LEDs board) is widely used in coffee vending machines
+produced by Crane Merchandising Systems.
+
+Required properties:
+- compatible : "crane,el15203000"
+- reg :
+	see Documentation/devicetree/bindings/spi/spi-bus.txt
+- spi-max-frequency : (optional)
+	see Documentation/devicetree/bindings/spi/spi-bus.txt
+
+LED sub-node properties:
+- label :
+	see Documentation/devicetree/bindings/leds/common.txt
+- linux,default-trigger : (optional)
+	see Documentation/devicetree/bindings/leds/common.txt
+- max-brightness : (optional)
+	Specify here 2 if LED has special effect. Effects by LED type:
+	- Pipe has leaking
+	- Screen Frame has blinking
+
+Example
+-------
+
+led-controller@0 {
+	compatible = "crane,el15203000";
+	reg = <0>;
+	spi-max-frequency = <50000>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	/* water pipe */
+	pipe@50 {
+		reg = <0x50>;
+		label = "red:pipe";
+		max-brightness = <2>;
+	};
+
+	/* screen frame */
+	screen@53 {
+		reg = <0x53>;
+		label = "red:screen";
+		max-brightness = <2>;
+	};
+
+	/* vending area */
+	vend@56 {
+		reg = <0x56>;
+		label = "red:vend";
+	};
+};
-- 
2.21.0

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

end of thread, other threads:[~2019-07-16 20:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-07 18:40 [PATCH v2 1/2] dt-bindings: Add docs for EL15203000 Oleh Kravchenko
2019-06-07 20:14 ` Dan Murphy
2019-06-07 20:53   ` Oleh Kravchenko
2019-06-07 21:04     ` Dan Murphy
2019-06-07 21:17       ` Oleh Kravchenko
2019-06-07 21:23         ` Jacek Anaszewski
2019-06-07 21:48           ` Oleh Kravchenko
2019-06-07 22:12             ` Oleh Kravchenko
     [not found]               ` <e1fc84a1-75e4-6c56-d2ea-f6ade28087ac@kaa.org.ua>
     [not found]                 ` <e4e0223d-c463-e767-12b2-7e360eac000b@gmail.com>
     [not found]                   ` <38050529-5730-6e88-fe1a-909492711dd0@kaa.org.ua>
     [not found]                     ` <8f658d57-5079-ad76-ce3e-af3d031b4685@gmail.com>
     [not found]                       ` <20190611120156.GA1161@amd>
     [not found]                         ` <9e812391-56e9-2dd5-1f08-435df717b12b@gmail.com>
2019-07-08 22:00                           ` Oleh Kravchenko
2019-07-16 18:41                             ` Jacek Anaszewski
2019-07-16 20:35                               ` Oleh Kravchenko
2019-06-09 12:23             ` Jacek Anaszewski
2019-06-07 21:26         ` Dan Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.