# Freescale FlexTimer Module (FTM) PWM controller

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

> Device-tree binding reference for Freescale FlexTimer Module (FTM) 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;fsl&#44;vf610&#45;ftm&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The same FTM PWM device can have a different endianness on different SoCs. The
device tree provides a property to describing this so that an operating system
device driver can handle all variants of the device. Refer to the table below
for the endianness of the FTM PWM block as integrated into the existing SoCs:</p>
<p style="white-space: pre-wrap">SoC     | FTM-PWM endianness
--------+-------------------
Vybrid  | LE
LS1     | BE
LS2     | LE</p>
<p style="white-space: pre-wrap">Please see ../regmap/regmap.txt for more detail about how to specify endian
modes in device tree.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Frank Li &#60;Frank&#46;Li&#64;nxp&#46;com&#62;&#34;</code></span>

<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;fsl&#44;vf610&#45;ftm&#45;pwm&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;fsl&#44;imx8qm&#45;ftm&#45;pwm&#34;</code></span>, <span id="dt-f03e1478792ca587ff5c"><code>&#34;nxp&#44;s32g2&#45;ftm&#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**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;nxp&#44;s32g3&#45;ftm&#45;pwm&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;nxp&#44;s32g2&#45;ftm&#45;pwm&#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-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-4e9a371963ac013ad39d"></a>

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

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

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

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — required here

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;ftm&#95;sys&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;ftm&#95;ext&#34;</code></span>

<a id="dt-261be8310c899fd46631"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-ad55fa67f3e765bf6ab6"><code>&#34;ftm&#95;fix&#34;</code></span>

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

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-a00c09b3bb0bf38fee22"><code>&#34;ftm&#95;cnt&#95;clk&#95;en&#34;</code></span>

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

### <code>pinctrl&#45;0</code> — not listed as required here

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

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

### <code>pinctrl&#45;1</code> — not listed as required here

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

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

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

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

<a id="dt-2a4c8347cd450cbb54d1"></a>

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

<a id="dt-81e07bec64c76061809a"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-53a75a2483b213288417"><code>&#34;default&#34;</code></span>

<a id="dt-533e247d3334f36b600b"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-07541635483a597d9829"><code>&#34;sleep&#34;</code></span>

<a id="dt-319a1197721d8cd4e338"></a>

### <code>big&#45;endian</code> — not listed as required here

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

<div id="dt-24fc11f69b4701ad477f">
<p style="white-space: pre-wrap">Boolean property, required if the FTM PWM registers use a big- endian rather than little-endian layout.</p>
</div>

**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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>

<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-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">#include &lt;dt-bindings/clock/vf610-clock.h&gt;

pwm@40038000 {
    compatible = "fsl,vf610-ftm-pwm";
    reg = &lt;0x40038000 0x1000&gt;;
    #pwm-cells = &lt;3&gt;;
    clocks = &lt;&amp;clks VF610_CLK_FTM0&gt;,
             &lt;&amp;clks VF610_CLK_FTM0_EXT_SEL&gt;,
             &lt;&amp;clks VF610_CLK_FTM0_FIX_SEL&gt;,
             &lt;&amp;clks VF610_CLK_FTM0_EXT_FIX_EN&gt;;
    clock-names = "ftm_sys", "ftm_ext", "ftm_fix", "ftm_cnt_clk_en";
    pinctrl-names = "default";
    pinctrl-0 = &lt;&amp;pinctrl_pwm0_1&gt;;
    big-endian;
};
</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>
