.. | .. |
---|
20 | 20 | - reg : 0 |
---|
21 | 21 | |
---|
22 | 22 | Optional child properties: |
---|
23 | | - - label : see Documentation/devicetree/bindings/leds/common.txt |
---|
| 23 | + - function : see Documentation/devicetree/bindings/leds/common.txt |
---|
| 24 | + - color : see Documentation/devicetree/bindings/leds/common.txt |
---|
| 25 | + - label : see Documentation/devicetree/bindings/leds/common.txt (deprecated) |
---|
24 | 26 | - linux,default-trigger : |
---|
25 | 27 | see Documentation/devicetree/bindings/leds/common.txt |
---|
26 | 28 | |
---|
27 | 29 | Example: |
---|
| 30 | + |
---|
| 31 | +#include <dt-bindings/leds/common.h> |
---|
28 | 32 | |
---|
29 | 33 | led-controller@2d { |
---|
30 | 34 | compatible = "ti,lp8860"; |
---|
.. | .. |
---|
36 | 40 | |
---|
37 | 41 | led@0 { |
---|
38 | 42 | reg = <0>; |
---|
39 | | - label = "white:backlight"; |
---|
| 43 | + function = LED_FUNCTION_BACKLIGHT; |
---|
| 44 | + color = <LED_COLOR_ID_WHITE>; |
---|
40 | 45 | linux,default-trigger = "backlight"; |
---|
41 | 46 | }; |
---|
42 | 47 | } |
---|
43 | 48 | |
---|
44 | 49 | For more product information please see the link below: |
---|
45 | | -http://www.ti.com/product/lp8860-q1 |
---|
| 50 | +https://www.ti.com/product/lp8860-q1 |
---|