# MediaTek T-PHY Controller

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

> Device-tree binding reference for MediaTek T-PHY Controller.

<!-- 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;mediatek&#44;tphy&#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;Chunfeng Yun &#60;chunfeng&#46;yun&#64;mediatek&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The T-PHY controller supports physical layer functionality for a number of
controllers on MediaTek SoCs, includes USB2.0, USB3.0, PCIe and SATA.</p>
<pre><code>Layout differences of banks between T-PHY V1 (mt8173/mt2701) and
T-PHY V2 (mt2712) / V3 (mt8195) when works on USB mode:
-----------------------------------
Version 1:
port        offset    bank
shared      0x0000    SPLLC
            0x0100    FMREG
u2 port0    0x0800    U2PHY_COM
u3 port0    0x0900    U3PHYD
            0x0a00    U3PHYD_BANK2
            0x0b00    U3PHYA
            0x0c00    U3PHYA_DA
u2 port1    0x1000    U2PHY_COM
u3 port1    0x1100    U3PHYD
            0x1200    U3PHYD_BANK2
            0x1300    U3PHYA
            0x1400    U3PHYA_DA
u2 port2    0x1800    U2PHY_COM
            ...</code></pre>
<pre><code>Version 2/3:
port        offset    bank
u2 port0    0x0000    MISC
            0x0100    FMREG
            0x0300    U2PHY_COM
u3 port0    0x0700    SPLLC
            0x0800    CHIP
            0x0900    U3PHYD
            0x0a00    U3PHYD_BANK2
            0x0b00    U3PHYA
            0x0c00    U3PHYA_DA
u2 port1    0x1000    MISC
            0x1100    FMREG
            0x1300    U2PHY_COM
u3 port1    0x1700    SPLLC
            0x1800    CHIP
            0x1900    U3PHYD
            0x1a00    U3PHYD_BANK2
            0x1b00    U3PHYA
            0x1c00    U3PHYA_DA
u2 port2    0x2000    MISC
            ...</code></pre>
<p style="white-space: pre-wrap">SPLLC shared by u3 ports and FMREG shared by u2 ports on V1 are put back
into each port; a new bank MISC for u2 ports and CHIP for u3 ports are
added on V2; the FMREG bank for slew rate calibration is not used anymore
and reserved on V3;</p>
</div>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;t&#45;phy&#40;&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#41;&#63;&#36;&#34;</code></span>

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

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;mediatek&#44;mt2701&#45;tphy&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;mediatek&#44;mt7623&#45;tphy&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;mediatek&#44;mt7622&#45;tphy&#34;</code></span>, <span id="dt-6cbdeefc52e7132bc62c"><code>&#34;mediatek&#44;mt8516&#45;tphy&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;mediatek&#44;generic&#45;tphy&#45;v1&#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**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;mediatek&#44;mt2712&#45;tphy&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;mediatek&#44;mt6893&#45;tphy&#34;</code></span>, <span id="dt-bdca084879537277097b"><code>&#34;mediatek&#44;mt7629&#45;tphy&#34;</code></span>, <span id="dt-922f7901d25b667972ac"><code>&#34;mediatek&#44;mt7981&#45;tphy&#34;</code></span>, <span id="dt-eb61ad381053476dae55"><code>&#34;mediatek&#44;mt7986&#45;tphy&#34;</code></span>, <span id="dt-05b29c21ca38ad337d53"><code>&#34;mediatek&#44;mt8183&#45;tphy&#34;</code></span>, <span id="dt-93c2763ada782db7e26c"><code>&#34;mediatek&#44;mt8186&#45;tphy&#34;</code></span>, <span id="dt-36a81d983bbaf2a6b89d"><code>&#34;mediatek&#44;mt8192&#45;tphy&#34;</code></span>, <span id="dt-bbccc6a1a74023520617"><code>&#34;mediatek&#44;mt8365&#45;tphy&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;mediatek&#44;generic&#45;tphy&#45;v2&#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**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-9d5b9f6fd2f9759f6e43"></a> <span id="dt-73fb2f4b762df7b35870"><code>&#34;mediatek&#44;mt8188&#45;tphy&#34;</code></span>, <span id="dt-4f2dd487e4b2e6e79827"><code>&#34;mediatek&#44;mt8195&#45;tphy&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;mediatek&#44;generic&#45;tphy&#45;v3&#34;</code></span>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> **Exact value (<code>const</code>):** <span id="dt-bb8aa9a35453860e510c"><code>&#34;mediatek&#44;mt2701&#45;u3phy&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-ba05b6c8f32e17e92b62"><code>true</code></span>

