# USB Connector

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

> Device-tree binding reference for USB Connector.

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


<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;connector&#47;usb&#45;connector&#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;Rob Herring &#60;robh&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">A USB connector node represents a physical USB connector. It should be a child of a USB interface controller or a separate node when it is attached to both MUX and USB interface controller.</p>
</div>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

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

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;usb&#45;a&#45;connector&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;usb&#45;b&#45;connector&#34;</code></span>, <span id="dt-f03e1478792ca587ff5c"><code>&#34;usb&#45;c&#45;connector&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;gpio&#45;usb&#45;b&#45;connector&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;usb&#45;b&#45;connector&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-b4cf31a5f463012e1429"><code>&#34;samsung&#44;usb&#45;connector&#45;11pin&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;usb&#45;b&#45;connector&#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-0c6076cd9d6f109c5cc6"></a>

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

<div id="dt-f7c1a813bb0d2e9dd066">
<p style="white-space: pre-wrap">Symbolic name for the connector.</p>
</div>

<a id="dt-2840d338ec82f362a128"></a>

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

<div id="dt-4f249724b4ced3bbd5e1">
<p style="white-space: pre-wrap">Size of the connector, should be specified in case of non-fullsize 'usb-a-connector' or 'usb-b-connector' compatible connectors.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-a32138c48fa699f56d2d"></a> <span id="dt-16c8ece6c9a52d4b81a2"><code>&#34;mini&#34;</code></span>, <span id="dt-abccfba190a1b7965677"><code>&#34;micro&#34;</code></span>

<a id="dt-231939aeda42687872dc"></a>

### <code>self&#45;powered</code> — not listed as required here

<div id="dt-698efc30f25d7031f436">
<p style="white-space: pre-wrap">Set this property if the USB device has its own power source.</p>
</div>

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

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

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

<div id="dt-3f68631d0f952df39f24">
<p style="white-space: pre-wrap">An input gpio for USB ID pin.</p>
</div>

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

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

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

<div id="dt-e8e8d7cf3f0a5eb61e37">
<p style="white-space: pre-wrap">An input gpio for USB VBus pin, used to detect presence of VBUS 5V.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b30af7d56b5964f6e225"><code>1</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">A phandle to the regulator for USB VBUS if needed when host mode or dual role mode is supported. Particularly, if use an output GPIO to control a VBUS regulator, should model it as a regulator. See bindings/regulator/fixed-regulator.yaml</p>
</div>

<a id="dt-9310c5ec295415050c3b"></a>

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

<div id="dt-32afbf29f8c960d9228e">
<p style="white-space: pre-wrap">Determines the power role that the Type C connector will support. "dual" refers to Dual Role Port (DRP).</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-00d024300b01a2c5c701"></a> <span id="dt-3b39e1011e1c95fe2ed8"><code>&#34;source&#34;</code></span>, <span id="dt-8a2ad8ff0d3b1d624d9a"><code>&#34;sink&#34;</code></span>, <span id="dt-5f4a8e2bb67e7c592614"><code>&#34;dual&#34;</code></span>

<a id="dt-00f89ee0b39387291c31"></a>

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

<div id="dt-dc2d90b334fc5a9d00f3">
<p style="white-space: pre-wrap">Preferred power role.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-c30016fb0cf07cdd82cc"></a> <span id="dt-41147f82a9edf9a5c5c4"><code>&#34;source&#34;</code></span>, <span id="dt-5b0cb22331cc7df5de53"><code>&#34;sink&#34;</code></span>, <span id="dt-560f664ac65a4d50b051"><code>&#34;dual&#34;</code></span>

<a id="dt-4627be663e7f1c57649e"></a>

### <code>data&#45;role</code> — not listed as required here

<div id="dt-b393d954b2e4f2c15302">
<p style="white-space: pre-wrap">Data role if Type C connector supports USB data. "dual" refers Dual Role Device (DRD).</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-92cf36d4baf6d92e7137"></a> <span id="dt-fd8351e259312a259c11"><code>&#34;host&#34;</code></span>, <span id="dt-438088a930b6e2fb058c"><code>&#34;device&#34;</code></span>, <span id="dt-0c647a94bb17d5bd858f"><code>&#34;dual&#34;</code></span>

<a id="dt-96ba5ca8afbc97217303"></a>

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

