# Generic USB Hub

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

> Device-tree binding reference for Generic USB Hub.

<!-- 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;usb&#45;hub&#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;Pin&#45;yen Lin &#60;treapking&#64;chromium&#46;org&#62;&#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;device&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-usb/usb-device.md#dt-root>)</span>

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

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

<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-8555c8b16c37edf43be4"></a>

### <code>peer&#45;hub</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-148e31d3b6c7f2207032">[<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-1b1fc734aa3a2778b9ba">
<p style="white-space: pre-wrap">phandle to the peer hub on the controller.</p>
</div>

<a id="dt-638717a7c9bbf1878b7e"></a>

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

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

<div id="dt-a74919f01bfec2b08490">
<p style="white-space: pre-wrap">The downstream facing USB ports</p>
</div>

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

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

<a id="dt-60a007ce80dac9ceb4ed"></a>

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

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

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

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

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

<div id="dt-e027dc0a6a6fddee3136">
<p style="white-space: pre-wrap">The hard wired USB devices</p>
</div>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-71344edcd45a24f4ad0e">[<code>&#47;schemas&#47;usb&#47;usb&#45;device&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-usb/usb-device.md#dt-root>)</span>

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

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

<code>true</code>

Allowed by this rule.

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

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

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

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">usb {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    /* 2.0 hub on port 1 */
    hub_2_0: hub@1 {
        compatible = "usb123,4567";
        reg = &lt;1&gt;;
        peer-hub = &lt;&amp;hub_3_0&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;
        /* USB 2.0 device on port 5 */
        device@5 {
            reg = &lt;5&gt;;
            compatible = "usb765,4321";
        };
    };

    /* 3.0 hub on port 2 */
    hub_3_0: hub@2 {
        compatible = "usb123,abcd";
        reg = &lt;2&gt;;
        peer-hub = &lt;&amp;hub_2_0&gt;;

        ports {
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;
            /* Type-A connector on port 3 */
            port@3 {
                reg = &lt;3&gt;;
                endpoint {
                    remote-endpoint = &lt;&amp;usb_a0_ss&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>
