# USB2 ChipIdea USB controller Common Properties

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

> Device-tree binding reference for USB2 ChipIdea USB controller Common Properties.

<!-- 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;usb&#47;chipidea&#44;usb2&#45;common&#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;Xu Yang &#60;xu&#46;yang&#95;2&#64;nxp&#46;com&#62;&#34;</code></span>

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

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

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

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

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

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

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

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

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

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

<a id="dt-4e9a371963ac013ad39d"></a>

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

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

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

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

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

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

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

<a id="dt-38c20c64fdf58b5261c4"></a>

### <code>dr&#95;mode</code> — not listed as required here

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

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

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

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

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

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

<a id="dt-563c20491090a57ac4c9"></a>

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

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

<a id="dt-02c38475362b738e226b"></a>

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

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

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

### <code>phy&#95;type</code> — not listed as required here

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

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

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

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

<a id="dt-959029d13677f5d05558"></a>

### <code>itc&#45;setting</code> — not listed as required here

<div id="dt-83924ad3c20b49a81303">
<p style="white-space: pre-wrap">interrupt threshold control register control, the setting should be aligned with ITC bits at register USBCMD.</p>
</div>

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

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

### <code>ahb&#45;burst&#45;config</code> — not listed as required here

<div id="dt-3a91d2ee06691b057c12">
<p style="white-space: pre-wrap">it is vendor dependent, the required value should be aligned with AHBBRST at SBUSCFG, the range is from 0x0 to 0x7. This property is used to change AHB burst configuration, check the chipidea spec for meaning of each value. If this property is not existed, it will use the reset value.</p>
</div>

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-43014ce85509d4789589"><code>7</code></span>

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

### <code>tx&#45;burst&#45;size&#45;dword</code> — not listed as required here

<div id="dt-59c0835315c60ad71017">
<p style="white-space: pre-wrap">it is vendor dependent, the tx burst size in dword (4 bytes), This register represents the maximum length of a the burst in 32-bit words while moving data from system memory to the USB bus, the value of this property will only take effect if property "ahb-burst-config" is set to 0, if this property is missing the reset default of the hardware implementation will be used.</p>
</div>

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-40095559ae42434db1c0"><code>32</code></span>

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

### <code>rx&#45;burst&#45;size&#45;dword</code> — not listed as required here

<div id="dt-7e982446dd0a0bc7533c">
<p style="white-space: pre-wrap">it is vendor dependent, the rx burst size in dword (4 bytes), This register represents the maximum length of a the burst in 32-bit words while moving data from the USB bus to system memory, the value of this property will only take effect if property "ahb-burst-config" is set to 0, if this property is missing the reset default of the hardware implementation will be used.</p>
</div>

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-6378b1362fe36c33f910"><code>32</code></span>

<a id="dt-7933f1d3d70a0cb9a8f9"></a>

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

<div id="dt-410ff567bd2ce85315e8">
<p style="white-space: pre-wrap">Phandles to external connector devices. First phandle should point to external connector, which provide "USB" cable events, the second should point to external connector device, which provide "USB-HOST" cable events. If one of the external connector devices is not required, empty &lt;0&gt; phandle should be specified.</p>
</div>

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

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

<a id="dt-5166bbdf61584d1b7e34"></a>

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

<a id="dt-4a252f0a633441bd8aad"></a>

**Item 1**

> <div id="dt-e5ee83a009924442ca33">
> <p style="white-space: pre-wrap">vbus extcon</p>
> </div>

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

**Item 2**

> <div id="dt-75ba1e3afed4bf8695a4">
> <p style="white-space: pre-wrap">id extcon</p>
> </div>

<a id="dt-78913a108e53b8ff8578"></a>

### <code>phy&#45;clkgate&#45;delay&#45;us</code> — not listed as required here

<div id="dt-15c9a70bc953eb848ab0">
<p style="white-space: pre-wrap">The delay time (us) between putting the PHY into low power mode and gating the PHY clock.</p>
</div>

<a id="dt-160673831fe500056f2d"></a>

### <code>non&#45;zero&#45;ttctrl&#45;ttha</code> — not listed as required here

<div id="dt-8d06afb6404065ee5107">
<p style="white-space: pre-wrap">After setting this property, the value of register ttctrl.ttha will be 0x7f; if not, the value will be 0x0, this is the default value. It needs to be very carefully for setting this property, it is recommended that consult with your IC engineer before setting this value.  On the most of chipidea platforms, the "usage_tt" flag at RTL is 0, so this property only affects siTD.
If this property is not set, the max packet size is 1023 bytes, and if the total of packet size for previous transactions are more than 256 bytes, it can't accept any transactions within this frame. The use case is single transaction, but higher frame rate.
If this property is set, the max packet size is 188 bytes, it can handle more transactions than above case, it can accept transactions until it considers the left room size within frame is less than 188 bytes, software needs to make sure it does not send more than 90% maximum_periodic_data_per_frame. The use case is multiple transactions, but less frame rate.</p>
</div>

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

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

