# Common properties for Universal Flash Storage (UFS) Host Controllers

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

> Device-tree binding reference for Common properties for Universal Flash Storage (UFS) Host Controllers.

<!-- 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;ufs&#47;ufs&#45;common&#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;Alim Akhtar &#60;alim&#46;akhtar&#64;samsung&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Avri Altman &#60;avri&#46;altman&#64;wdc&#46;com&#62;&#34;</code></span>

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

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

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

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

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

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

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

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

<a id="dt-35061aa8fc022e235a01"></a>

### <code>freq&#45;table&#45;hz</code> — not listed as required here

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

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

> <a id="dt-ca0d239daeeea2e8c8bf"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-34a55c44227af0fc51e3"></a>
>
> **Item 1**
>
> > <div id="dt-2cf8696b3268a592fd36">
> > <p style="white-space: pre-wrap">Minimum frequency for given clock in Hz</p>
> > </div>
>
> <a id="dt-feba76cbe11de318008d"></a>
>
> **Item 2**
>
> > <div id="dt-004ea422089340c5e551">
> > <p style="white-space: pre-wrap">Maximum frequency for given clock in Hz</p>
> > </div>

**Deprecated (<code>deprecated</code>):** <span id="dt-8c62282d0ca1048b9d23"><code>true</code></span>

<div id="dt-86dda0018f66cb8c2a44">
<p style="white-space: pre-wrap">Preferred is operating-points-v2.</p>
<p style="white-space: pre-wrap">Array of &lt;min max&gt; operating frequencies in Hz stored in the same order
as the clocks property. If either this property or operating-points-v2 is
not defined or a value in the array is "0" then it is assumed that the
frequency is set by the parent clock or a fixed rate clock source.</p>
</div>

<a id="dt-324942e28549e5e189eb"></a>

### <code>operating&#45;points&#45;v2</code> — not listed as required here

<div id="dt-ed66e6cddc4083461f9e">
<p style="white-space: pre-wrap">Preferred over freq-table-hz. If present, each OPP must contain array of frequencies stored in the same order for each clock.  If clock frequency in the array is "0" then it is assumed that the frequency is set by the parent clock or a fixed rate clock source.</p>
</div>

<a id="dt-242e482ee6fa5e68b3dc"></a>

### <code>opp&#45;table</code> — not listed as required here

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

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

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

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

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

### <code>lanes&#45;per&#45;direction</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1666b3adae36e9a2b2b5">[<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-4de4b3774ffcfdead376"></a> <span id="dt-1d3adf2af506a1ad0f20"><code>1</code></span>, <span id="dt-6b8df800275029ec10ff"><code>2</code></span>

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

<div id="dt-ca07987ab888afc7f7f2">
<p style="white-space: pre-wrap">Number of lanes available per direction.  Note that it is assumed that the same number of lanes are used in both directions at once.</p>
</div>

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

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

<div id="dt-2de612c18f0466bf6b0a">
<p style="white-space: pre-wrap">Phandle to UFS host controller supply regulator node.</p>
</div>

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

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

<div id="dt-304923183fea32e69a40">
<p style="white-space: pre-wrap">Phandle to VCC supply regulator node.</p>
</div>

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

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

<div id="dt-dbd039e5084270535ab2">
<p style="white-space: pre-wrap">Phandle to VCCQ supply regulator node.</p>
</div>

<a id="dt-066a1c2bbb616be272ae"></a>

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

<div id="dt-50b55da99defb196ed6f">
<p style="white-space: pre-wrap">Phandle to VCCQ2 supply regulator node.</p>
</div>

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

### <code>vcc&#45;supply&#45;1p8</code> — not listed as required here

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

<div id="dt-0261ddd03bdd32287195">
<p style="white-space: pre-wrap">For embedded UFS devices, valid VCC range is 1.7-1.95V or 2.7-3.6V. This boolean property when set, specifies to use low voltage range of 1.7-1.95V. Note for external UFS cards this property is invalid and valid VCC range is always 2.7-3.6V.</p>
</div>

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

### <code>vcc&#45;max&#45;microamp</code> — not listed as required here

<div id="dt-573480c8235fa26213e0">
<p style="white-space: pre-wrap">Specifies max. load that can be drawn from VCC supply.</p>
</div>

<a id="dt-24bf052aa90b567973af"></a>

### <code>vccq&#45;max&#45;microamp</code> — not listed as required here

<div id="dt-3439b6380878385d6cd2">
<p style="white-space: pre-wrap">Specifies max. load that can be drawn from VCCQ supply.</p>
</div>

<a id="dt-91106db9394e09af7337"></a>

### <code>vccq2&#45;max&#45;microamp</code> — not listed as required here

<div id="dt-daeba5807c2c7845012f">
<p style="white-space: pre-wrap">Specifies max. load that can be drawn from VCCQ2 supply.</p>
</div>

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

### <code>msi&#45;parent</code> — not listed as required here

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

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

### <code>limit&#45;hs&#45;gear</code> — not listed as required here

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

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

**Default value (<code>default</code>):** <span id="dt-9288e832aa7ec456478d"><code>6</code></span>

<div id="dt-2993446b57b33640bb20">
<p style="white-space: pre-wrap">Restricts the maximum HS gear used in both TX and RX directions.</p>
</div>

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

### <code>limit&#45;gear&#45;rate</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-92fbc46dfa0d509bc710">[<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-35c9f8c0a3a265efb9b4"></a> <span id="dt-a9733e851307f70f4c38"><code>&#34;rate&#45;a&#34;</code></span>, <span id="dt-08e43da9a1469e3a8a6d"><code>&#34;rate&#45;b&#34;</code></span>

**Default value (<code>default</code>):** <span id="dt-12db62b0464b1a60d853"><code>&#34;rate&#45;b&#34;</code></span>

<div id="dt-3ef2558c3bb6b8867a12">
<p style="white-space: pre-wrap">Restricts the UFS controller to rate-a or rate-b for both TX and RX directions.</p>
</div>

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

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

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

### <code>freq&#45;table&#45;hz</code> — applies when this property is present

Also requires: <span id="dt-e2b9e758afd4cd4148f5"><code>&#34;clocks&#34;</code></span>

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

### <code>operating&#45;points&#45;v2</code> — applies when this property is present

Also requires: <span id="dt-3b3d98b918b31c31a3e2"><code>&#34;clocks&#34;</code></span>, <span id="dt-82ced9bbad17705d37fc"><code>&#34;clock&#45;names&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;interrupts&#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>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-8562362a36ebdbb1ff2a"></a> <span id="dt-31d648f7705dc578c2d6"><code>&#34;freq&#45;table&#45;hz&#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-b9a209f4e8b9d3cc3139"></a>
> >
> > **<code>operating&#45;points&#45;v2</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;operating&#45;points&#45;v2&#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-7a9fa2f869906c192436"></a>
> >
> > **<code>freq&#45;table&#45;hz</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-738c4b4f9e483441138b"></a>

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

<code>true</code>

Allowed by this rule.

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