<a id="dt-6932ba24e194ea67730d"></a>

**Rule 5**

> **Exact value (<code>const</code>):** <span id="dt-db09842262b0bfa9d4c5"><code>&#34;mediatek&#44;mt2712&#45;u3phy&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-d907917c0634ece2cf1f"><code>true</code></span>

<a id="dt-264a99ec2691e9f8d8d2"></a>

**Rule 6**

> **Exact value (<code>const</code>):** <span id="dt-c300a8811f2c7ccc81ad"><code>&#34;mediatek&#44;mt8173&#45;u3phy&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Register shared by multiple ports, exclude port's private register. It is needed for T-PHY V1, such as mt2701 and mt8173, but not for T-PHY V2/V3, such as mt2712.</p>
</div>

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-01d9ce7fc56f712455be"></a> <span id="dt-94d3735d14e27e2d7df1"><code>1</code></span>, <span id="dt-0dda607ef98de398e3f7"><code>2</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-11f8fcdf7ed0ce5274ad"></a> <span id="dt-1df5884131042d9f2b35"><code>1</code></span>, <span id="dt-0d778c9f0ef0966b501c"><code>2</code></span>

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

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

<code>true</code> — No constraints added by this property rule.

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

### <code>mediatek&#44;src&#45;ref&#45;clk&#45;mhz</code> — not listed as required here

<div id="dt-7cac080f3204ca289ec6">
<p style="white-space: pre-wrap">Frequency of reference clock for slew rate calibrate</p>
</div>

**Default value (<code>default</code>):** <span id="dt-976f2eb64ded9a4580b8"><code>26</code></span>

<a id="dt-039be3e55f048060f147"></a>

### <code>mediatek&#44;src&#45;coef</code> — not listed as required here

<div id="dt-e6cee8377f48305cc7a4">
<p style="white-space: pre-wrap">Coefficient for slew rate calibrate, depends on SoC process</p>
</div>

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

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

<a id="dt-030bda573e8c53177f1a"></a>

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

<div id="dt-33c740e5969dba94b4e6">
<p style="white-space: pre-wrap">The TPHY of MediaTek should exist within a power domain. The developer should be aware that the hardware design of MediaTek TPHY does not require the addition of MTCMOS. If the power to the TPHY is turned off, it will impact other functions. From the current perspective of USB hardware design, even if MTCMOS is added to the TPHY, it should remain always on.</p>
</div>

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

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

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

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

### <code>&#94;&#40;usb&#124;pcie&#124;sata&#41;&#45;phy&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

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

<div id="dt-ba27c87884e2fd382c5e">
<p style="white-space: pre-wrap">A sub-node is required for each port the controller provides. Address range information including the usual 'reg' property is used inside these nodes to describe the controller's topology.</p>
</div>

<a id="dt-52335465529c430b3b2a"></a>

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

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

**<code>reg</code> — required here**

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

<a id="dt-98a9623cdb7abed56002"></a>

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

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

<a id="dt-04e8a735bb42d93a756e"></a>

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

<a id="dt-320dcb64fd22d6c74018"></a>

**Item 1**

> <div id="dt-73bcccf3bf8bfa4f1b12">
> <p style="white-space: pre-wrap">Reference clock, (HS is 48Mhz, SS/P is 24~27Mhz)</p>
> </div>

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

**Item 2**

> <div id="dt-c8c4fefac9d63bc1d449">
> <p style="white-space: pre-wrap">Reference clock of analog phy</p>
> </div>

<div id="dt-d8a86ab57cc5f56b37d5">
<p style="white-space: pre-wrap">Uses both clocks if the clock of analog and digital phys are separated, otherwise uses "ref" clock only if needed.</p>
</div>

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

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

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

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

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

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

**Item 1**

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

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-d4f59cb8b02769a2036c"><code>&#34;da&#95;ref&#34;</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-78b2f6d250108fd87ff8"><code>1</code></span>

<div id="dt-8453d407df165908b916">
<p style="white-space: pre-wrap">The cells contain the following arguments.</p>
<pre><code>- description: The PHY type
    enum:
      - PHY_TYPE_USB2
      - PHY_TYPE_USB3
      - PHY_TYPE_PCIE
      - PHY_TYPE_SATA
      - PHY_TYPE_SGMII</code></pre>
