| .. | .. |
|---|
| 39 | 39 | Optional properties of the flash child node |
|---|
| 40 | 40 | =========================================== |
|---|
| 41 | 41 | |
|---|
| 42 | | -label : The label of the flash LED. |
|---|
| 42 | +function : See Documentation/devicetree/bindings/leds/common.txt. |
|---|
| 43 | +color : See Documentation/devicetree/bindings/leds/common.txt. |
|---|
| 44 | +label : See Documentation/devicetree/bindings/leds/common.txt (deprecated). |
|---|
| 43 | 45 | |
|---|
| 44 | 46 | |
|---|
| 45 | 47 | Required properties of the indicator child node (1) |
|---|
| .. | .. |
|---|
| 52 | 54 | Optional properties of the indicator child node |
|---|
| 53 | 55 | =============================================== |
|---|
| 54 | 56 | |
|---|
| 55 | | -label : The label of the indicator LED. |
|---|
| 57 | +function : See Documentation/devicetree/bindings/leds/common.txt. |
|---|
| 58 | +color : See Documentation/devicetree/bindings/leds/common.txt. |
|---|
| 59 | +label : See Documentation/devicetree/bindings/leds/common.txt (deprecated). |
|---|
| 56 | 60 | |
|---|
| 57 | 61 | |
|---|
| 58 | 62 | Example |
|---|
| 59 | 63 | ======= |
|---|
| 60 | 64 | |
|---|
| 65 | +#include <dt-bindings/leds/common.h> |
|---|
| 66 | + |
|---|
| 61 | 67 | as3645a@30 { |
|---|
| 62 | | - #address-cells: 1 |
|---|
| 63 | | - #size-cells: 0 |
|---|
| 68 | + #address-cells = <1>; |
|---|
| 69 | + #size-cells = <0>; |
|---|
| 64 | 70 | reg = <0x30>; |
|---|
| 65 | 71 | compatible = "ams,as3645a"; |
|---|
| 66 | | - flash@0 { |
|---|
| 72 | + led@0 { |
|---|
| 67 | 73 | reg = <0x0>; |
|---|
| 68 | 74 | flash-timeout-us = <150000>; |
|---|
| 69 | 75 | flash-max-microamp = <320000>; |
|---|
| 70 | 76 | led-max-microamp = <60000>; |
|---|
| 71 | 77 | ams,input-max-microamp = <1750000>; |
|---|
| 72 | | - label = "as3645a:flash"; |
|---|
| 78 | + function = LED_FUNCTION_FLASH; |
|---|
| 73 | 79 | }; |
|---|
| 74 | | - indicator@1 { |
|---|
| 80 | + led@1 { |
|---|
| 75 | 81 | reg = <0x1>; |
|---|
| 76 | 82 | led-max-microamp = <10000>; |
|---|
| 77 | | - label = "as3645a:indicator"; |
|---|
| 83 | + function = LED_FUNCTION_INDICATOR; |
|---|
| 78 | 84 | }; |
|---|
| 79 | 85 | }; |
|---|