<div id="dt-975868b7b57fef702282">
<p style="white-space: pre-wrap">Determines the power operation mode that the Type C connector will support and will advertise through CC pins when it has no power delivery support. - "default" corresponds to default USB voltage and current defined by the USB 2.0 and USB 3.2 specifications, 5V 500mA for USB 2.0 ports and 5V 900mA or 1500mA for USB 3.2 ports in single-lane or dual-lane operation respectively. - "1.5A" and "3.0A", 5V 1.5A and 5V 3.0A respectively, as defined in USB Type-C Cable and Connector specification, when Power Delivery is not supported.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-91c30edc64d2e64c842b"></a> <span id="dt-1a8f3cddc24ae6ba485e"><code>&#34;default&#34;</code></span>, <span id="dt-05e6b51626b574b757e0"><code>&#34;1&#46;5A&#34;</code></span>, <span id="dt-d0b174bda642c3d2f4f1"><code>&#34;3&#46;0A&#34;</code></span>

<a id="dt-64be3b85504801e688e5"></a>

### <code>pd&#45;disable</code> — not listed as required here

<div id="dt-bfb561cd9a0af234a1c5">
<p style="white-space: pre-wrap">Set this property if the Type-C connector has no power delivery support.</p>
</div>

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

<a id="dt-3686badf6926defe6256"></a>

### <code>sink&#45;vdos</code> — not listed as required here

<div id="dt-1f2e4b0b9f6a3e4ecac0">
<p style="white-space: pre-wrap">An array of u32 with each entry, a Vendor Defined Message Object (VDO), providing additional information corresponding to the product, the detailed bit definitions and the order of each VDO can be found in "USB Power Delivery Specification Revision 3.0, Version 2.0 + ECNs 2020-12-10" chapter 6.4.4.3.1 Discover Identity. User can specify the VDO array via VDO_IDH/_CERT/_PRODUCT/_UFP/_DFP/_PCABLE/_ACABLE(1/2)/_VPD() defined in dt-bindings/usb/pd.h.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-6bab62b81be9c2a3c6e2"><code>3</code></span>

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

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

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

### <code>sink&#45;vdos&#45;v1</code> — not listed as required here

<div id="dt-8f09875d242a86067491">
<p style="white-space: pre-wrap">An array of u32 with each entry, a Vendor Defined Message Object (VDO), providing additional information corresponding to the product, the detailed bit definitions and the order of each VDO can be found in "USB Power Delivery Specification Revision 2.0, Version 1.3" chapter 6.4.4.3.1 Discover Identity. User can specify the VDO array via VDO_IDH/_CERT/_PRODUCT/_CABLE/_AMA defined in dt-bindings/usb/pd.h.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-930f553140ab62324540"><code>3</code></span>

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

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

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

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

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

<div id="dt-0c1c99f77d328d8f6672">
<p style="white-space: pre-wrap">Whether the device supports Audio Adapter Accessory Mode. This is only necessary if there are no other means to discover supported alternative modes (e.g. through the UCSI firmware interface).</p>
</div>

<a id="dt-1333cf7131091a044eb6"></a>

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

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

<div id="dt-921183305793d44aa1a8">
<p style="white-space: pre-wrap">Whether the device supports Debug Accessory Mode. This is only necessary if there are no other means to discover supported alternative modes (e.g. through the UCSI firmware interface).</p>
</div>

<a id="dt-473181a88b824ead8864"></a>

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

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

<div id="dt-248a659ad095b910ce6c">
<p style="white-space: pre-wrap">List of Alternative Modes supported by the schematics on the particular device. This is only necessary if there are no other means to discover supported alternative modes (e.g. through the UCSI firmware interface).</p>
</div>

<a id="dt-d5730a9ac0da95717072"></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-2b3faa7e3d2aa4d38d52"></a>

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

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

**<code>&#94;&#40;displayport&#41;&#36;</code> — name matches this regular expression**

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

<div id="dt-4e2f7c03ca8f3d4221d1">
<p style="white-space: pre-wrap">A single USB-C Alternative Mode as supported by the USB-C connector logic.</p>
</div>

<a id="dt-eb6086dc0f6d341c318c"></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-8efc295bed6dfbabedef"></a>

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

<a id="dt-136f5af97404ac72ec50"></a>

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

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

