0001 Crane Merchandising System - EL15203000 LED driver
0002 --------------------------------------------------
0003
0004 This LED Board (aka RED LEDs board) is widely used in
0005 coffee vending machines produced by Crane Merchandising Systems.
0006 The board manages 3 LEDs and supports predefined blinking patterns
0007 for specific leds.
0008
0009 Vending area LED encoded with symbol 'V' (hex code 0x56).
0010 Doesn't have any hardware blinking pattern.
0011
0012 Screen light tube LED which surrounds vending machine screen and
0013 encoded with symbol 'S' (hex code 0x53). Supports blinking breathing pattern.
0014
0015 Water Pipe LED encoded with symbol 'P' (hex code 0x50) and
0016 actually consists of 5 LEDs that exposed by protocol like one LED.
0017 Supports next patterns:
0018 - cascade pattern
0019 - inversed cascade pattern
0020 - bounce pattern
0021 - inversed bounce pattern
0022
0023 Required properties:
0024 - compatible : "crane,el15203000"
0025 - #address-cells : must be 1
0026 - #size-cells : must be 0
0027
0028 Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt
0029 apply. In particular, "reg" and "spi-max-frequency" properties must be given.
0030
0031 Optional LED sub-node properties:
0032 - function:
0033 see Documentation/devicetree/bindings/leds/common.txt
0034 - color:
0035 see Documentation/devicetree/bindings/leds/common.txt
0036
0037 Example
0038 -------
0039
0040 #include <dt-bindings/leds/common.h>
0041
0042 led-controller@0 {
0043 compatible = "crane,el15203000";
0044 reg = <0>;
0045 spi-max-frequency = <50000>;
0046 #address-cells = <1>;
0047 #size-cells = <0>;
0048
0049 /* water pipe */
0050 led@50 {
0051 reg = <0x50>;
0052 function = "pipe";
0053 color = <LED_COLOR_ID_RED>;
0054 };
0055
0056 /* screen frame */
0057 led@53 {
0058 reg = <0x53>;
0059 function = "screen";
0060 color = <LED_COLOR_ID_RED>;
0061 };
0062
0063 /* vending area */
0064 led@56 {
0065 reg = <0x56>;
0066 function = "vend";
0067 color = <LED_COLOR_ID_RED>;
0068 };
0069 };