# SMSC USB3503 High-Speed Hub Controller

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

> Device-tree binding reference for SMSC USB3503 High-Speed Hub Controller.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;smsc&#44;usb3503&#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;Dongjin Kim &#60;tobetter&#64;gmail&#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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;smsc&#44;usb3503&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;smsc&#44;usb3503a&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;smsc&#44;usb3803&#34;</code></span>

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

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

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

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

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

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

<div id="dt-4dab5c72cf6ce9313293">
<p style="white-space: pre-wrap">GPIO for connect</p>
</div>

<a id="dt-9320b2c43d4a3e5381a6"></a>

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

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

<div id="dt-8eafef84bf4d57b9a007">
<p style="white-space: pre-wrap">GPIO for interrupt</p>
</div>

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">GPIO for reset</p>
</div>

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

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

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

<div id="dt-26a6dd5a2364ef21a7c2">
<p style="white-space: pre-wrap">GPIO for bypass. Control signal to select between HUB MODE and BYPASS MODE.</p>
</div>

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

### <code>disabled&#45;ports</code> — not listed as required here

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

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

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

<a id="dt-0104f9a084d9faddd9c0"></a>

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

> **Minimum value (<code>minimum</code>):** <span id="dt-7d181b4a345cff1298e8"><code>1</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-a472872323837edff8bd"><code>3</code></span>

<div id="dt-a781cbac0a2618d2597a">
<p style="white-space: pre-wrap">Specifies the ports unused using their port number. Do not describe this property if all ports have to be enabled.</p>
</div>

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

### <code>initial&#45;mode</code> — not listed as required here

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

<div id="dt-0b1e91fc907c82ea6baa">
<p style="white-space: pre-wrap">Specifies initial mode. 1 for Hub mode, 2 for standby mode and 3 for bypass mode. In bypass mode the downstream port 3 is connected to the upstream port with low switch resistance R_on.</p>
</div>

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

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Clock used for driving REFCLK signal. If not provided the driver assumes that clock signal is always available, its rate is specified by REF_SEL pins and a value from the primary reference clock frequencies table is used.</p>
</div>

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

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

**Exact value (<code>const</code>):** <span id="dt-882f4571b4b135d59582"><code>&#34;refclk&#34;</code></span>

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

### <code>refclk&#45;frequency</code> — not listed as required here

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

<div id="dt-edd6fc26dda9c0ed3448">
<p style="white-space: pre-wrap">Frequency of the REFCLK signal as defined by REF_SEL pins. If not provided, driver will not set rate of the REFCLK signal and assume that a value from the primary reference clock frequencies table is used.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>

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

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

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-17723ad0bbc7f42a3e70"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-3defb1f4dc0d6847a043"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-0e5d4207b2374940f9d3"></a>
> > >
> > > **<code>compatible</code> — not listed as required here**
> > >
> > > **Allowed values (<code>enum</code>):** <a id="dt-9c45a55f8d675e4490b2"></a> <span id="dt-65edd8f6f6571f594f6b"><code>&#34;smsc&#44;usb3803&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-f561e29b9d576d60869d"></a>
> >
> > **<code>bypass&#45;gpios</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

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

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-5f135e3db8ef1aa53700"></a> <span id="dt-0164887f025a095456fa"><code>&#34;bypass&#45;gpios&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-a0736b3a5f3780377b09"></a>
> >
> > **<code>initial&#45;mode</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-76edc1817006937f63c7"></a> <span id="dt-e3ebc376836519b51412"><code>1</code></span>, <span id="dt-45b09fd4e86b1f4078e0"><code>2</code></span>, <span id="dt-326e96813f304bf08516"><code>3</code></span>
>
> <a id="dt-56ef1e95d4edd6e6f24c"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-f0255e6a88a00985d33b"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-b6414692bc745b89c9ca"></a>
> >
> > **<code>initial&#45;mode</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-2ae9a52089d221b4673d"></a> <span id="dt-5964a9a48102c7c68fd1"><code>1</code></span>, <span id="dt-b0fca1c2058f3f8cd3a7"><code>2</code></span>

<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">i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    usb-hub@8 {
        compatible = "smsc,usb3503";
        reg = &lt;0x08&gt;;
        connect-gpios = &lt;&amp;gpx3 0 1&gt;;
        disabled-ports = &lt;2 3&gt;;
        intn-gpios = &lt;&amp;gpx3 4 1&gt;;
        reset-gpios = &lt;&amp;gpx3 5 1&gt;;
        initial-mode = &lt;1&gt;;
        clocks = &lt;&amp;clks 80&gt;;
        clock-names = "refclk";
    };
};
</code></pre>

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

    usb-hub@8 {
        compatible = "smsc,usb3803";
        reg = &lt;0x08&gt;;
        connect-gpios = &lt;&amp;gpx3 0 1&gt;;
        disabled-ports = &lt;2 3&gt;;
        intn-gpios = &lt;&amp;gpx3 4 1&gt;;
        reset-gpios = &lt;&amp;gpx3 5 1&gt;;
        bypass-gpios = &lt;&amp;gpx3 6 1&gt;;
        initial-mode = &lt;3&gt;;
        clocks = &lt;&amp;clks 80&gt;;
        clock-names = "refclk";
    };
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;

usb-hub {
    /* I2C is not connected */
    compatible = "smsc,usb3503";
    initial-mode = &lt;1&gt;; /* initialize in HUB mode */
    disabled-ports = &lt;1&gt;;
    intn-gpios = &lt;&amp;pio 7 5 GPIO_ACTIVE_HIGH&gt;; /* PH5 */
    reset-gpios = &lt;&amp;pio 4 16 GPIO_ACTIVE_LOW&gt;; /* PE16 */
    connect-gpios = &lt;&amp;pio 4 17 GPIO_ACTIVE_HIGH&gt;; /* PE17 */
    refclk-frequency = &lt;19200000&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</span></p>

</details>
