Back to home page

OSCL-LXR

 
 

    


0001 LEDs connected to tlc59116 or tlc59108
0002 
0003 Required properties
0004 - compatible: should be "ti,tlc59116" or "ti,tlc59108"
0005 - #address-cells: must be 1
0006 - #size-cells: must be 0
0007 - reg: typically 0x68
0008 
0009 Each led is represented as a sub-node of the ti,tlc59116.
0010 See Documentation/devicetree/bindings/leds/common.txt
0011 
0012 LED sub-node properties:
0013 - reg: number of LED line, 0 to 15 or 0 to 7
0014 - label: (optional) name of LED
0015 - linux,default-trigger : (optional)
0016 
0017 Examples:
0018 
0019 tlc59116@68 {
0020         #address-cells = <1>;
0021         #size-cells = <0>;
0022         compatible = "ti,tlc59116";
0023         reg = <0x68>;
0024 
0025         wan@0 {
0026                 label = "wrt1900ac:amber:wan";
0027                 reg = <0x0>;
0028         };
0029 
0030         2g@2 {
0031                 label = "wrt1900ac:white:2g";
0032                 reg = <0x2>;
0033         };
0034 
0035         alive@9 {
0036                 label = "wrt1900ac:green:alive";
0037                 reg = <0x9>;
0038                 linux,default_trigger = "heartbeat";
0039         };
0040 };