# Qualcomm Light Pulse Generator

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

> Device-tree binding reference for Qualcomm Light Pulse Generator.

<!-- 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;qcom&#45;lpg&#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;Bjorn Andersson &#60;bjorn&#46;andersson&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Qualcomm Light Pulse Generator consists of three different hardware blocks; a ramp generator with lookup table (LUT), the light pulse generator and a three channel current sink. These blocks are found in a wide range of Qualcomm PMICs. The light pulse generator (LPG) can also be used independently to output PWM signal for standard PWM applications. In this scenario, the LPG output should be routed to a specific PMIC GPIO by setting the GPIO pin mux to the special functions indicated in the datasheet, the TRILED driver for the channel will not be enabled in this configuration.</p>
</div>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;qcom&#44;pm660l&#45;lpg&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;qcom&#44;pm8150b&#45;lpg&#34;</code></span>, <span id="dt-f03e1478792ca587ff5c"><code>&#34;qcom&#44;pm8150l&#45;lpg&#34;</code></span>, <span id="dt-34cab0afbb7f2b55efc5"><code>&#34;qcom&#44;pm8350c&#45;pwm&#34;</code></span>, <span id="dt-d29c3f554eb9a606c63a"><code>&#34;qcom&#44;pm8916&#45;pwm&#34;</code></span>, <span id="dt-6abdfa16ccd722b794e6"><code>&#34;qcom&#44;pm8941&#45;lpg&#34;</code></span>, <span id="dt-7775c6eae6cdca3e9809"><code>&#34;qcom&#44;pm8994&#45;lpg&#34;</code></span>, <span id="dt-9727c2c60e912d553bb7"><code>&#34;qcom&#44;pmc8180c&#45;lpg&#34;</code></span>, <span id="dt-1361d1fce62d86040b5e"><code>&#34;qcom&#44;pmi632&#45;lpg&#34;</code></span>, <span id="dt-a66cdf3fb4555997cc02"><code>&#34;qcom&#44;pmi8950&#45;pwm&#34;</code></span>, <span id="dt-9dfc548002c970ddb9ed"><code>&#34;qcom&#44;pmi8994&#45;lpg&#34;</code></span>, <span id="dt-fb22acbeafd709abc5c8"><code>&#34;qcom&#44;pmi8998&#45;lpg&#34;</code></span>, <span id="dt-126cc5375600a24450a4"><code>&#34;qcom&#44;pmk8550&#45;pwm&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;qcom&#44;pm6150l&#45;lpg&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;qcom&#44;pm8150l&#45;lpg&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-9d5b9f6fd2f9759f6e43"></a> <span id="dt-73fb2f4b762df7b35870"><code>&#34;qcom&#44;pm8550&#45;pwm&#34;</code></span>, <span id="dt-4f2dd487e4b2e6e79827"><code>&#34;qcom&#44;pmh0101&#45;pwm&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;qcom&#44;pm8350c&#45;pwm&#34;</code></span>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> <a id="dt-a1b1c435b08c85ff96c7"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4758c8f9c99bfa28b10c"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-12b3e48e4010cb944698"></a> <span id="dt-e46f645e6715baa60581"><code>&#34;qcom&#44;pm8937&#45;pwm&#34;</code></span>
>
> <a id="dt-c99d921c49bf15e79633"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-9e0f2ef968dd632f09b7"><code>&#34;qcom&#44;pm8916&#45;pwm&#34;</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-4552d6b6103babdf0959"><code>2</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-2e92bd3aa7d91ebb750d"></a>

### <code>qcom&#44;power&#45;source</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-421d7c05cf3c2b34c876">[<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-3cff870d668385f09de0">
<p style="white-space: pre-wrap">power-source used to drive the output, as defined in the datasheet. Should be specified if the TRILED block is present</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-9ac2c9dfada16883b99a"></a> <span id="dt-0ea50b8b5430baaa2d85"><code>0</code></span>, <span id="dt-54530bb3c5f0899fd9b2"><code>1</code></span>, <span id="dt-c63271f89216f4f4f01f"><code>3</code></span>

<a id="dt-0306cf5d0b501fb3c62e"></a>

### <code>qcom&#44;dtest</code> — not listed as required here

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

