# Texas Instruments TWL4030 USB PHY and Comparator

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

> Device-tree binding reference for Texas Instruments TWL4030 USB PHY and Comparator.

<!-- 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;ti&#44;twl4030&#45;usb&#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;Peter Ujfalusi &#60;peter&#46;ujfalusi&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Bindings for the USB PHY and comparator module found within the TWL4030 family of companion chips. If a sibling node is compatible with "ti,twl4030-bci", the driver for that node will query this device for USB power status.</p>
</div>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;ti&#44;twl4030&#45;usb&#34;</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>

<a id="dt-985aed94c3a5de8e946a"></a>

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

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">OTG interrupt number for ID events.</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">USB interrupt number for VBUS events.</p>
> </div>

<a id="dt-53f8437d50729632eaef"></a>

### <code>usb1v5&#45;supply</code> — required here

<div id="dt-ab4a739e3d75e30f6638">
<p style="white-space: pre-wrap">Phandle to the vusb1v5 regulator.</p>
</div>

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

### <code>usb1v8&#45;supply</code> — required here

<div id="dt-8ff1f5b62b1f20aa8f75">
<p style="white-space: pre-wrap">Phandle to the vusb1v8 regulator.</p>
</div>

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

### <code>usb3v1&#45;supply</code> — required here

<div id="dt-e61623c64bddf4279473">
<p style="white-space: pre-wrap">Phandle to the vusb3v1 regulator.</p>
</div>

<a id="dt-268e0f63b9e4f8b0d8e1"></a>

### <code>usb&#95;mode</code> — required here

<div id="dt-7c05c0dc565dbe787318">
<pre><code>The mode used by the PHY to connect to the controller:
  1: ULPI mode
  2: CEA2011_3PIN mode</code></pre>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-f9828e68ae5f3359fe60"></a> <span id="dt-66ce152178171ce02cfc"><code>1</code></span>, <span id="dt-84925d1b3cfef9157925"><code>2</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-1ecd3d01b2c1b237d666"><code>0</code></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;interrupts&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;usb1v5&#45;supply&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;usb1v8&#45;supply&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;usb3v1&#45;supply&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;usb&#95;mode&#34;</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">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

usb-phy {
    compatible = "ti,twl4030-usb";

    interrupts = &lt;10 IRQ_TYPE_LEVEL_HIGH&gt;;
    interrupt-parent = &lt;&amp;gic&gt;;

    usb1v5-supply = &lt;&amp;reg_vusb1v5&gt;;
    usb1v8-supply = &lt;&amp;reg_vusb1v8&gt;;
    usb3v1-supply  = &lt;&amp;reg_vusb3v1&gt;;
    usb_mode = &lt;1&gt;;

    #phy-cells = &lt;0&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>
