.. | .. |
---|
22 | 22 | - led-max-microamp : Range from 2.4mA - 376mA |
---|
23 | 23 | |
---|
24 | 24 | Optional child properties: |
---|
25 | | - - label : see Documentation/devicetree/bindings/leds/common.txt |
---|
| 25 | + - function : see Documentation/devicetree/bindings/leds/common.txt |
---|
| 26 | + - color : see Documentation/devicetree/bindings/leds/common.txt |
---|
| 27 | + - label : see Documentation/devicetree/bindings/leds/common.txt (deprecated) |
---|
26 | 28 | |
---|
27 | 29 | Example: |
---|
| 30 | + |
---|
| 31 | +#include <dt-bindings/leds/common.h> |
---|
| 32 | + |
---|
28 | 33 | led-controller@64 { |
---|
29 | 34 | compatible = "ti,lm36010"; |
---|
30 | 35 | #address-cells = <1>; |
---|
.. | .. |
---|
33 | 38 | |
---|
34 | 39 | led@0 { |
---|
35 | 40 | reg = <1>; |
---|
36 | | - label = "white:torch"; |
---|
| 41 | + function = LED_FUNCTION_TORCH; |
---|
| 42 | + color = <LED_COLOR_ID_WHITE>; |
---|
37 | 43 | led-max-microamp = <376000>; |
---|
38 | 44 | flash-max-microamp = <1500000>; |
---|
39 | 45 | flash-max-timeout-us = <1600000>; |
---|
.. | .. |
---|
41 | 47 | } |
---|
42 | 48 | |
---|
43 | 49 | For more product information please see the links below: |
---|
44 | | -http://www.ti.com/product/LM36010 |
---|
45 | | -http://www.ti.com/product/LM36011 |
---|
| 50 | +https://www.ti.com/product/LM36010 |
---|
| 51 | +https://www.ti.com/product/LM36011 |
---|