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