1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/leds/skyworks,aat1290.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Skyworks Solutions, Inc. AAT1290 Current Regulator for Flash LEDs
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Krzysztof Kozlowski <krzk@kernel.org>
14 The device is controlled through two pins:: FL_EN and EN_SET. The pins when,
15 asserted high, enable flash strobe and movie mode (max 1/2 of flash current)
16 respectively. In order to add a capability of selecting the strobe signal
17 source (e.g. CPU or camera sensor) there is an additional switch required,
18 independent of the flash chip. The switch is controlled with pin control.
22 const: skyworks,aat1290
26 description: EN_SET pin
30 description: FL_EN pin
34 unevaluatedProperties: false
37 led-max-microamp: true
41 Maximum flash LED supply current can be calculated using following
42 formula:: I = 1A * 162 kOhm / Rset.
46 Maximum flash timeout can be calculated using following formula::
51 - flash-max-timeout-us
70 additionalProperties: false
74 #include <dt-bindings/gpio/gpio.h>
75 #include <dt-bindings/leds/common.h>
77 // Ct = 220 nF, Rset = 160 kOhm
79 compatible = "skyworks,aat1290";
80 flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>;
81 enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>;
83 pinctrl-names = "default", "host", "isp";
84 pinctrl-0 = <&camera_flash_host>;
85 pinctrl-1 = <&camera_flash_host>;
86 pinctrl-2 = <&camera_flash_isp>;
89 function = LED_FUNCTION_FLASH;
90 color = <LED_COLOR_ID_WHITE>;
91 led-max-microamp = <520833>;
92 flash-max-microamp = <1012500>;
93 flash-max-timeout-us = <1940000>;