# Skyworks Solutions, Inc. AAT1290 Current Regulator for Flash LEDs

_Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings_

> Device-tree binding reference for Skyworks Solutions, Inc. AAT1290 Current Regulator for Flash LEDs.

<!-- SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;leds&#47;skyworks&#44;aat1290&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Jacek Anaszewski &#60;jacek&#46;anaszewski&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Krzysztof Kozlowski &#60;krzk&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The device is controlled through two pins:: FL_EN and EN_SET. The pins when,
asserted high, enable flash strobe and movie mode (max 1/2 of flash current)
respectively. In order to add a capability of selecting the strobe signal
source (e.g. CPU or camera sensor) there is an additional switch required,
independent of the flash chip. The switch is controlled with pin control.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;skyworks&#44;aat1290&#34;</code></span>

<a id="dt-c8a4dff1a90700cf0a1e"></a>

### <code>enset&#45;gpios</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-eea79054b9895db3dd6a"><code>1</code></span>

<div id="dt-330a94d94bb581bd89e0">
<p style="white-space: pre-wrap">EN_SET pin</p>
</div>

<a id="dt-be2312a315a392d4a567"></a>

### <code>flen&#45;gpios</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-cbb842625d9e95ebbd8f"><code>1</code></span>

<div id="dt-4e653e39444eff0d8c48">
<p style="white-space: pre-wrap">FL_EN pin</p>
</div>

<a id="dt-9b79c19257f929c2eb86"></a>

### <code>led</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9bcb424756fa839d1c42">[<code>common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-leds/common.md#dt-root>)</span>

<a id="dt-0464810ac301d76e7629"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a11b6a1ae7ba32ef65e"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-d0b0f8ab41a6391d25f3"></a>

**<code>led&#45;max&#45;microamp</code> — required here**

<code>true</code> — No constraints added by this property rule.

<a id="dt-5973299489666f8e26e3"></a>

**<code>flash&#45;max&#45;microamp</code> — required here**

<div id="dt-f2f2d4145e5e22d557f9">
<p style="white-space: pre-wrap">Maximum flash LED supply current can be calculated using following
formula:: I = 1A * 162 kOhm / Rset.</p>
</div>

<a id="dt-05faba5e13e585231331"></a>

**<code>flash&#45;max&#45;timeout&#45;us</code> — required here**

<div id="dt-5fd96a69144f5077837f">
<pre><code>Maximum flash timeout can be calculated using following formula::
  T = 8.82 * 10^9 * Ct.</code></pre>
</div>

**Required in this object (<code>required</code>):** <a id="dt-a96ecf5e1cc8a0ea72eb"></a> <span id="dt-96965b0859b68e45ab36"><code>&#34;flash&#45;max&#45;microamp&#34;</code></span>, <span id="dt-227efe19134403be2e16"><code>&#34;flash&#45;max&#45;timeout&#45;us&#34;</code></span>, <span id="dt-356da1e89f36697d2e64"><code>&#34;led&#45;max&#45;microamp&#34;</code></span>

<a id="dt-abe836d65f0d3b516449"></a>

### <code>pinctrl&#45;names</code> — not listed as required here

<a id="dt-2a4c8347cd450cbb54d1"></a>

#### Array item rules (<code>items</code>)

<a id="dt-81e07bec64c76061809a"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-53a75a2483b213288417"><code>&#34;default&#34;</code></span>

<a id="dt-533e247d3334f36b600b"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-07541635483a597d9829"><code>&#34;host&#34;</code></span>

<a id="dt-9f322d4f262a0ae1d3eb"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-a1566be9ea75ae79663b"><code>&#34;isp&#34;</code></span>

<a id="dt-e5b2d2a306a82ca7f5db"></a>

### <code>pinctrl&#45;0</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-ab9bbcdf7df05eccecbb"></a>

### <code>pinctrl&#45;1</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-c77f9f107de483e23187"></a>

### <code>pinctrl&#45;2</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;enset&#45;gpios&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;flen&#45;gpios&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;led&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;
#include &lt;dt-bindings/leds/common.h&gt;

// Ct = 220 nF, Rset = 160 kOhm
led-controller {
    compatible = "skyworks,aat1290";
    flen-gpios = &lt;&amp;gpj1 1 GPIO_ACTIVE_HIGH&gt;;
    enset-gpios = &lt;&amp;gpj1 2 GPIO_ACTIVE_HIGH&gt;;

    pinctrl-names = "default", "host", "isp";
    pinctrl-0 = &lt;&amp;camera_flash_host&gt;;
    pinctrl-1 = &lt;&amp;camera_flash_host&gt;;
    pinctrl-2 = &lt;&amp;camera_flash_isp&gt;;

    led {
        function = LED_FUNCTION_FLASH;
        color = &lt;LED_COLOR_ID_WHITE&gt;;
        led-max-microamp = &lt;520833&gt;;
        flash-max-microamp = &lt;1012500&gt;;
        flash-max-timeout-us = &lt;1940000&gt;;
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause</span></p>

</details>
