1*c66ec88fSEmmanuel VadotCrane Merchandising System - cr0014114 LED driver 2*c66ec88fSEmmanuel Vadot------------------------------------------------- 3*c66ec88fSEmmanuel Vadot 4*c66ec88fSEmmanuel VadotThis LED Board is widely used in vending machines produced 5*c66ec88fSEmmanuel Vadotby Crane Merchandising Systems. 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel VadotRequired properties: 8*c66ec88fSEmmanuel Vadot- compatible: "crane,cr0014114" 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel VadotProperty rules described in Documentation/devicetree/bindings/spi/spi-bus.txt 11*c66ec88fSEmmanuel Vadotapply. In particular, "reg" and "spi-max-frequency" properties must be given. 12*c66ec88fSEmmanuel Vadot 13*c66ec88fSEmmanuel VadotLED sub-node properties: 14*c66ec88fSEmmanuel Vadot- function : 15*c66ec88fSEmmanuel Vadot see Documentation/devicetree/bindings/leds/common.txt 16*c66ec88fSEmmanuel Vadot- color : 17*c66ec88fSEmmanuel Vadot see Documentation/devicetree/bindings/leds/common.txt 18*c66ec88fSEmmanuel Vadot- label : 19*c66ec88fSEmmanuel Vadot see Documentation/devicetree/bindings/leds/common.txt (deprecated) 20*c66ec88fSEmmanuel Vadot- linux,default-trigger : (optional) 21*c66ec88fSEmmanuel Vadot see Documentation/devicetree/bindings/leds/common.txt 22*c66ec88fSEmmanuel Vadot 23*c66ec88fSEmmanuel VadotExample 24*c66ec88fSEmmanuel Vadot------- 25*c66ec88fSEmmanuel Vadot 26*c66ec88fSEmmanuel Vadot#include <dt-bindings/leds/common.h> 27*c66ec88fSEmmanuel Vadot 28*c66ec88fSEmmanuel Vadotled-controller@0 { 29*c66ec88fSEmmanuel Vadot compatible = "crane,cr0014114"; 30*c66ec88fSEmmanuel Vadot reg = <0>; 31*c66ec88fSEmmanuel Vadot spi-max-frequency = <50000>; 32*c66ec88fSEmmanuel Vadot #address-cells = <1>; 33*c66ec88fSEmmanuel Vadot #size-cells = <0>; 34*c66ec88fSEmmanuel Vadot 35*c66ec88fSEmmanuel Vadot led@0 { 36*c66ec88fSEmmanuel Vadot reg = <0>; 37*c66ec88fSEmmanuel Vadot function = "coin"; 38*c66ec88fSEmmanuel Vadot color = <LED_COLOR_ID_RED>; 39*c66ec88fSEmmanuel Vadot }; 40*c66ec88fSEmmanuel Vadot led@1 { 41*c66ec88fSEmmanuel Vadot reg = <1>; 42*c66ec88fSEmmanuel Vadot function = "coin"; 43*c66ec88fSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 44*c66ec88fSEmmanuel Vadot }; 45*c66ec88fSEmmanuel Vadot led@2 { 46*c66ec88fSEmmanuel Vadot reg = <2>; 47*c66ec88fSEmmanuel Vadot function = "coin"; 48*c66ec88fSEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 49*c66ec88fSEmmanuel Vadot }; 50*c66ec88fSEmmanuel Vadot led@3 { 51*c66ec88fSEmmanuel Vadot reg = <3>; 52*c66ec88fSEmmanuel Vadot function = "bill"; 53*c66ec88fSEmmanuel Vadot color = <LED_COLOR_ID_RED>; 54*c66ec88fSEmmanuel Vadot }; 55*c66ec88fSEmmanuel Vadot led@4 { 56*c66ec88fSEmmanuel Vadot reg = <4>; 57*c66ec88fSEmmanuel Vadot function = "bill"; 58*c66ec88fSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 59*c66ec88fSEmmanuel Vadot }; 60*c66ec88fSEmmanuel Vadot led@5 { 61*c66ec88fSEmmanuel Vadot reg = <5>; 62*c66ec88fSEmmanuel Vadot function = "bill"; 63*c66ec88fSEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 64*c66ec88fSEmmanuel Vadot }; 65*c66ec88fSEmmanuel Vadot ... 66*c66ec88fSEmmanuel Vadot}; 67