<div id="dt-7184d5ae175fca090aa1">
<p style="white-space: pre-wrap">Unique value assigned by USB-IF to the Vendor / AltMode.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-e690f70098da3654e1b4"></a> <span id="dt-d7519eafaf0a818264cd"><code>65281</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fc97129897f08975dbcb">[<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-0401fc887fe11022a9b3">
<p style="white-space: pre-wrap">VDO returned by Discover Modes USB PD command.</p>
</div>

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

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

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

<div id="dt-0cd71b006a1fcbec8daa">
<p style="white-space: pre-wrap">OF graph bindings modeling a data bus to the connector, e.g. there is a single High Speed (HS) port present in this connector. If there is more than one bus (several port, with 'reg' property), they can be grouped under 'ports'.</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">OF graph bindings modeling any data bus to the connector unless the bus is between parent node and the connector. Since a single connector can have multiple data buses every bus has an assigned OF graph port number as described below.</p>
</div>

<a id="dt-076265030fa616d9c245"></a>

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

<a id="dt-16a3f454af238f04e210"></a>

**<code>port&#64;0</code> — required here**

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

<div id="dt-b1724f7738be96ef356e">
<p style="white-space: pre-wrap">High Speed (HS), present in all connectors.</p>
</div>

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

**<code>port&#64;1</code> — not listed as required here**

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

<div id="dt-0fa4b11c6410ab72ea2f">
<p style="white-space: pre-wrap">Super Speed (SS), present in SS capable connectors.</p>
</div>

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

**<code>port&#64;2</code> — not listed as required here**

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

<div id="dt-2494ba4fb5f1dc4cb38b">
<p style="white-space: pre-wrap">Sideband Use (SBU), present in USB-C. This describes the alternate mode connection of which SBU is a part.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-2491871393415320c88c"></a> <span id="dt-95e4854181be8c873eb8"><code>&#34;port&#64;0&#34;</code></span>

<a id="dt-705473f1bb8041d1eb39"></a>

### <code>new&#45;source&#45;frs&#45;typec&#45;current</code> — not listed as required here

<div id="dt-b3af72e7af61a318ffce">
<p style="white-space: pre-wrap">Initial current capability of the new source when vSafe5V is applied during PD3.0 Fast Role Swap. "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, Version 1.2" provides the different power levels and "6.4.1.3.1.6 Fast Role Swap USB Type-C Current" provides a detailed description of the field. The sink PDO from current source reflects the current source's(i.e. transmitter of the FRS signal) power requirement during fr swap. The current sink (i.e. receiver of the FRS signal), a.k.a new source, should check if it will be able to satisfy the current source's, new sink's, requirement during frswap before enabling the frs signal reception. This property refers to maximum current capability that the current sink can satisfy. During FRS, VBUS voltage is at 5V, as the partners are in implicit contract, hence, the power level is only a function of the current capability. "1" refers to default USB power level as described by "Table 6-14 Fixed Supply PDO - Sink". "2" refers to 1.5A@5V. "3" refers to 3.0A@5V.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-40310a3a84286598516d">[<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-ba50610447d84a2b3c9f"></a> <span id="dt-c65f76042c13ee07cb01"><code>1</code></span>, <span id="dt-c1e95858c8d4f6a822c5"><code>2</code></span>, <span id="dt-0f2bab032f9fcf248515"><code>3</code></span>

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

### <code>slow&#45;charger&#45;loop</code> — not listed as required here

<div id="dt-35d005bb836e5c344647">
<p style="white-space: pre-wrap">Allows PMIC charger loops which are slow(i.e. cannot meet the 15ms deadline) to still comply to pSnkStby i.e Maximum power that can be consumed by sink while in Sink Standby state as defined in 7.4.2 Sink Electrical Parameters of USB Power Delivery Specification Revision 3.0, Version 1.2. When the property is set, the port requests pSnkStby(2.5W - 5V@500mA) upon entering SNK_DISCOVERY(instead of 3A or the 1.5A, Rp current advertised, during SNK_DISCOVERY) and the actual current limit after reception of PS_Ready for PD link or during SNK_READY for non-pd link.</p>
</div>

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

<a id="dt-427bce7e641cf2d750b3"></a>

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

<div id="dt-a49d11861fb4f38264a7">
<p style="white-space: pre-wrap">A child node to contain all the selectable USB Power Delivery capabilities.</p>
</div>

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

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

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

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

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

<div id="dt-01e3f6798d8611d7fa75">
<p style="white-space: pre-wrap">Child nodes under "capabilities" node. Each node contains a selectable USB Power Delivery capability.</p>
</div>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2883c2926a3e9f7e5de3">[<code>&#35;&#47;&#36;defs&#47;capabilities</code>](<#dt-78a48f3f8593c27e08e4>)</span>

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

<a id="dt-d78b4fea01e37be26014"></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-38b9cefe0b9788f83cd2"></a>

### <code>sink&#45;wait&#45;cap&#45;time&#45;ms</code> — not listed as required here

<div id="dt-46a68af67878e629180c">
<p style="white-space: pre-wrap">Represents the max time in ms that USB Type-C port (in sink role) should wait for the port partner (source role) to send source caps. SinkWaitCap timer starts when port in sink role attaches to the source. This timer will stop when sink receives PD source cap advertisement before timeout in which case it'll move to capability negotiation stage. A timeout leads to a hard reset message by the port.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-377597a72e7bd545c64c"><code>310</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-9b0d5b72c3f4bcce116f"><code>620</code></span>

**Default value (<code>default</code>):** <span id="dt-2e0e686c8c5f0daab7eb"><code>310</code></span>

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

### <code>ps&#45;source&#45;off&#45;time&#45;ms</code> — not listed as required here

<div id="dt-d80a9b08a4938b35c26a">
<p style="white-space: pre-wrap">Represents the max time in ms that a DRP in source role should take to turn off power after the PsSourceOff timer starts. PsSourceOff timer starts when a sink's PHY layer receives EOP of the GoodCRC message (corresponding to an Accept message sent in response to a PR_Swap or a FR_Swap request). This timer stops when last bit of GoodCRC EOP corresponding to the received PS_RDY message is transmitted by the PHY layer. A timeout shall lead to error recovery in the type-c port.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-5a2d7e456fdb7de766da"><code>750</code></span>

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

**Default value (<code>default</code>):** <span id="dt-085b216a1d8238c618fa"><code>920</code></span>

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

### <code>cc&#45;debounce&#45;time&#45;ms</code> — not listed as required here

<div id="dt-c9ffdfed33f5368ba3a8">
<p style="white-space: pre-wrap">Represents the max time in ms that a port shall wait to determine if it's attached to a partner.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-590a6e536650b58eadde"><code>100</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-8dc94882e546181731a2"><code>200</code></span>

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

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

### <code>sink&#45;bc12&#45;completion&#45;time&#45;ms</code> — not listed as required here

<div id="dt-9a82ca1378625a59b6df">
<p style="white-space: pre-wrap">Represents the max time in ms that a port in sink role takes to complete Battery Charger (BC1.2) Detection. BC1.2 detection is a hardware mechanism, which in some TCPC implementations, can run in parallel once the Type-C connection state machine reaches the "potential connect as sink" state. In TCPCs where this causes delays to respond to the incoming PD messages, sink-bc12-completion-time-ms is used to delay PD negotiation till BC1.2 detection completes.</p>
</div>

**Default value (<code>default</code>):** <span id="dt-7ff650b32df6c53a8091"><code>0</code></span>

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

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

<div id="dt-c0ccda32cbf1ff17a15f">
<p style="white-space: pre-wrap">Specifies the maximum USB PD revision and version supported by the connector. This property is specified in the following order; &lt;revision_major, revision_minor, version_major, version_minor&gt;.</p>
</div>

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

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

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

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

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

### <code>pd&#45;disable</code> — applies when this property is present

Also requires: <span id="dt-1b2e6d4e435455678677"><code>&#34;typec&#45;power&#45;opmode&#34;</code></span>

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

### <code>sink&#45;vdos&#45;v1</code> — applies when this property is present

Also requires: <span id="dt-db38437bb907f4f6aca8"><code>&#34;sink&#45;vdos&#34;</code></span>

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

### <code>sink&#45;vdos</code> — applies when this property is present

Also requires: <span id="dt-66235e17ab396e4516ff"><code>&#34;sink&#45;vdos&#45;v1&#34;</code></span>

**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-7fcd144dee0d1b44122a"></a>

## Reusable definitions (<code>&#36;defs</code>)

<a id="dt-78a48f3f8593c27e08e4"></a>

### <code>capabilities</code>

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

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

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

<a id="dt-58a551d7cddf282b7705"></a>

**<code>source&#45;pdos</code> — not listed as required here**

<div id="dt-bec0eca6d6f3126432ab">
<p style="white-space: pre-wrap">An array of u32 with each entry providing supported power source data object(PDO), the detailed bit definitions of PDO can be found in "Universal Serial Bus Power Delivery Specification" chapter 6.4.1.2 Source_Capabilities Message, the order of each entry(PDO) should follow the PD spec chapter 6.4.1. Required for power source and power dual role. User can specify the source PDO array via PDO_FIXED/BATT/VAR/PPS_APDO() defined in dt-bindings/usb/pd.h.</p>
</div>

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

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

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

<a id="dt-2884aa722a697b483a4e"></a>

**<code>sink&#45;pdos</code> — not listed as required here**

<div id="dt-0da8a864f1c63d519ec0">
<p style="white-space: pre-wrap">An array of u32 with each entry providing supported power sink data object(PDO), the detailed bit definitions of PDO can be found in "Universal Serial Bus Power Delivery Specification" chapter 6.4.1.3 Sink Capabilities Message, the order of each entry(PDO) should follow the PD spec chapter 6.4.1. Required for power sink and power dual role. User can specify the sink PDO array via PDO_FIXED/BATT/VAR/PPS_APDO() defined in dt-bindings/usb/pd.h.</p>
</div>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-451053cfcf7629e14bdd"><code>7</code></span>

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

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

**<code>op&#45;sink&#45;microwatt</code> — not listed as required here**

<div id="dt-56215b4f735ab5d80cef">
<p style="white-space: pre-wrap">Sink required operating power in microwatt, if source can't offer the power, Capability Mismatch is set. Required for power sink and power dual role.</p>
</div>

<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>&#35;&#47;&#36;defs&#47;capabilities</code>](<#dt-78a48f3f8593c27e08e4>)</span>

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

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;gpio&#45;usb&#45;b&#45;connector&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-dbf42e47ebd8dde9644a"></a>
> >
> > **At least one of these rules must match (<code>anyOf</code>)**
> >
> > <a id="dt-bfa5828228cdde9ef998"></a>
> >
> > **Rule 1**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-30a0f2b90b1576a78030"></a> <span id="dt-84cab12c4995c4cf5e18"><code>&#34;vbus&#45;gpios&#34;</code></span>
> >
> > <a id="dt-dccdc63ee462e2788bdb"></a>
> >
> > **Rule 2**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-9264327a132c9c772072"></a> <span id="dt-86c335d6371f2f3d6d37"><code>&#34;id&#45;gpios&#34;</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8cd5c6ac7cc13c2d9acf"><code>&#34;samsung&#44;usb&#45;connector&#45;11pin&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-d19310053cdacb6320d1"></a>
> >
> > **<code>type</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-f5d1e4bd55d6bc9a4ced"><code>&#34;micro&#34;</code></span>

<a id="dt-413065af65ac6af8f24e"></a>

## At least one of these rules must match (<code>anyOf</code>)

<a id="dt-96eb361b08260472facb"></a>

### Rule 1

> <a id="dt-0aea0e4e305c55d6892a"></a>
>
> #### This rule must not match (<code>not</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-0f0e795d4fa1bbada7ae"></a> <span id="dt-96b4a0fa0db3ccd14e96"><code>&#34;typec&#45;power&#45;opmode&#34;</code></span>, <span id="dt-b7d1044b3d230d274700"><code>&#34;new&#45;source&#45;frs&#45;typec&#45;current&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">muic-max77843 {
    usb_con1: connector {
        compatible = "usb-b-connector";
        label = "micro-USB";
        type = "micro";
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">ccic: s2mm005 {
    usb_con2: connector {
        compatible = "usb-c-connector";
        label = "USB-C";

        altmodes {
            displayport {
                svid = /bits/ 16 &lt;0xff01&gt;;
                vdo = &lt;0x00001c46&gt;;
            };
        };

        ports {
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;

            port@0 {
                reg = &lt;0&gt;;
                usb_con_hs: endpoint {
                    remote-endpoint = &lt;&amp;max77865_usbc_hs&gt;;
                };
            };
            port@1 {
                reg = &lt;1&gt;;
                usb_con_ss: endpoint {
                    remote-endpoint = &lt;&amp;usbdrd_phy_ss&gt;;
                };
            };
            port@2 {
                reg = &lt;2&gt;;
                usb_con_sbu: endpoint {
                    remote-endpoint = &lt;&amp;dp_aux&gt;;
                };
            };
        };
    };
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">#include &lt;dt-bindings/usb/pd.h&gt;
typec: ptn5110 {
    usb_con3: connector {
        compatible = "usb-c-connector";
        label = "USB-C";
        power-role = "dual";
        try-power-role = "sink";
        source-pdos = &lt;PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)&gt;;
        sink-pdos = &lt;PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)
                     PDO_VAR(5000, 12000, 2000)&gt;;
        op-sink-microwatt = &lt;10000000&gt;;
        sink-wait-cap-time-ms = &lt;465&gt;;
        ps-source-off-time-ms = &lt;835&gt;;
        cc-debounce-time-ms = &lt;101&gt;;
        sink-bc12-completion-time-ms = &lt;500&gt;;
    };
};
</code></pre>