<div id="dt-eb9730ee69a051bf52a8">
<p style="white-space: pre-wrap">A list of integer pairs, where each pair represent the dtest line the particular channel should be connected to and the flags denoting how the value should be outputted, as defined in the datasheet. The number of pairs should be the same as the number of channels.</p>
</div>

<a id="dt-885d5d853733ed0589e5"></a>

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

> <a id="dt-f1dea23df60b10b6bc7b"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-32979651f021dafdae89"></a>
>
> **Item 1**
>
> > <div id="dt-1d4059b05e59b03cfc12">
> > <p style="white-space: pre-wrap">dtest line to attach</p>
> > </div>
>
> <a id="dt-7fbd9b0299d060527526"></a>
>
> **Item 2**
>
> > <div id="dt-295df9fbc5cc1542cdb2">
> > <p style="white-space: pre-wrap">flags for the attachment</p>
> > </div>

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

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

<div id="dt-9c2a14343de9ca76c894">
<p style="white-space: pre-wrap">This property is required for PMICs that supports PPG, which is when a PMIC stores LPG per-channel data and pattern LUT in SDAM modules instead of in a LUT peripheral. For PMICs, such as PM8350C, per-channel data and pattern LUT is separated into 2 SDAM modules. In that case, phandles to both SDAM modules need to be specified.</p>
</div>

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

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

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

### <code>nvmem&#45;names</code> — not listed as required here

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-133710bbfa1cc98a0379"><code>&#34;lpg&#95;chan&#95;sdam&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-a188fcd4807fd57aa4e6"><code>&#34;lut&#95;sdam&#34;</code></span>

<a id="dt-58f9e15b4c8bdb440be8"></a>

### <code>qcom&#44;pbs</code> — not listed as required here

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

<div id="dt-353a445691587191e201">
<p style="white-space: pre-wrap">Phandle of the Qualcomm Programmable Boot Sequencer node (PBS). PBS node is used to trigger LPG pattern sequences for PMICs that support single SDAM PPG.</p>
</div>

<a id="dt-19fbc5d6c1bc08da1c68"></a>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5e4ce5eb9dd359f48d3c">[<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-850b6df1fd018b5c206d"></a>

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

<code>false</code>

Not allowed by this rule.

<a id="dt-06a616ca378e5b0c5564"></a>

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

<a id="dt-99f9f80f12ede1d634fa"></a>

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

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

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

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

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

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

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

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

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

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

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

<a id="dt-00a5a16fcb4d134d6fbb"></a>

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

<code>false</code>

Not allowed by this rule.

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

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

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-53930917fcc764b75183"></a> <span id="dt-44c329cc737f41551c52"><code>&#34;reg&#34;</code></span>

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

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

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

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

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

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

<a id="dt-3c5ebd0405b89160faed"></a>

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

<code>false</code>

Not allowed by this rule.

<a id="dt-362e22883eb0c50c80fe"></a>

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

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-4ec89049e6858ed3fd5b"></a> <span id="dt-3d6548473fa4f29f0151"><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>