### <code>mux&#45;controls</code> — not listed as required here

<div id="dt-31599b5d414641e76da0">
<p style="white-space: pre-wrap">The mux control for toggling host/device output of this controller. It's expected that a mux state of 0 indicates device mode and a mux state of 1 indicates host mode.</p>
</div>

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

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

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

**Exact value (<code>const</code>):** <span id="dt-eea55ac9bb1998a85787"><code>&#34;usb&#95;switch&#34;</code></span>

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

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

<div id="dt-3dd0fc5768fac50f61a7">
<p style="white-space: pre-wrap">Names for optional pin modes in "default", "host", "device". In case of HSIC-mode, "idle" and "active" pin modes are mandatory. In this case, the "idle" state needs to pull down the data and strobe pin and the "active" state needs to pull up the strobe pin.</p>
</div>

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

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

<a id="dt-45884c5cccf54262f001"></a>

**Rule 1**

> <a id="dt-e79c2d1f5b9c8a5ec16a"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-54fa823df44e5dc7b476"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-ff37007925258e72dc8d"><code>&#34;idle&#34;</code></span>
>
> <a id="dt-b966408d853fb0ca6b61"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-b6f3fb9fcb22991e1680"><code>&#34;active&#34;</code></span>

<a id="dt-49dd8d7e3a86b63ee5c4"></a>

**Rule 2**

> <a id="dt-15711f67b24c0dd4c802"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-00cc297872a4324ba343"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-a0d23e15d2f85e1fb94a"><code>&#34;default&#34;</code></span>
>
> <a id="dt-68d71317718b73c6602c"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-63614d3e27c426c06f90"><code>&#34;host&#34;</code></span>
>
> <a id="dt-950456323f919d10a173"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-e4a7a26c9273d446260c"><code>&#34;device&#34;</code></span>

<a id="dt-93b5854ca0579ebb51cd"></a>

**Rule 3**

> <a id="dt-fec4da9a5bb770f6757e"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-f106e2c1a27a753d059d"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-b3b89b0b303011de11a7"><code>&#34;default&#34;</code></span>
>
> <a id="dt-1ebd27078d25d19a3bf4"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-af7e8e7871f75a178c6b"></a> <span id="dt-1d9771541962033f85f6"><code>&#34;host&#34;</code></span>, <span id="dt-75c97703bb0279ac9a31"><code>&#34;device&#34;</code></span>

<a id="dt-170d5d8608d1b56580f2"></a>

**Rule 4**

> <a id="dt-d5d3ed166e7ff864710c"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-e9ff6dbcc68b6e9c8e9f"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-65fa9045e90fbe5b3d8c"><code>&#34;default&#34;</code></span>

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

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

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

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

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

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

<a id="dt-398f0f80d64ad8c16804"></a>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-c461f347e42211b9b08a"><code>&#34;usb&#45;phy&#34;</code></span>

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

### <code>vbus&#45;supply</code> — not listed as required here

<div id="dt-a1fdf854418887cff8c5">
<p style="white-space: pre-wrap">reference to the VBUS regulator.</p>
</div>

<a id="dt-5858a244f2d620b1ca88"></a>

### <code>usb&#45;phy</code> — not listed as required here

<div id="dt-0facbb8082d8d0cb4803">
<p style="white-space: pre-wrap">phandle for the PHY device. Use "phys" instead.</p>
</div>

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

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

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

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

<div id="dt-0cd71b006a1fcbec8daa">
<p style="white-space: pre-wrap">Any connector to the data bus of this controller should be modelled using the OF graph bindings specified, if the "usb-role-switch" property is used.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1ed24d3512fbe8ce2017">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;port</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-1d845f0617b4072cef77>)</span>

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

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

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

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

## Property dependencies (<code>dependencies</code>)

<a id="dt-8ee121f5dd82c7c35ee5"></a>

### <code>port</code> — applies when this property is present

Also requires: <span id="dt-7562d341729463b2f857"><code>&#34;usb&#45;role&#45;switch&#34;</code></span>

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

### <code>mux&#45;controls</code> — applies when this property is present

Also requires: <span id="dt-b0fc9f682075a471394e"><code>&#34;mux&#45;control&#45;names&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;reg&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;interrupts&#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>usb&#45;hcd&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-usb/usb-hcd.md#dt-root>)</span>

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

### Rule 2

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

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>true</code>

Allowed by this rule.

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