# Analog Devices AS3645A LED Controller

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

> Device-tree binding reference for Analog Devices AS3645A LED Controller.

<!-- 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;ams&#44;as3645a&#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;Sakari Ailus &#60;sakari&#46;ailus&#64;iki&#46;fi&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The AS3645A flash LED controller can drive two LEDs, one high current flash LED and one indicator LED. The high current flash LED can be used in torch mode as well.</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;ams&#44;as3645a&#34;</code></span>

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

### <code>&#35;address&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-e6e6af09ab617572731b"><code>1</code></span>

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

### <code>&#35;size&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-793e842f88ef513a8f93"><code>0</code></span>

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

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

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

<a id="dt-88a7c0fea55bd5026d6c"></a>

### <code>led&#64;0</code> — not listed as required here

<div id="dt-48e50bb6993c606b7edf">
<p style="white-space: pre-wrap">led0 describes the 'flash' feature</p>
</div>

**Value type (<code>type</code>):** <span id="dt-24e346de35b05b5ac675"><code>&#34;object&#34;</code></span>

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

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

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

<code>false</code>

Not allowed by this rule.

<a id="dt-2291a5a4cb4e25df2b4e"></a>

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

<a id="dt-504448e6cbc9d6f3ceef"></a>

**<code>reg</code> — required here**

**Exact value (<code>const</code>):** <span id="dt-927ae793630ac21345cf"><code>0</code></span>

<a id="dt-0af946f721b7359aca2b"></a>

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

**Minimum value (<code>minimum</code>):** <span id="dt-d60d3c85f918b527255e"><code>100000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-7ccb9fadf6a21fa6b414"><code>850000</code></span>

**Multiple of (<code>multipleOf</code>):** <span id="dt-4099f5e176f830f209b4"><code>50000</code></span>

<a id="dt-577a398750e2874e6527"></a>

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

**Minimum value (<code>minimum</code>):** <span id="dt-647c6c7e4964bb6e4655"><code>200000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-1a39897521930d5615bd"><code>500000</code></span>

**Multiple of (<code>multipleOf</code>):** <span id="dt-11b66874ca61a2452b8a"><code>20000</code></span>

<a id="dt-37d9e23c19e0aa74aa06"></a>

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

**Minimum value (<code>minimum</code>):** <span id="dt-cce0eab9219cb2b415c1"><code>20000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-61b47353e367feef4081"><code>160000</code></span>

**Multiple of (<code>multipleOf</code>):** <span id="dt-8a7761a5d35445ae9b5e"><code>20000</code></span>

<div id="dt-a916fc29620583f2f686">
<p style="white-space: pre-wrap">Maximum current when in torch (assist) mode.</p>
</div>

<a id="dt-902632332c9cc6836feb"></a>

**<code>ams&#44;input&#45;max&#45;microamp</code> — required here**

**Minimum value (<code>minimum</code>):** <span id="dt-c8835feafdda97216dd7"><code>1250000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-cca7349c0c7fa305d681"><code>2000000</code></span>

**Multiple of (<code>multipleOf</code>):** <span id="dt-bcbb1d8fd0c3be460e4a"><code>50000</code></span>

**Required in this object (<code>required</code>):** <a id="dt-bdc12b791a584b8bdd2b"></a> <span id="dt-58913610f0a050f4fac5"><code>&#34;reg&#34;</code></span>, <span id="dt-54970f264f8f781c0015"><code>&#34;flash&#45;timeout&#45;us&#34;</code></span>, <span id="dt-0edee87c99145eee3e7c"><code>&#34;flash&#45;max&#45;microamp&#34;</code></span>, <span id="dt-7d3d5fe0ca7d269aad98"><code>&#34;led&#45;max&#45;microamp&#34;</code></span>, <span id="dt-ab824ffd80613cd70e92"><code>&#34;ams&#44;input&#45;max&#45;microamp&#34;</code></span>

<a id="dt-468d38357ff139d61ff9"></a>

### <code>led&#64;1</code> — not listed as required here

<div id="dt-4437d85fe65a9069980d">
<p style="white-space: pre-wrap">led1 describes the 'indicator' feature</p>
</div>

**Value type (<code>type</code>):** <span id="dt-e754e9b233f1a366096e"><code>&#34;object&#34;</code></span>

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

<a id="dt-04104f16fc2b3a7c72f6"></a>

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

<code>false</code>

Not allowed by this rule.

<a id="dt-8e84d7e0013119aaa11c"></a>

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

<a id="dt-7f02794e7991d20b3499"></a>

**<code>reg</code> — required here**

**Exact value (<code>const</code>):** <span id="dt-ce03992af8cd23ca7e0a"><code>1</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-03d8b7470888b7fb86d4"></a> <span id="dt-7c753a55bf7899338d6d"><code>2500</code></span>, <span id="dt-851aa6ef9e923737c4f3"><code>5000</code></span>, <span id="dt-a3927e9903cffa771fe6"><code>7500</code></span>, <span id="dt-ee9fac27cb9590d64be6"><code>10000</code></span>

<div id="dt-ca7379e1fcb1b95e5911">
<p style="white-space: pre-wrap">Maximum indicator current.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-4bd7657309ec2dee6142"></a> <span id="dt-5f7079ef4618c614b95c"><code>&#34;reg&#34;</code></span>, <span id="dt-5cbe9799df88a9206a2d"><code>&#34;led&#45;max&#45;microamp&#34;</code></span>

**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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;address&#45;cells&#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/leds/common.h&gt;

i2c{
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    led-controller@30 {
        compatible = "ams,as3645a";
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;
        reg = &lt;0x30&gt;;

        led@0 {
            reg = &lt;0&gt;;
            flash-timeout-us = &lt;150000&gt;;
            flash-max-microamp = &lt;320000&gt;;
            led-max-microamp = &lt;60000&gt;;
            ams,input-max-microamp = &lt;1750000&gt;;
            function = LED_FUNCTION_FLASH;
        };

        led@1 {
            reg = &lt;1&gt;;
            led-max-microamp = &lt;10000&gt;;
            function = LED_FUNCTION_INDICATOR;
        };
    };
};
</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>