<pre id="dt-cf8a683b5a963eb1c566"><code class="language-dts">connector {
    compatible = "usb-c-connector";
    label = "USB-C";

    port {
        high_speed_ep: endpoint {
            remote-endpoint = &lt;&amp;usb_hs_ep&gt;;
        };
    };
};
</code></pre>

<pre id="dt-89dd782fdab7d446b5b9"><code class="language-dts">connector {
    compatible = "usb-c-connector";
    label = "USB-C";
    data-role = "dual";

    ports {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;
        port@0 {
            reg = &lt;0&gt;;
            hs_ep: endpoint {
                remote-endpoint = &lt;&amp;usb3_hs_ep&gt;;
            };
        };
        port@1 {
            reg = &lt;1&gt;;
            ss_ep: endpoint {
                remote-endpoint = &lt;&amp;hd3ss3220_in_ep&gt;;
            };
        };
    };
};
</code></pre>

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

usb {
    connector {
        compatible = "gpio-usb-b-connector", "usb-b-connector";
        type = "micro";
        id-gpios = &lt;&amp;pio 12 GPIO_ACTIVE_HIGH&gt;;
        vbus-supply = &lt;&amp;usb_p0_vbus&gt;;
    };
};
</code></pre>

<pre id="dt-f015148604ca561352a9"><code class="language-dts">muic-max77843 {
    usb_con4: connector {
        compatible = "samsung,usb-connector-11pin", "usb-b-connector";
        label = "micro-USB";
        type = "micro";

        ports {
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;

            port@0 {
                reg = &lt;0&gt;;
                muic_to_usb: endpoint {
                    remote-endpoint = &lt;&amp;usb_to_muic&gt;;
                };
            };
            port@3 {
                reg = &lt;3&gt;;
                usb_con_mhl: endpoint {
                    remote-endpoint = &lt;&amp;sii8620_mhl&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</span></p>

<p id="dt-comment-1"><strong>Line 53:</strong> <span> The following are optional properties for "usb-b-connector".</span></p>

<p id="dt-comment-2"><strong>Line 119:</strong> <span> The following are optional properties for "usb-c-connector" with power</span></p>

<p id="dt-comment-3"><strong>Line 120:</strong> <span> delivery support.</span></p>

<p id="dt-comment-4"><strong>Line 378:</strong> <span> Micro-USB connector with HS lines routed via controller (MUIC).</span></p>

<p id="dt-comment-5"><strong>Line 388:</strong> <span> USB-C connector attached to CC controller (s2mm005), HS lines routed</span></p>

<p id="dt-comment-6"><strong>Line 389:</strong> <span> to companion PMIC (max77865), SS lines to USB3 PHY and SBU to DisplayPort.</span></p>

<p id="dt-comment-7"><strong>Line 390:</strong> <span> DisplayPort video lines are routed to the connector via SS mux in USB3 PHY.</span></p>

<p id="dt-comment-8"><strong>Line 430:</strong> <span> USB-C connector attached to a typec port controller(ptn5110), which has</span></p>

<p id="dt-comment-9"><strong>Line 431:</strong> <span> power delivery support, explicitly defines time properties and enables drp.</span></p>

<p id="dt-comment-10"><strong>Line 451:</strong> <span> USB-C connector attached to SoC with a single High-Speed controller</span></p>

<p id="dt-comment-11"><strong>Line 464:</strong> <span> USB-C connector attached to SoC and USB3 typec port controller(hd3ss3220)</span></p>

<p id="dt-comment-12"><strong>Line 465:</strong> <span> with SS 2:1 MUX. HS lines routed to SoC, SS lines routed to the MUX and</span></p>

<p id="dt-comment-13"><strong>Line 466:</strong> <span> the output of MUX is connected to the SoC.</span></p>

<p id="dt-comment-14"><strong>Line 491:</strong> <span> USB connector with GPIO control lines</span></p>

<p id="dt-comment-15"><strong>Line 504:</strong> <span> Micro-USB connector with HS lines routed via controller (MUIC) and MHL</span></p>

<p id="dt-comment-16"><strong>Line 505:</strong> <span> lines connected to HDMI-MHL bridge (sii8620) on Samsung Exynos5433-based</span></p>

<p id="dt-comment-17"><strong>Line 506:</strong> <span> mobile phone</span></p>

</details>
