e55eca3e042de5eb26b0695e94c0c7162badc291
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.1 / 050-leds_tlc59116_document_binding.patch
1 Document the binding for the TLC59116 LED driver.
2
3 Signed-off-by: Andrew Lunn <andrew@lunn.ch>
4 ---
5 .../devicetree/bindings/leds/leds-tlc59116.txt | 40 ++++++++++++++++++++++
6 1 file changed, 40 insertions(+)
7 create mode 100644 Documentation/devicetree/bindings/leds/leds-tlc59116.txt
8
9 --- /dev/null
10 +++ b/Documentation/devicetree/bindings/leds/leds-tlc59116.txt
11 @@ -0,0 +1,40 @@
12 +LEDs connected to tcl59116
13 +
14 +Required properties
15 +- compatible: should be "ti,tlc59116"
16 +- #address-cells: must be 1
17 +- #size-cells: must be 0
18 +- reg: typically 0x68
19 +
20 +Each led is represented as a sub-node of the ti,,tlc59116.
21 +See Documentation/devicetree/bindings/leds/common.txt
22 +
23 +LED sub-node properties:
24 +- reg: number of LED line, 0 to 15
25 +- label: (optional) name of LED
26 +- linux,default-trigger : (optional)
27 +
28 +Examples:
29 +
30 +tlc59116@68 {
31 + #address-cells = <1>;
32 + #size-cells = <0>;
33 + compatible = "ti,tlc59116";
34 + reg = <0x68>;
35 +
36 + wan@0 {
37 + label = "wrt1900ac:amber:wan";
38 + reg = <0x0>;
39 + };
40 +
41 + 2g@2 {
42 + label = "wrt1900ac:white:2g";
43 + reg = <0x2>;
44 + };
45 +
46 + alive@9 {
47 + label = "wrt1900ac:green:alive";
48 + reg = <0x9>;
49 + linux,default_trigger = "heartbeat";
50 + };
51 +};