</div>

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

**<code>nvmem&#45;cells</code> — not listed as required here**

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

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

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

**Item 1**

> <div id="dt-77644faa6fc8bff7c606">
> <p style="white-space: pre-wrap">internal R efuse for U2 PHY or U3/PCIe PHY</p>
> </div>

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

**Item 2**

> <div id="dt-a31037c1177868cc0095">
> <p style="white-space: pre-wrap">rx_imp_sel efuse for U3/PCIe PHY</p>
> </div>

<a id="dt-7206744d9dcf936142bb"></a>

**Item 3**

> <div id="dt-93c1aa91534f9f955d37">
> <p style="white-space: pre-wrap">tx_imp_sel efuse for U3/PCIe PHY</p>
> </div>

<div id="dt-1f8e23ae78e46b29c378">
<p style="white-space: pre-wrap">Phandles to nvmem cell that contains the efuse data;
Available only for U2 PHY or U3/PCIe PHY of version 2/3, these
three items should be provided at the same time for U3/PCIe PHY,
when use software to load efuse;
If unspecified, will use hardware auto-load efuse.</p>
</div>

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

**<code>nvmem&#45;cell&#45;names</code> — not listed as required here**

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

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

<a id="dt-37f96bcf58938ecaad53"></a>

**Item 1**

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

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-4320fdb8bf406631210c"><code>&#34;rx&#95;imp&#34;</code></span>

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

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-1470eec4d9133d031836"><code>&#34;tx&#95;imp&#34;</code></span>

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

**<code>mediatek&#44;eye&#45;src</code> — not listed as required here**

<div id="dt-c2d5782e2a728b5d57ed">
<p style="white-space: pre-wrap">The value of slew rate calibrate (U2 phy)</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-36d55ac733121b1f51a1"><code>1</code></span>

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

<a id="dt-31577882a36f03b35c6d"></a>

**<code>mediatek&#44;eye&#45;vrt</code> — not listed as required here**

<div id="dt-6421bc7d48c8dc4ac5fc">
<p style="white-space: pre-wrap">The selection of VRT reference voltage (U2 phy)</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-abafb27c4de2d0ad42d6"><code>1</code></span>

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

<a id="dt-516c834316a55abe7488"></a>

**<code>mediatek&#44;eye&#45;term</code> — not listed as required here**

<div id="dt-97608bafcb0439699453">
<p style="white-space: pre-wrap">The selection of HS_TX TERM reference voltage (U2 phy)</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-27275dc5b3925e946e06"><code>1</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-6b521cd01bae024ea8c0"><code>7</code></span>

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

**<code>mediatek&#44;intr</code> — not listed as required here**

<div id="dt-2d68f735ea4a588d81f1">
<p style="white-space: pre-wrap">The selection of internal resistor (U2 phy)</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-a25ea1d9f2756747b6ad"><code>1</code></span>

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

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

**<code>mediatek&#44;discth</code> — not listed as required here**

<div id="dt-3fd34d188da1ee1de418">
<p style="white-space: pre-wrap">The selection of disconnect threshold (U2 phy)</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-12256a77580eea34a936"><code>1</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-5e14d7d3c04333b9cf81"><code>15</code></span>

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

**<code>mediatek&#44;pre&#45;emphasis</code> — not listed as required here**

<div id="dt-5770df7a6bcb77aba193">
<p style="white-space: pre-wrap">The level of pre-emphasis which used to widen the eye opening and boost eye swing, the unit step is about 4.16% increment; e.g. the level 1 means amplitude increases about 4.16%, the level 2 is about 8.3% etc. (U2 phy)</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-3e5deb5e36e7c66fb101"><code>1</code></span>

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

<a id="dt-642464a6c404604456ef"></a>

**<code>mediatek&#44;bc12</code> — not listed as required here**

<div id="dt-93e24e069120145bcce1">
<p style="white-space: pre-wrap">Specify the flag to enable BC1.2 if support it</p>
</div>

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

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

**<code>mediatek&#44;force&#45;mode</code> — not listed as required here**

<div id="dt-739f228693c64b109a0c">
<p style="white-space: pre-wrap">The force mode is used to manually switch the shared phy mode between USB3 and PCIe, when USB3 phy type is selected by the consumer, and force-mode is set, will cause phy's power and pipe toggled and force phy as USB3 mode which switched from default PCIe mode. But prefer to use the property "mediatek,syscon-type" for newer SoCs that support it.</p>
</div>

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

