# LED driver for LP50XX RGB LED from Texas Instruments.

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

> Device-tree binding reference for LED driver for LP50XX RGB LED from Texas Instruments..

<!-- 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;leds&#45;lp50xx&#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;Andrew Davis &#60;afd&#64;ti&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The LP50XX is multi-channel, I2C RGB LED Drivers that can group RGB LEDs into
a LED group or control them individually.</p>
<p style="white-space: pre-wrap">The difference in these RGB LED drivers is the number of supported RGB
modules.</p>
<p style="white-space: pre-wrap">For more product information please see the link below:
https://www.ti.com/lit/ds/symlink/lp5012.pdf
https://www.ti.com/lit/ds/symlink/lp5024.pdf
https://www.ti.com/lit/ds/symlink/lp5036.pdf</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;ti&#44;lp5009&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;lp5012&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;lp5018&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;ti&#44;lp5024&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;ti&#44;lp5030&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;ti&#44;lp5036&#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>

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">I2C slave address lp5009/12 - 0x14, 0x15, 0x16, 0x17 lp5018/24 - 0x28, 0x29, 0x2a, 0x2b lp5030/36 - 0x30, 0x31, 0x32, 0x33</p>
</div>

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

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

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

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

<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.</p>
</div>

<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-e92215bd3c2f5373b164"></a>

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

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

### <code>&#94;multi&#45;led&#64;&#91;0&#45;9a&#45;f&#93;&#36;</code> — name matches this regular expression

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

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

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

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

<code>false</code>

Not allowed by this rule.

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

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

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

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

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

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

<div id="dt-cc3fdb0856761220d906">
<p style="white-space: pre-wrap">This property denotes the LED module number(s) that is used on the for the child node.  The LED modules can either be used stand alone or grouped into a module bank.</p>
</div>

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

**<code>&#35;address&#45;cells</code> — not listed as required here**

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

<a id="dt-30a6d3eab0d67b06d4e0"></a>

**<code>&#35;size&#45;cells</code> — not listed as required here**

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

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

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

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

**<code>&#94;led&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression**

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

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

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

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

<code>false</code>

Not allowed by this rule.

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

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

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

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

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

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

<a id="dt-6b36aaf23c9508940978"></a>

**Item 1**

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

<div id="dt-82057010a037ca315bb7">
<p style="white-space: pre-wrap">This property denotes the index within the LED bank.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-a017409fd5c64051dd90"></a> <span id="dt-2fcd82b9410614c6e7a3"><code>&#34;reg&#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>

<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;

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

    led-controller@14 {
        compatible = "ti,lp5009";
        reg = &lt;0x14&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;
        enable-gpios = &lt;&amp;gpio1 16&gt;;

        multi-led@1 {
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;
            reg = &lt;0x1&gt;;
            color = &lt;LED_COLOR_ID_RGB&gt;;
            function = LED_FUNCTION_CHARGING;

            led@0 {
                 reg = &lt;0x0&gt;;
                 color = &lt;LED_COLOR_ID_RED&gt;;
            };

            led@1 {
                 reg = &lt;0x1&gt;;
                 color = &lt;LED_COLOR_ID_GREEN&gt;;
            };

            led@2 {
                 reg = &lt;0x2&gt;;
                 color = &lt;LED_COLOR_ID_BLUE&gt;;
            };
        };

        multi-led@3 {
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;
            reg = &lt;0x3&gt;, &lt;0x4&gt;, &lt;0x5&gt;;
            color = &lt;LED_COLOR_ID_RGB&gt;;
            function = LED_FUNCTION_STANDBY;

            led@0 {
                reg = &lt;0x0&gt;;
                color = &lt;LED_COLOR_ID_RED&gt;;
            };

            led@1 {
                reg = &lt;0x1&gt;;
                color = &lt;LED_COLOR_ID_GREEN&gt;;
            };

            led@2 {
                reg = &lt;0x2&gt;;
                color = &lt;LED_COLOR_ID_BLUE&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>
