18c2ecf20Sopenharmony_ciCrane Merchandising System - EL15203000 LED driver
28c2ecf20Sopenharmony_ci--------------------------------------------------
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciThis LED Board (aka RED LEDs board) is widely used in
58c2ecf20Sopenharmony_cicoffee vending machines produced by Crane Merchandising Systems.
68c2ecf20Sopenharmony_ciThe board manages 3 LEDs and supports predefined blinking patterns
78c2ecf20Sopenharmony_cifor specific leds.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciVending area LED encoded with symbol 'V' (hex code 0x56).
108c2ecf20Sopenharmony_ciDoesn't have any hardware blinking pattern.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciScreen light tube LED which surrounds vending machine screen and
138c2ecf20Sopenharmony_ciencoded with symbol 'S' (hex code 0x53). Supports blinking breathing pattern.
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciWater Pipe LED encoded with symbol 'P' (hex code 0x50) and
168c2ecf20Sopenharmony_ciactually consists of 5 LEDs that exposed by protocol like one LED.
178c2ecf20Sopenharmony_ciSupports next patterns:
188c2ecf20Sopenharmony_ci- cascade pattern
198c2ecf20Sopenharmony_ci- inversed cascade pattern
208c2ecf20Sopenharmony_ci- bounce pattern
218c2ecf20Sopenharmony_ci- inversed bounce pattern
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciRequired properties:
248c2ecf20Sopenharmony_ci- compatible : "crane,el15203000"
258c2ecf20Sopenharmony_ci- #address-cells : must be 1
268c2ecf20Sopenharmony_ci- #size-cells : must be 0
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciProperty rules described in Documentation/devicetree/bindings/spi/spi-bus.txt
298c2ecf20Sopenharmony_ciapply. In particular, "reg" and "spi-max-frequency" properties must be given.
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciOptional LED sub-node properties:
328c2ecf20Sopenharmony_ci- function:
338c2ecf20Sopenharmony_ci	see Documentation/devicetree/bindings/leds/common.txt
348c2ecf20Sopenharmony_ci- color:
358c2ecf20Sopenharmony_ci	see Documentation/devicetree/bindings/leds/common.txt
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciExample
388c2ecf20Sopenharmony_ci-------
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci#include <dt-bindings/leds/common.h>
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciled-controller@0 {
438c2ecf20Sopenharmony_ci	compatible = "crane,el15203000";
448c2ecf20Sopenharmony_ci	reg = <0>;
458c2ecf20Sopenharmony_ci	spi-max-frequency = <50000>;
468c2ecf20Sopenharmony_ci	#address-cells = <1>;
478c2ecf20Sopenharmony_ci	#size-cells = <0>;
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci	/* water pipe */
508c2ecf20Sopenharmony_ci	led@50 {
518c2ecf20Sopenharmony_ci		reg = <0x50>;
528c2ecf20Sopenharmony_ci		function = "pipe";
538c2ecf20Sopenharmony_ci		color = <LED_COLOR_ID_RED>;
548c2ecf20Sopenharmony_ci	};
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci	/* screen frame */
578c2ecf20Sopenharmony_ci	led@53 {
588c2ecf20Sopenharmony_ci		reg = <0x53>;
598c2ecf20Sopenharmony_ci		function = "screen";
608c2ecf20Sopenharmony_ci		color = <LED_COLOR_ID_RED>;
618c2ecf20Sopenharmony_ci	};
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci	/* vending area */
648c2ecf20Sopenharmony_ci	led@56 {
658c2ecf20Sopenharmony_ci		reg = <0x56>;
668c2ecf20Sopenharmony_ci		function = "vend";
678c2ecf20Sopenharmony_ci		color = <LED_COLOR_ID_RED>;
688c2ecf20Sopenharmony_ci	};
698c2ecf20Sopenharmony_ci};
70