<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-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;qcom&#44;pm660l&#45;lpg&#34;</code></span>, <span id="dt-b1891799a94ae03bda89"><code>&#34;qcom&#44;pm8150b&#45;lpg&#34;</code></span>, <span id="dt-f7ddd2674cdadacec733"><code>&#34;qcom&#44;pm8150l&#45;lpg&#34;</code></span>, <span id="dt-1afa9c359b113daf77e4"><code>&#34;qcom&#44;pm8916&#45;pwm&#34;</code></span>, <span id="dt-f4184526859cd3d4f83a"><code>&#34;qcom&#44;pm8941&#45;lpg&#34;</code></span>, <span id="dt-5781a391973aa6c79186"><code>&#34;qcom&#44;pm8994&#45;lpg&#34;</code></span>, <span id="dt-a6fb5890966cb504376f"><code>&#34;qcom&#44;pmc8180c&#45;lpg&#34;</code></span>, <span id="dt-cda04678bfdba417244f"><code>&#34;qcom&#44;pmi8950&#45;pwm&#34;</code></span>, <span id="dt-d165f90539702b545a9b"><code>&#34;qcom&#44;pmi8994&#45;lpg&#34;</code></span>, <span id="dt-56f4171c18410f47cb0f"><code>&#34;qcom&#44;pmi8998&#45;lpg&#34;</code></span>, <span id="dt-8d2dd7f81fc9bd280a02"><code>&#34;qcom&#44;pmk8550&#45;pwm&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-9f8b0919148e67d21480"></a>
> >
> > **<code>nvmem</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-c06a1493ef580d994da0"></a>
> >
> > **<code>nvmem&#45;names</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;qcom&#44;pmi632&#45;lpg&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-a0f059ab0ff3e38f28a1"></a>
> >
> > **<code>nvmem</code> — not listed as required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-91ce2526be5704a0d87d"><code>1</code></span>
> >
> > <a id="dt-148321e31f372694b8de"></a>
> >
> > **<code>nvmem&#45;names</code> — not listed as required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-cfb8745bc272e6a93224"><code>1</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-7838023cb1ac8ba1fc13"></a> <span id="dt-2698b34438b1aced3e06"><code>&#34;qcom&#44;pm8350c&#45;pwm&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-4a72a51329b1c5206f1c"></a>
> >
> > **<code>nvmem</code> — not listed as required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-8386479aac2eeb1f210f"><code>2</code></span>
> >
> > <a id="dt-ee42df81e3f397d90421"></a>
> >
> > **<code>nvmem&#45;names</code> — not listed as required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-e770d0250e3f488f863d"><code>2</code></span>

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

led-controller {
  compatible = "qcom,pmi8994-lpg";

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

  qcom,power-source = &lt;1&gt;;

  qcom,dtest = &lt;0 0&gt;,
               &lt;0 0&gt;,
               &lt;0 0&gt;,
               &lt;4 1&gt;;

  led@1 {
    reg = &lt;1&gt;;
    color = &lt;LED_COLOR_ID_GREEN&gt;;
    function = LED_FUNCTION_INDICATOR;
    function-enumerator = &lt;1&gt;;
  };

  led@2 {
    reg = &lt;2&gt;;
    color = &lt;LED_COLOR_ID_GREEN&gt;;
    function = LED_FUNCTION_INDICATOR;
    function-enumerator = &lt;0&gt;;
    default-state = "on";
  };

  led@3 {
    reg = &lt;3&gt;;
    color = &lt;LED_COLOR_ID_GREEN&gt;;
    function = LED_FUNCTION_INDICATOR;
    function-enumerator = &lt;2&gt;;
  };

  led@4 {
    reg = &lt;4&gt;;
    color = &lt;LED_COLOR_ID_GREEN&gt;;
    function = LED_FUNCTION_INDICATOR;
    function-enumerator = &lt;3&gt;;
  };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/leds/common.h&gt;

led-controller {
  compatible = "qcom,pmi8994-lpg";

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

  qcom,power-source = &lt;1&gt;;

  multi-led {
    color = &lt;LED_COLOR_ID_RGB&gt;;
    function = LED_FUNCTION_STATUS;

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

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

    led@2 {
      reg = &lt;2&gt;;
      color = &lt;LED_COLOR_ID_GREEN&gt;;
    };

    led@3 {
      reg = &lt;3&gt;;
      color = &lt;LED_COLOR_ID_BLUE&gt;;
    };
  };
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">pwm-controller {
  compatible = "qcom,pm8916-pwm";
  #pwm-cells = &lt;2&gt;;
};
</code></pre>

<pre id="dt-cf8a683b5a963eb1c566"><code class="language-dts">#include &lt;dt-bindings/leds/common.h&gt;

led-controller {
  compatible = "qcom,pmi632-lpg";
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  #pwm-cells = &lt;2&gt;;
  nvmem-names = "lpg_chan_sdam";
  nvmem = &lt;&amp;pmi632_sdam_7&gt;;
  qcom,pbs = &lt;&amp;pmi632_pbs_client3&gt;;

  led@1 {
    reg = &lt;1&gt;;
    color = &lt;LED_COLOR_ID_RED&gt;;
    label = "red";
  };

  led@2 {
    reg = &lt;2&gt;;
    color = &lt;LED_COLOR_ID_GREEN&gt;;
    label = "green";
  };

  led@3 {
    reg = &lt;3&gt;;
    color = &lt;LED_COLOR_ID_BLUE&gt;;
    label = "blue";
  };
};
</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>
