# TI LM3509 High Efficiency Boost for White LED's and/or OLED Displays

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

> Device-tree binding reference for TI LM3509 High Efficiency Boost for White LED's and/or OLED Displays.

<!-- SPDX-License-Identifier: (GPL-2.0 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;backlight&#47;ti&#44;lm3509&#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;Patrick Gansterer &#60;paroga&#64;paroga&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The LM3509 current mode boost converter offers two separate outputs. https://www.ti.com/product/LM3509</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;lm3509&#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> — not listed as 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> — not listed as required here

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

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

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

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

<a id="dt-96735478024c17f74a13"></a>

### <code>ti&#44;brightness&#45;rate&#45;of&#45;change&#45;us</code> — not listed as required here

<div id="dt-129de2a7199f7681b25e">
<p style="white-space: pre-wrap">Brightness Rate of Change in microseconds.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-4a8df91d19fbf49ea10d"></a> <span id="dt-c2ff19d4b45db6d2865c"><code>51</code></span>, <span id="dt-85a9aaa3872db9fdf6b4"><code>13000</code></span>, <span id="dt-48ab6e9798f2eb7af8d8"><code>26000</code></span>, <span id="dt-3f8cabed6ebdb6bd2869"><code>52000</code></span>

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

### <code>ti&#44;oled&#45;mode</code> — not listed as required here

<div id="dt-a148c5d1ea8c9fac86f0">
<p style="white-space: pre-wrap">Enable OLED mode.</p>
</div>

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

<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

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

<div id="dt-7d773514d1460fd0c835">
<p style="white-space: pre-wrap">Properties for a string of connected LEDs.</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/backlight/common.md#dt-root>)</span>

<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">The control register that is used to program the two current sinks. The LM3509 has two registers (BMAIN and BSUB) and are represented as 0 or 1 in this property. The two current sinks can be controlled independently with both registers, or register BMAIN can be configured to control both sinks with the led-sources property.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-0910a62beb632fc8b427"><code>0</code></span>

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

<a id="dt-1618b36c59e380a09a0b"></a>

**<code>label</code> — not listed as required here**

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

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

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

**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>2</code></span>

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

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

> **Minimum value (<code>minimum</code>):** <span id="dt-b2a44a034aea8002c82e"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-dcfae20e61b03782c383"><code>1</code></span>

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

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

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

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

**Default value (<code>default</code>):** <span id="dt-1d9e61f4146200b5eefa"><code>18</code></span>

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

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

**Minimum value (<code>minimum</code>):** <span id="dt-83797bcc735e3542ff3a"><code>0</code></span>

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

**Default value (<code>default</code>):** <span id="dt-d5f22c77f2aec12aa9f4"><code>31</code></span>

**Required in this object (<code>required</code>):** <a id="dt-3991ad4881fa1d645bb9"></a> <span id="dt-0780209107967c8bd17b"><code>&#34;reg&#34;</code></span>

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

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

<code>false</code>

Not allowed by this 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;reg&#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;;

    backlight@36 {
        compatible = "ti,lm3509";
        reg = &lt;0x36&gt;;
        reset-gpios = &lt;&amp;gpio2 5 GPIO_ACTIVE_LOW&gt;;

        ti,oled-mode;
        ti,brightness-rate-of-change-us = &lt;52000&gt;;

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

        led@0 {
            reg = &lt;0&gt;;
            led-sources = &lt;0 1&gt;;
            label = "lcd-backlight";
            default-brightness = &lt;12&gt;;
            max-brightness = &lt;31&gt;;
        };
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    backlight@36 {
        compatible = "ti,lm3509";
        reg = &lt;0x36&gt;;

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

        led@0 {
            reg = &lt;0&gt;;
            default-brightness = &lt;12&gt;;
        };

        led@1 {
            reg = &lt;1&gt;;
            default-brightness = &lt;15&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 OR BSD-2-Clause)</span></p>

</details>
