# TI LM3697 Highly Efficient White LED Driver

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

> Device-tree binding reference for TI LM3697 Highly Efficient White LED Driver.

<!-- 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;ti&#44;lm3697&#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;Dan Murphy &#60;dmurphy&#64;ti&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The LM3697 11-bit LED driver provides high-performance backlight dimming for 1, 2, or 3 series LED strings while delivering up to 90% efficiency.
This device is suitable for display and keypad lighting.</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;ti&#44;lm3697&#34;</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-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-0d068058a6f4b36b1505"></a>

### <code>enable&#45;gpios</code> — not listed as required here

<div id="dt-2169b15d9fc9d03c1e0f">
<p style="white-space: pre-wrap">GPIO pin to enable or disable the device.</p>
</div>

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

<a id="dt-42409c6466fa99f5dd2b"></a>

### <code>vled&#45;supply</code> — not listed as required here

<div id="dt-d27ff73a83c623529667">
<p style="white-space: pre-wrap">LED supply for the device.</p>
</div>

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

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-3149080f56da2050cbdb"></a>

### <code>&#94;led&#64;&#91;01&#93;&#36;</code> — name matches this regular expression

<div id="dt-7d773514d1460fd0c835">
<p style="white-space: pre-wrap">LED control bank nodes.</p>
</div>

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

<a id="dt-2028e1d8b8224737f4ed"></a>

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

<code>false</code>

Not allowed by this rule.

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

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

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

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

<div id="dt-1550f303c063d63d6927">
<p style="white-space: pre-wrap">Control bank selection (0 = bank A, 1 = bank B).</p>
</div>

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

<a id="dt-740d10ff49bd74c01e97"></a>

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

<div id="dt-fb41ad507fb1aecb39b7">
<p style="white-space: pre-wrap">HVLED strings associated with this control bank:</p>
<pre><code>  0 - HVLED1
  1 - HVLED2
  2 - HVLED3</code></pre>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-a57f29141491225c12be"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-689e068e61e4dd992182"><code>3</code></span>

<a id="dt-13e181a25d1a06047aa6"></a>

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

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

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

**<code>ti&#44;brightness&#45;resolution</code> — not listed as required here**

<div id="dt-c569b6014ae7df38da7b">
<p style="white-space: pre-wrap">Brightness resolution for the LED string.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9eb6cc33c37c4d03be9e">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Maximum value (<code>maximum</code>):** <span id="dt-181222262a1d53995dfd"><code>2047</code></span>

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

**<code>ramp&#45;up&#45;us</code> — not listed as required here**

<div id="dt-a9c1f13351346b29262d">
<p style="white-space: pre-wrap">Ramp-up time in microseconds.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-6db16573f65a2d03c14f"><code>117</code></span>

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

<a id="dt-10e6bf8ba5c59d8152a1"></a>

**<code>ramp&#45;down&#45;us</code> — not listed as required here**

<div id="dt-5c7c981954d170645ce8">
<p style="white-space: pre-wrap">Ramp-down time in microseconds.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-6edf1fb25601c40d5e6f"><code>117</code></span>

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

**Required in this object (<code>required</code>):** <a id="dt-3991ad4881fa1d645bb9"></a> <span id="dt-0780209107967c8bd17b"><code>&#34;reg&#34;</code></span>, <span id="dt-7500a3dcbce2c623c4e0"><code>&#34;led&#45;sources&#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;address&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;size&#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/gpio/gpio.h&gt;

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

    led-controller@36 {
        compatible = "ti,lm3697";
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;
        reg = &lt;0x36&gt;;

        enable-gpios = &lt;&amp;gpio1 28 GPIO_ACTIVE_HIGH&gt;;
        vled-supply = &lt;&amp;vbatt&gt;;

        led@0 {
            reg = &lt;0&gt;;
            led-sources = &lt;0 2&gt;;
            ti,brightness-resolution = &lt;2047&gt;;
            ramp-up-us = &lt;500&gt;;
            ramp-down-us = &lt;1000&gt;;
            label = "white:first_backlight_cluster";
            linux,default-trigger = "backlight";
        };

        led@1 {
            reg = &lt;1&gt;;
            led-sources = &lt;1&gt;;
            ti,brightness-resolution = &lt;255&gt;;
            ramp-up-us = &lt;500&gt;;
            ramp-down-us = &lt;1000&gt;;
            label = "white:second_backlight_cluster";
            linux,default-trigger = "backlight";
        };
    };
};
</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>
