]> git.karo-electronics.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/leds/leds-sn3218.txt
Merge remote-tracking branch 'leds/for-next'
[karo-tx-linux.git] / Documentation / devicetree / bindings / leds / leds-sn3218.txt
1 * Si-En Technology - SN3218 18-Channel LED Driver
2
3 Required properties:
4 - compatible :
5         "si-en,sn3218"
6 - address-cells : must be 1
7 - size-cells : must be 0
8 - reg : I2C slave address, typically 0x54
9
10 There must be at least 1 LED which is represented as a sub-node
11 of the sn3218 device.
12
13 LED sub-node properties:
14 - label : (optional) see Documentation/devicetree/bindings/leds/common.txt
15 - reg : number of LED line (could be from 0 to 17)
16 - linux,default-trigger : (optional)
17    see Documentation/devicetree/bindings/leds/common.txt
18
19 Example:
20
21 sn3218: led-controller@54 {
22         compatible = "si-en,sn3218";
23         #address-cells = <1>;
24         #size-cells = <0>;
25         reg = <0x54>;
26
27         led@0 {
28                 label = "led1";
29                 reg = <0x0>;
30         };
31
32         led@1 {
33                 label = "led2";
34                 reg = <0x1>;
35         };
36
37         led@2 {
38                 label = "led3";
39                 reg = <0x2>;
40         };
41 };