1*c66ec88fSEmmanuel VadotCrane Merchandising System - EL15203000 LED driver
2*c66ec88fSEmmanuel Vadot--------------------------------------------------
3*c66ec88fSEmmanuel Vadot
4*c66ec88fSEmmanuel VadotThis LED Board (aka RED LEDs board) is widely used in
5*c66ec88fSEmmanuel Vadotcoffee vending machines produced by Crane Merchandising Systems.
6*c66ec88fSEmmanuel VadotThe board manages 3 LEDs and supports predefined blinking patterns
7*c66ec88fSEmmanuel Vadotfor specific leds.
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel VadotVending area LED encoded with symbol 'V' (hex code 0x56).
10*c66ec88fSEmmanuel VadotDoesn't have any hardware blinking pattern.
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel VadotScreen light tube LED which surrounds vending machine screen and
13*c66ec88fSEmmanuel Vadotencoded with symbol 'S' (hex code 0x53). Supports blinking breathing pattern.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotWater Pipe LED encoded with symbol 'P' (hex code 0x50) and
16*c66ec88fSEmmanuel Vadotactually consists of 5 LEDs that exposed by protocol like one LED.
17*c66ec88fSEmmanuel VadotSupports next patterns:
18*c66ec88fSEmmanuel Vadot- cascade pattern
19*c66ec88fSEmmanuel Vadot- inversed cascade pattern
20*c66ec88fSEmmanuel Vadot- bounce pattern
21*c66ec88fSEmmanuel Vadot- inversed bounce pattern
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotRequired properties:
24*c66ec88fSEmmanuel Vadot- compatible : "crane,el15203000"
25*c66ec88fSEmmanuel Vadot- #address-cells : must be 1
26*c66ec88fSEmmanuel Vadot- #size-cells : must be 0
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel VadotProperty rules described in Documentation/devicetree/bindings/spi/spi-bus.txt
29*c66ec88fSEmmanuel Vadotapply. In particular, "reg" and "spi-max-frequency" properties must be given.
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel VadotOptional LED sub-node properties:
32*c66ec88fSEmmanuel Vadot- function:
33*c66ec88fSEmmanuel Vadot	see Documentation/devicetree/bindings/leds/common.txt
34*c66ec88fSEmmanuel Vadot- color:
35*c66ec88fSEmmanuel Vadot	see Documentation/devicetree/bindings/leds/common.txt
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel VadotExample
38*c66ec88fSEmmanuel Vadot-------
39*c66ec88fSEmmanuel Vadot
40*c66ec88fSEmmanuel Vadot#include <dt-bindings/leds/common.h>
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel Vadotled-controller@0 {
43*c66ec88fSEmmanuel Vadot	compatible = "crane,el15203000";
44*c66ec88fSEmmanuel Vadot	reg = <0>;
45*c66ec88fSEmmanuel Vadot	spi-max-frequency = <50000>;
46*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
47*c66ec88fSEmmanuel Vadot	#size-cells = <0>;
48*c66ec88fSEmmanuel Vadot
49*c66ec88fSEmmanuel Vadot	/* water pipe */
50*c66ec88fSEmmanuel Vadot	led@50 {
51*c66ec88fSEmmanuel Vadot		reg = <0x50>;
52*c66ec88fSEmmanuel Vadot		function = "pipe";
53*c66ec88fSEmmanuel Vadot		color = <LED_COLOR_ID_RED>;
54*c66ec88fSEmmanuel Vadot	};
55*c66ec88fSEmmanuel Vadot
56*c66ec88fSEmmanuel Vadot	/* screen frame */
57*c66ec88fSEmmanuel Vadot	led@53 {
58*c66ec88fSEmmanuel Vadot		reg = <0x53>;
59*c66ec88fSEmmanuel Vadot		function = "screen";
60*c66ec88fSEmmanuel Vadot		color = <LED_COLOR_ID_RED>;
61*c66ec88fSEmmanuel Vadot	};
62*c66ec88fSEmmanuel Vadot
63*c66ec88fSEmmanuel Vadot	/* vending area */
64*c66ec88fSEmmanuel Vadot	led@56 {
65*c66ec88fSEmmanuel Vadot		reg = <0x56>;
66*c66ec88fSEmmanuel Vadot		function = "vend";
67*c66ec88fSEmmanuel Vadot		color = <LED_COLOR_ID_RED>;
68*c66ec88fSEmmanuel Vadot	};
69*c66ec88fSEmmanuel Vadot};
70