# ASPEED USB 2.0 Virtual Hub Controller

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

> Device-tree binding reference for ASPEED USB 2.0 Virtual Hub 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;usb&#47;aspeed&#44;usb&#45;vhub&#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;Benjamin Herrenschmidt &#60;benh&#64;kernel&#46;crashing&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The ASPEED USB 2.0 Virtual Hub Controller implements 1 set of USB Hub
register and several sets of Device and Endpoint registers to support
the Virtual Hub's downstream USB devices.</p>
<p style="white-space: pre-wrap">Supported number of devices and endpoints vary depending on hardware
revisions. AST2400 and AST2500 Virtual Hub supports 5 downstream devices
and 15 generic endpoints, while AST2600 and AST2700 Virtual Hub supports
7 downstream devices and 21 generic endpoints.</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;aspeed&#44;ast2400&#45;usb&#45;vhub&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;aspeed&#44;ast2500&#45;usb&#45;vhub&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;aspeed&#44;ast2600&#45;usb&#45;vhub&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;aspeed&#44;ast2700&#45;usb&#45;vhub&#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-4e9a371963ac013ad39d"></a>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><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-c2de09e7f7fd211b679d"></a>

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

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

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

### <code>aspeed&#44;vhub&#45;downstream&#45;ports</code> — required here

<div id="dt-4f77b352a8feeb794671">
<p style="white-space: pre-wrap">Number of downstream ports supported by the Virtual Hub</p>
</div>

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

**Default value (<code>default</code>):** <span id="dt-fdacef486a9f97dcb3d1"><code>5</code></span>

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

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

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

### <code>aspeed&#44;vhub&#45;generic&#45;endpoints</code> — required here

<div id="dt-63bf8e4efa4f3a651bb1">
<p style="white-space: pre-wrap">Number of generic endpoints supported by the Virtual Hub</p>
</div>

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

**Default value (<code>default</code>):** <span id="dt-df79c6715e5ef7e4bab6"><code>15</code></span>

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

**Maximum value (<code>maximum</code>):** <span id="dt-de274a2ee9f27afbeff3"><code>21</code></span>

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

### <code>vhub&#45;vendor&#45;id</code> — not listed as required here

<div id="dt-1beb23a8c3ac1a37b4f2">
<p style="white-space: pre-wrap">vhub Vendor ID</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-b6d204d76a0100d08cb8"><code>65535</code></span>

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

### <code>vhub&#45;product&#45;id</code> — not listed as required here

<div id="dt-af0e25df6bd06d02bfaa">
<p style="white-space: pre-wrap">vhub Product ID</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-75160ac56e287f96a68c"><code>65535</code></span>

<a id="dt-044502b06ae8394e0bfd"></a>

### <code>vhub&#45;device&#45;revision</code> — not listed as required here

<div id="dt-ce44b3eae56f6ada7d3c">
<p style="white-space: pre-wrap">vhub Device Revision in binary-coded decimal</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-b2f97c7e9c80e997f9c2"><code>65535</code></span>

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

### <code>vhub&#45;strings</code> — not listed as required here

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

<a id="dt-ab37f5c8be7f5927146a"></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-5e2f3d775527303d70e9"></a>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<code>false</code>

Not allowed by this rule.

<div id="dt-e05d048f8810e95fb365">
<p style="white-space: pre-wrap">string descriptors of the specific language</p>
</div>

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

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

<a id="dt-8050ef218be2ba7ce271"></a>

**<code>reg</code> — not listed as required here**

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

<div id="dt-434e2ce1c705c72b882e">
<p style="white-space: pre-wrap">16-bit Language Identifier defined by USB-IF</p>
</div>

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

**<code>manufacturer</code> — not listed as required here**

<div id="dt-621228bd2826dd87a660">
<p style="white-space: pre-wrap">vhub manufacturer</p>
</div>

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

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

**<code>product</code> — not listed as required here**

<div id="dt-e213d452b9b538c9e80e">
<p style="white-space: pre-wrap">vhub product name</p>
</div>

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

<a id="dt-271e0642e0b6c6acb947"></a>

**<code>serial&#45;number</code> — not listed as required here**

<div id="dt-10aa187c9e2930598c6a">
<p style="white-space: pre-wrap">vhub device serial number</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5e480ec27855288983dc">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;string</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2c695d502852c3a1e1b7>)</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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupts&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;aspeed&#44;vhub&#45;downstream&#45;ports&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;aspeed&#44;vhub&#45;generic&#45;endpoints&#34;</code></span>

<a id="dt-158e3f6339df9dc0e448"></a>

## Condition (<code>if</code>)

> <a id="dt-0c7b6d12024f922c1b96"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-824fdc441f7c94ae56ca"></a>
>
> #### <code>compatible</code> — not listed as required here
>
> <a id="dt-8239149d6c8b0a5dabbe"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Exact value (<code>const</code>):** <span id="dt-0259836b095562054cc8"><code>&#34;aspeed&#44;ast2700&#45;usb&#45;vhub&#34;</code></span>

<a id="dt-94d3067a06aec87aad7f"></a>

## When the condition matches (<code>then</code>)

> **Required in this object (<code>required</code>):** <a id="dt-824165741bab07e919e7"></a> <span id="dt-0be16f81402541b26aff"><code>&#34;resets&#34;</code></span>

<a id="dt-6f6ab6f7f4b3f2f2f0a8"></a>

## When the condition does not match (<code>else</code>)

> <a id="dt-cf075a4b84ee9b101feb"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-47b8b259e075d69ac158"></a>
>
> #### <code>resets</code> — not listed as required here
>
> <code>false</code> — Not permitted by this property rule.

<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/clock/aspeed-clock.h&gt;
vhub: usb-vhub@1e6a0000 {
    compatible = "aspeed,ast2500-usb-vhub";
    reg = &lt;0x1e6a0000 0x300&gt;;
    interrupts = &lt;5&gt;;
    clocks = &lt;&amp;syscon ASPEED_CLK_GATE_USBPORT1CLK&gt;;
    aspeed,vhub-downstream-ports = &lt;5&gt;;
    aspeed,vhub-generic-endpoints = &lt;15&gt;;
    pinctrl-names = "default";
    pinctrl-0 = &lt;&amp;pinctrl_usb2ad_default&gt;;

    vhub-vendor-id = &lt;0x1d6b&gt;;
    vhub-product-id = &lt;0x0107&gt;;
    vhub-device-revision = &lt;0x0100&gt;;
    vhub-strings {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        string@409 {
            reg = &lt;0x409&gt;;
            manufacturer = "ASPEED";
            product = "USB Virtual Hub";
            serial-number = "0000";
        };
    };
};
</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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (c) 2020 Facebook Inc.</span></p>

</details>
