# TI dual mode timer PWM controller

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

> Device-tree binding reference for TI dual mode timer PWM controller.

<!-- 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;pwm&#47;ti&#44;omap&#45;dmtimer&#45;pwm&#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;Tony Lindgren &#60;tony&#64;atomide&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">TI dual mode timer instances have an IO pin for PWM capability</p>
</div>

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

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

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

### Rule 1

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

<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;omap&#45;dmtimer&#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>3</code></span>

<a id="dt-23d0643e6a03f21eb039"></a>

### <code>ti&#44;timers</code> — required here

<div id="dt-40d96b604151013feb2f">
<p style="white-space: pre-wrap">Timer instance phandle for the PWM</p>
</div>

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

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

### <code>ti&#44;prescaler</code> — not listed as required here

<div id="dt-ec459b7a29356b22ee86">
<p style="white-space: pre-wrap">Legacy clock prescaler for timer. The timer counter is prescaled
with 2^n where n is the prescaler.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-2b9b5c6322bc9cee244f"></a> <span id="dt-3848eb03473bcd9f6059"><code>0</code></span>, <span id="dt-bc40852b7cf5d58f2f74"><code>1</code></span>, <span id="dt-9804889291dcf2c9ea5f"><code>2</code></span>, <span id="dt-9eda33c017a51aa07d2e"><code>3</code></span>, <span id="dt-39967eecd748dd9192c7"><code>4</code></span>, <span id="dt-8da604c94f4dcd4e5628"><code>5</code></span>, <span id="dt-778ddbd94492c669f36b"><code>6</code></span>, <span id="dt-6318a12f168a9cfbd27e"><code>7</code></span>

**Deprecated (<code>deprecated</code>):** <span id="dt-4921a8379b29bb5ece18"><code>true</code></span>

<a id="dt-65395455b4692265f980"></a>

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

<div id="dt-9151d49afb933eb68767">
<p style="white-space: pre-wrap">Legacy clock for timer, please use assigned-clocks instead.
0x00 - high-frequency system clock (timer_sys_ck)
0x01 - 32-kHz always-on clock (timer_32k_ck)
0x02 - external clock (timer_ext_ck, OMAP2 only)</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-746d5f69cfc6c6983e82"></a> <span id="dt-1ec762218b16b74f000d"><code>0</code></span>, <span id="dt-3bb3aa46abf6fc08577b"><code>1</code></span>, <span id="dt-b83fe3eb98f4f76fe34b"><code>2</code></span>

**Deprecated (<code>deprecated</code>):** <span id="dt-1f585e82cf74d12bf486"><code>true</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;ti&#44;timers&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">pwm9: pwm {
  compatible = "ti,omap-dmtimer-pwm";
  ti,timers = &lt;&amp;timer9&gt;;
  #pwm-cells = &lt;3&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>
