# NXP PCA963x LED controllers

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

> Device-tree binding reference for NXP PCA963x LED controllers.

<!-- 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;nxp&#44;pca963x&#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;Laurent Pinchart &#60;laurent&#46;pinchart&#64;ideasonboard&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The NXP PCA963x are I2C-controlled LED drivers optimized for
Red/Green/Blue/Amber (RGBA) color mixing applications. Each LED is
individually controllable and has its own PWM controller.</p>
<p style="white-space: pre-wrap">Datasheets are available at</p>
<p style="white-space: pre-wrap">- https://www.nxp.com/docs/en/data-sheet/PCA9632.pdf
- https://www.nxp.com/docs/en/data-sheet/PCA9633.pdf
- https://www.nxp.com/docs/en/data-sheet/PCA9634.pdf
- https://www.nxp.com/docs/en/data-sheet/PCA9635.pdf</p>
</div>

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

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

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

### <code>compatible</code> — not listed as required here

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;nxp&#44;pca9632&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;nxp&#44;pca9633&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;nxp&#44;pca9634&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;nxp&#44;pca9635&#34;</code></span>

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

### <code>reg</code> — not listed as 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-90c3cb9826f5e698ae8a"></a>

### <code>nxp&#44;hw&#45;blink</code> — not listed as required here

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

<div id="dt-111965fa92be95449816">
<p style="white-space: pre-wrap">Use hardware blinking instead of software blinking</p>
</div>

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

### <code>nxp&#44;inverted&#45;out</code> — not listed as required here

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

<div id="dt-d71ff9c3ea601372e771">
<p style="white-space: pre-wrap">Invert the polarity of the generated PWM.</p>
</div>

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

### <code>nxp&#44;period&#45;scale</code> — not listed as required here

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

<div id="dt-6a1e4fa5740019dcfc2e">
<p style="white-space: pre-wrap">In some configurations, the chip blinks faster than expected. This parameter provides a scaling ratio (fixed point, decimal divided by 1000) to compensate, e.g. 1300=1.3x and 750=0.75x.</p>
</div>

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

### <code>nxp&#44;totem&#45;pole</code> — not listed as required here

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

<div id="dt-91684c395a8b490421a2">
<p style="white-space: pre-wrap">Use totem pole (push-pull) instead of open-drain (pca9632 defaults to open-drain, newer chips to totem pole).</p>
</div>

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

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

<a id="dt-4a3c606d81fba079f0b7"></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-b31522a8a03e3ef95647"><code>&#34;object&#34;</code></span>

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

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

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

<code>false</code>

Not allowed by this rule.

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

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

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-36119caabf85ddc332de"></a> <span id="dt-e0154bce9bca0b8cc4e1"><code>&#34;reg&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-b5c9dbe70762f9ad7bb5"></a> <span id="dt-d017b1b1b5a0bb01c549"><code>&#34;nxp&#44;pca9632&#34;</code></span>, <span id="dt-b1891799a94ae03bda89"><code>&#34;nxp&#44;pca9633&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-6a22a8f69a54bcbb7d12"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-681113d3f91024e9a518"></a>
> >
> > **<code>&#94;led&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-ae5a49b27f663798b3b6"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-d5ec8726c51425edc233"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-015e0812c7e7727a083e"><code>3</code></span>
>
> <a id="dt-f985d6aaa3f73a650205"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-7fb969d41394745ecdc2"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-bcbcfdd6ceb00a108365"></a>
> >
> > **<code>&#94;led&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-7505c712b1aef91fc95f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-13874f39c907cb98af79"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-043fb005c0eca64d247a"><code>7</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@62 {
        compatible = "nxp,pca9632";
        reg = &lt;0x62&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

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

        led@1 {
                reg = &lt;1&gt;;
                color = &lt;LED_COLOR_ID_GREEN&gt;;
                function = LED_FUNCTION_STATUS;
        };

        led@2 {
                reg = &lt;2&gt;;
                color = &lt;LED_COLOR_ID_BLUE&gt;;
                function = LED_FUNCTION_STATUS;
        };

        led@3 {
                reg = &lt;3&gt;;
                color = &lt;LED_COLOR_ID_WHITE&gt;;
                function = LED_FUNCTION_STATUS;
        };
    };
};
</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>
