hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/Documentation/devicetree/bindings/leds/leds-aat1290.txt
....@@ -32,15 +32,18 @@
3232 formula: T = 8.82 * 10^9 * Ct.
3333
3434 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)
3638
3739 Example (by Ct = 220nF, Rset = 160kohm and exynos4412-trats2 board with
3840 a switch that allows for routing strobe signal either from the host or from
3941 the camera sensor):
4042
4143 #include "exynos4412.dtsi"
44
+#include <dt-bindings/leds/common.h>
4245
43
-aat1290 {
46
+led-controller {
4447 compatible = "skyworks,aat1290";
4548 flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>;
4649 enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>;
....@@ -50,8 +53,9 @@
5053 pinctrl-1 = <&camera_flash_host>;
5154 pinctrl-2 = <&camera_flash_isp>;
5255
53
- camera_flash: flash-led {
54
- label = "aat1290-flash";
56
+ camera_flash: led {
57
+ function = LED_FUNCTION_FLASH;
58
+ color = <LED_COLOR_ID_WHITE>;
5559 led-max-microamp = <520833>;
5660 flash-max-microamp = <1012500>;
5761 flash-max-timeout-us = <1940000>;