# Cadence SD/SDIO/eMMC Host Controller (SD4HC)

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

> Device-tree binding reference for Cadence SD/SDIO/eMMC Host Controller (SD4HC).

<!-- 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;mmc&#47;cdns&#44;sdhci&#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;Masahiro Yamada &#60;yamada&#46;masahiro&#64;socionext&#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

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

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;amd&#44;pensando&#45;elba&#45;sd4hc&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;microchip&#44;mpfs&#45;sd4hc&#34;</code></span>, <span id="dt-9802844ed4869452d348"><code>&#34;microchip&#44;pic64gx&#45;sd4hc&#34;</code></span>, <span id="dt-24a1253e29125294194d"><code>&#34;mobileye&#44;eyeq&#45;sd4hc&#34;</code></span>, <span id="dt-6eb9cf2b3f55b257fde4"><code>&#34;socionext&#44;uniphier&#45;sd4hc&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;cdns&#44;sd4hc&#34;</code></span>

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

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>2</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-4e9a371963ac013ad39d"></a>

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

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

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

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

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

<a id="dt-31b90ffead46ef09c666"></a>

### <code>cdns&#44;phy&#45;input&#45;delay&#45;sd&#45;highspeed</code> — not listed as required here

<div id="dt-d772ef0ac7f6335d971b">
<p style="white-space: pre-wrap">Value of the delay in the input path for SD high-speed timing</p>
</div>

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

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

<a id="dt-32bc503b1680088e879f"></a>

### <code>cdns&#44;phy&#45;input&#45;delay&#45;legacy</code> — not listed as required here

<div id="dt-25d851eaaab399c56648">
<p style="white-space: pre-wrap">Value of the delay in the input path for legacy timing</p>
</div>

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

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

<a id="dt-86ed23a3151cb0f790a6"></a>

### <code>cdns&#44;phy&#45;input&#45;delay&#45;sd&#45;uhs&#45;sdr12</code> — not listed as required here

<div id="dt-9012a7f173d83da2276e">
<p style="white-space: pre-wrap">Value of the delay in the input path for SD UHS SDR12 timing</p>
</div>

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

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

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

### <code>cdns&#44;phy&#45;input&#45;delay&#45;sd&#45;uhs&#45;sdr25</code> — not listed as required here

<div id="dt-d344349cb0ccf8faef2f">
<p style="white-space: pre-wrap">Value of the delay in the input path for SD UHS SDR25 timing</p>
</div>

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

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

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

### <code>cdns&#44;phy&#45;input&#45;delay&#45;sd&#45;uhs&#45;sdr50</code> — not listed as required here

<div id="dt-530edabc8b7b95dfcd3f">
<p style="white-space: pre-wrap">Value of the delay in the input path for SD UHS SDR50 timing</p>
</div>

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

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

<a id="dt-84e1670733d82e60b47b"></a>

### <code>cdns&#44;phy&#45;input&#45;delay&#45;sd&#45;uhs&#45;ddr50</code> — not listed as required here

<div id="dt-18bb0e535e11e83d2353">
<p style="white-space: pre-wrap">Value of the delay in the input path for SD UHS DDR50 timing</p>
</div>

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

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

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

### <code>cdns&#44;phy&#45;input&#45;delay&#45;mmc&#45;highspeed</code> — not listed as required here

<div id="dt-bd7e6c36d186d800670d">
<p style="white-space: pre-wrap">Value of the delay in the input path for MMC high-speed timing</p>
</div>

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

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

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

### <code>cdns&#44;phy&#45;input&#45;delay&#45;mmc&#45;ddr</code> — not listed as required here

<div id="dt-456bfab476e7371e7a0a">
<p style="white-space: pre-wrap">Value of the delay in the input path for eMMC high-speed DDR timing</p>
</div>

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

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

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

### <code>cdns&#44;phy&#45;dll&#45;delay&#45;sdclk</code> — not listed as required here

<div id="dt-f4afaf1ddab0c7ed5693">
<p style="white-space: pre-wrap">Value of the delay introduced on the sdclk output for all modes except
HS200, HS400 and HS400_ES.</p>
</div>

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

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

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

### <code>cdns&#44;phy&#45;dll&#45;delay&#45;sdclk&#45;hsmmc</code> — not listed as required here

<div id="dt-dfbebac8d1a553f9db37">
<p style="white-space: pre-wrap">Value of the delay introduced on the sdclk output for HS200, HS400 and
HS400_ES speed modes.</p>
</div>

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

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

<a id="dt-29a80defa355bc60846a"></a>

### <code>cdns&#44;phy&#45;dll&#45;delay&#45;strobe</code> — not listed as required here

<div id="dt-1393ca7e74420eff7602">
<p style="white-space: pre-wrap">Value of the delay introduced on the dat_strobe input used in
HS400 / HS400_ES speed modes.</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-042948ce69599ee62c4b"><code>127</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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>

<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>sdhci&#45;common&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-mmc/sdhci-common.md#dt-root>)</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;amd&#44;pensando&#45;elba&#45;sd4hc&#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-18ed1f4bd380878274d8"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-57a47f31b9538e0be5c1"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-bc319cbd3310a768e6d0"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-9da9173723afbadba2bd">
> > > <p style="white-space: pre-wrap">Host controller registers</p>
> > > </div>
> >
> > <a id="dt-4b59d984630720aedcbf"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-b910d735710af4cc497d">
> > > <p style="white-space: pre-wrap">Elba byte-lane enable register for writes</p>
> > > </div>
> >
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;resets&#34;</code></span>
>
> <a id="dt-56ef1e95d4edd6e6f24c"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-f0255e6a88a00985d33b"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-d92e0020acecb84cba03"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-4bcb124fb8b313412306"><code>1</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">emmc: mmc@5a000000 {
    compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
    reg = &lt;0x5a000000 0x400&gt;;
    interrupts = &lt;0 78 4&gt;;
    clocks = &lt;&amp;clk 4&gt;;
    bus-width = &lt;8&gt;;
    mmc-ddr-1_8v;
    mmc-hs200-1_8v;
    mmc-hs400-1_8v;
    cdns,phy-dll-delay-sdclk = &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>

<p id="dt-comment-1"><strong>Line 36:</strong> <span> PHY DLL input delays:</span></p>

<p id="dt-comment-2"><strong>Line 37:</strong> <span> They are used to delay the data valid window, and align the window to</span></p>

<p id="dt-comment-3"><strong>Line 38:</strong> <span> sampling clock. The delay starts from 5ns (for delay parameter equal to 0)</span></p>

<p id="dt-comment-4"><strong>Line 39:</strong> <span> and it is increased by 2.5ns in each step.</span></p>

<p id="dt-comment-5"><strong>Line 86:</strong> <span> PHY DLL clock delays:</span></p>

<p id="dt-comment-6"><strong>Line 87:</strong> <span> Each delay property represents the fraction of the clock period.</span></p>

<p id="dt-comment-7"><strong>Line 88:</strong> <span> The approximate delay value will be</span></p>

<p id="dt-comment-8"><strong>Line 89:</strong> <span> (&lt;delay property value&gt;/128)*sdmclk_clock_period.</span></p>

</details>