<a id="dt-57b4f0cf6e2cbe93c955"></a>

**<code>mediatek&#44;syscon&#45;type</code> — not listed as required here**

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

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

<div id="dt-f16a7cf4a70b525fb12b">
<p style="white-space: pre-wrap">A phandle to syscon used to access the register of type switch, the field should always be 3 cells long.</p>
</div>

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

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

> <a id="dt-39ee48a230dac9c39f6e"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-86e69f72c19ff496cf68"></a>
>
> **Item 1**
>
> > <div id="dt-32bb2ee0998c325b93c6">
> > <p style="white-space: pre-wrap">The first cell represents a phandle to syscon</p>
> > </div>
>
> <a id="dt-cffcad2978eb5c70d44b"></a>
>
> **Item 2**
>
> > <div id="dt-9c3d339435be8424c79d">
> > <p style="white-space: pre-wrap">The second cell represents the register offset</p>
> > </div>
>
> <a id="dt-e9d0a4a1cfe93efe400a"></a>
>
> **Item 3**
>
> > <div id="dt-8e3261283ba6e46afb95">
> > <p style="white-space: pre-wrap">The third cell represents the index of config segment</p>
> > </div>
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-370b9175e4674ea2cc81"></a> <span id="dt-e6f7b565920de929c9d0"><code>0</code></span>, <span id="dt-87335f292295ff34c1bd"><code>1</code></span>, <span id="dt-76dcdbe7f14d4ff3758b"><code>2</code></span>, <span id="dt-0abe39ba72a8fbe289a4"><code>3</code></span>

**Required in this object (<code>required</code>):** <a id="dt-31b666e3bb209d64ebc2"></a> <span id="dt-c7cdacb398cb46fc3ac9"><code>&#34;reg&#34;</code></span>, <span id="dt-8508104b39817bebcb76"><code>&#34;&#35;phy&#45;cells&#34;</code></span>

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

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

<code>false</code>

Not 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;&#35;address&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ranges&#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/mt8173-clk.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
#include &lt;dt-bindings/phy/phy.h&gt;
usb@11271000 {
    compatible = "mediatek,mt8173-mtu3", "mediatek,mtu3";
    reg = &lt;0x11271000 0x3000&gt;, &lt;0x11280700 0x0100&gt;;
    reg-names = "mac", "ippc";
    phys = &lt;&amp;u2port0 PHY_TYPE_USB2&gt;,
           &lt;&amp;u3port0 PHY_TYPE_USB3&gt;,
           &lt;&amp;u2port1 PHY_TYPE_USB2&gt;;
    interrupts = &lt;GIC_SPI 115 IRQ_TYPE_LEVEL_LOW&gt;;
    clocks = &lt;&amp;topckgen CLK_TOP_USB30_SEL&gt;;
    clock-names = "sys_ck";
};

t-phy@11290000 {
    compatible = "mediatek,mt8173-u3phy";
    reg = &lt;0x11290000 0x800&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges;

    u2port0: usb-phy@11290800 {
        reg = &lt;0x11290800 0x100&gt;;
        clocks = &lt;&amp;apmixedsys CLK_APMIXED_REF2USB_TX&gt;, &lt;&amp;clk48m&gt;;
        clock-names = "ref", "da_ref";
        #phy-cells = &lt;1&gt;;
    };

    u3port0: usb-phy@11290900 {
        reg = &lt;0x11290900 0x700&gt;;
        clocks = &lt;&amp;clk26m&gt;;
        clock-names = "ref";
        #phy-cells = &lt;1&gt;;
    };

    u2port1: usb-phy@11291000 {
        reg = &lt;0x11291000 0x100&gt;;
        #phy-cells = &lt;1&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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (c) 2020 MediaTek</span></p>

<p id="dt-comment-2"><strong>Line 114:</strong> <span> Used with non-empty value if optional 'reg' is not provided.</span></p>

<p id="dt-comment-3"><strong>Line 115:</strong> <span> The format of the value is an arbitrary number of triplets of</span></p>

<p id="dt-comment-4"><strong>Line 116:</strong> <span> (child-bus-address, parent-bus-address, length).</span></p>

<p id="dt-comment-5"><strong>Line 140:</strong> <span> Required child node:</span></p>

<p id="dt-comment-6"><strong>Line 199:</strong> <span> The following optional vendor properties are only for debug or HQA test</span></p>

</details>
