# Rockchip USBDP Combo PHY with Samsung IP block

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

> Device-tree binding reference for Rockchip USBDP Combo PHY with Samsung IP block.

<!-- 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;phy&#47;phy&#45;rockchip&#45;usbdp&#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;Frank Wang &#60;frank&#46;wang&#64;rock&#45;chips&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Zhang Yubing &#60;yubing&#46;zhang&#64;rock&#45;chips&#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;rockchip&#44;rk3576&#45;usbdp&#45;phy&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;rockchip&#44;rk3588&#45;usbdp&#45;phy&#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-9e9fb083c3bbc6075c67"></a>

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

<div id="dt-fe2c7f9201e8406fc747">
<p style="white-space: pre-wrap">Cell allows setting the type of the PHY. Possible values are:
- PHY_TYPE_USB3
- PHY_TYPE_DP</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-1ecd3d01b2c1b237d666"><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>4</code></span>

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

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

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

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

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

**Item 1**

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

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;immortal&#34;</code></span>

<a id="dt-261be8310c899fd46631"></a>

**Item 3**

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

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

**Item 4**

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

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-86a6993fcd90367ac91d"><code>5</code></span>

<a id="dt-563c20491090a57ac4c9"></a>

### <code>reset&#45;names</code> — required here

<a id="dt-353fc881e5c58d1dcba1"></a>

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

<a id="dt-5629342117bd5a110a5b"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-00c19fce1fea453eab02"><code>&#34;init&#34;</code></span>

<a id="dt-80813f149d5a57545875"></a>

**Item 2**

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

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

**Item 3**

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

<a id="dt-287eaed869f3e98d6415"></a>

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-8c9a354e862a1870deaf"><code>&#34;pcs&#95;apb&#34;</code></span>

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

**Item 5**

> **Exact value (<code>const</code>):** <span id="dt-26eacf5155298b0454a2"><code>&#34;pma&#95;apb&#34;</code></span>

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

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

<div id="dt-db46ab9e1277571d0450">
<p style="white-space: pre-wrap">Single PHY regulator</p>
</div>

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

### <code>rockchip&#44;dp&#45;lane&#45;mux</code> — not listed as required here

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

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

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

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

> **Maximum value (<code>maximum</code>):** <span id="dt-338fceaa26df63c2038f"><code>3</code></span>

<div id="dt-a32ae803e37dfe766618">
<p style="white-space: pre-wrap">An array of physical Type-C lanes indexes. Position of an entry determines the DisplayPort (DP) lane index, while the value of an entry indicates physical Type-C lane. The supported DP lanes number are 2 or 4. e.g. for 2 lanes DP lanes map, we could have "rockchip,dp-lane-mux = &lt;2, 3&gt;;", assuming DP lane0 on Type-C phy lane2, DP lane1 on Type-C phy lane3. For 4 lanes DP lanes map, we could have "rockchip,dp-lane-mux = &lt;0, 1, 2, 3&gt;;", assuming DP lane0 on Type-C phy lane0, DP lane1 on Type-C phy lane1, DP lane2 on Type-C phy lane2, DP lane3 on Type-C phy lane3. If DP lanes are mapped by DisplayPort Alt mode, this property is not needed.</p>
</div>

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

### <code>rockchip&#44;u2phy&#45;grf</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9654c9ef00de7999eeb5">[<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-a1354ad6799a762273ad">
<p style="white-space: pre-wrap">Phandle to the syscon managing the 'usb2 phy general register files'.</p>
</div>

<a id="dt-27528e5341e439ab1aa5"></a>

### <code>rockchip&#44;usb&#45;grf</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fb316a4986df036a633b">[<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-4700d8450e9dacc00292">
<p style="white-space: pre-wrap">Phandle to the syscon managing the 'usb general register files'.</p>
</div>

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

### <code>rockchip&#44;usbdpphy&#45;grf</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ab351b1c02071366cf22">[<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-9318ec518edf2a311725">
<p style="white-space: pre-wrap">Phandle to the syscon managing the 'usbdp phy general register files'.</p>
</div>

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

### <code>rockchip&#44;vo&#45;grf</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fffa51971e0e8b293921">[<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-9758964546c2086e0a51">
<p style="white-space: pre-wrap">Phandle to the syscon managing the 'video output general register files'. When select the DP lane mapping will request its phandle.</p>
</div>

<a id="dt-692d8210e0671665a6e7"></a>

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

<div id="dt-19e8f95e6fab01df53af">
<p style="white-space: pre-wrap">GPIO connected to the SBU1 line of the USB-C connector via a big resistor (~100K) to apply a DC offset for signalling the connector orientation.</p>
</div>

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

<a id="dt-8297239b6d5177d5fd2c"></a>

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

<div id="dt-4cdfab0b4436f0643523">
<p style="white-space: pre-wrap">GPIO connected to the SBU2 line of the USB-C connector via a big resistor (~100K) to apply a DC offset for signalling the connector orientation.</p>
</div>

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

<a id="dt-8459239d22594ac44b38"></a>

### <code>orientation&#45;switch</code> — not listed as required here

<div id="dt-a57190793c22da672d75">
<p style="white-space: pre-wrap">Flag the port as possible handler of orientation switching</p>
</div>

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

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

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

<div id="dt-42cc91cc8269a89f15a9">
<p style="white-space: pre-wrap">Flag the port as possible handler of altmode switching</p>
</div>

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

<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">A port node to link the PHY to a TypeC controller for the purpose of handling orientation switching.</p>
</div>

**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;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;resets&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;reset&#45;names&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;&#35;phy&#45;cells&#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/clock/rockchip,rk3588-cru.h&gt;
#include &lt;dt-bindings/reset/rockchip,rk3588-cru.h&gt;

usbdp_phy0: phy@fed80000 {
  compatible = "rockchip,rk3588-usbdp-phy";
  reg = &lt;0xfed80000 0x10000&gt;;
  #phy-cells = &lt;1&gt;;
  clocks = &lt;&amp;cru CLK_USBDPPHY_MIPIDCPPHY_REF&gt;,
           &lt;&amp;cru CLK_USBDP_PHY0_IMMORTAL&gt;,
           &lt;&amp;cru PCLK_USBDPPHY0&gt;,
           &lt;&amp;u2phy0&gt;;
  clock-names = "refclk", "immortal", "pclk", "utmi";
  resets = &lt;&amp;cru SRST_USBDP_COMBO_PHY0_INIT&gt;,
           &lt;&amp;cru SRST_USBDP_COMBO_PHY0_CMN&gt;,
           &lt;&amp;cru SRST_USBDP_COMBO_PHY0_LANE&gt;,
           &lt;&amp;cru SRST_USBDP_COMBO_PHY0_PCS&gt;,
           &lt;&amp;cru SRST_P_USBDPPHY0&gt;;
  reset-names = "init", "cmn", "lane", "pcs_apb", "pma_apb";
  rockchip,u2phy-grf = &lt;&amp;usb2phy0_grf&gt;;
  rockchip,usb-grf = &lt;&amp;usb_grf&gt;;
  rockchip,usbdpphy-grf = &lt;&amp;usbdpphy0_grf&gt;;
  rockchip,vo-grf = &lt;&amp;vo0_grf&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>
