.. | .. |
---|
32 | 32 | formula: T = 8.82 * 10^9 * Ct. |
---|
33 | 33 | |
---|
34 | 34 | Optional properties of the LED child node: |
---|
35 | | -- label : see Documentation/devicetree/bindings/leds/common.txt |
---|
| 35 | +- function : see Documentation/devicetree/bindings/leds/common.txt |
---|
| 36 | +- color : see Documentation/devicetree/bindings/leds/common.txt |
---|
| 37 | +- label : see Documentation/devicetree/bindings/leds/common.txt (deprecated) |
---|
36 | 38 | |
---|
37 | 39 | Example (by Ct = 220nF, Rset = 160kohm and exynos4412-trats2 board with |
---|
38 | 40 | a switch that allows for routing strobe signal either from the host or from |
---|
39 | 41 | the camera sensor): |
---|
40 | 42 | |
---|
41 | 43 | #include "exynos4412.dtsi" |
---|
| 44 | +#include <dt-bindings/leds/common.h> |
---|
42 | 45 | |
---|
43 | | -aat1290 { |
---|
| 46 | +led-controller { |
---|
44 | 47 | compatible = "skyworks,aat1290"; |
---|
45 | 48 | flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>; |
---|
46 | 49 | enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; |
---|
.. | .. |
---|
50 | 53 | pinctrl-1 = <&camera_flash_host>; |
---|
51 | 54 | pinctrl-2 = <&camera_flash_isp>; |
---|
52 | 55 | |
---|
53 | | - camera_flash: flash-led { |
---|
54 | | - label = "aat1290-flash"; |
---|
| 56 | + camera_flash: led { |
---|
| 57 | + function = LED_FUNCTION_FLASH; |
---|
| 58 | + color = <LED_COLOR_ID_WHITE>; |
---|
55 | 59 | led-max-microamp = <520833>; |
---|
56 | 60 | flash-max-microamp = <1012500>; |
---|
57 | 61 | flash-max-timeout-us = <1940000>; |
---|