Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: aat1290: Add function and color properties

Refer to new "function" and "color" properties and mark "label"
as deprecated.

Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>

+8 -4
+8 -4
Documentation/devicetree/bindings/leds/leds-aat1290.txt
··· 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>; ··· 53 50 pinctrl-1 = <&camera_flash_host>; 54 51 pinctrl-2 = <&camera_flash_isp>; 55 52 56 - camera_flash: flash-led { 57 - label = "aat1290-flash"; 53 + camera_flash: led { 54 + function = LED_FUNCTION_FLASH; 55 + color = <LED_COLOR_ID_WHITE>; 58 56 led-max-microamp = <520833>; 59 57 flash-max-microamp = <1012500>; 60 58 flash-max-timeout-us = <1940000>;