Commit d60a3d30 authored by Jacek Anaszewski's avatar Jacek Anaszewski

dt-bindings: aat1290: Add function and color properties

Refer to new "function" and "color" properties and mark "label"
as deprecated.
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
parent 889003c2
...@@ -32,15 +32,18 @@ Required properties of the LED child node: ...@@ -32,15 +32,18 @@ Required properties of the LED child node:
formula: T = 8.82 * 10^9 * Ct. formula: T = 8.82 * 10^9 * Ct.
Optional properties of the LED child node: Optional properties of the LED child node:
- label : see Documentation/devicetree/bindings/leds/common.txt - function : see Documentation/devicetree/bindings/leds/common.txt
- color : see Documentation/devicetree/bindings/leds/common.txt
- label : see Documentation/devicetree/bindings/leds/common.txt (deprecated)
Example (by Ct = 220nF, Rset = 160kohm and exynos4412-trats2 board with Example (by Ct = 220nF, Rset = 160kohm and exynos4412-trats2 board with
a switch that allows for routing strobe signal either from the host or from a switch that allows for routing strobe signal either from the host or from
the camera sensor): the camera sensor):
#include "exynos4412.dtsi" #include "exynos4412.dtsi"
#include <dt-bindings/leds/common.h>
aat1290 { led-controller {
compatible = "skyworks,aat1290"; compatible = "skyworks,aat1290";
flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>; flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>;
enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>;
...@@ -50,8 +53,9 @@ aat1290 { ...@@ -50,8 +53,9 @@ aat1290 {
pinctrl-1 = <&camera_flash_host>; pinctrl-1 = <&camera_flash_host>;
pinctrl-2 = <&camera_flash_isp>; pinctrl-2 = <&camera_flash_isp>;
camera_flash: flash-led { camera_flash: led {
label = "aat1290-flash"; function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
led-max-microamp = <520833>; led-max-microamp = <520833>;
flash-max-microamp = <1012500>; flash-max-microamp = <1012500>;
flash-max-timeout-us = <1940000>; flash-max-timeout-us = <1940000>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment