# MMC Card / eMMC Generic

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

> Device-tree binding reference for MMC Card / eMMC Generic.

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


<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;mmc&#45;card&#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;Ulf Hansson &#60;ulf&#46;hansson&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This documents describes the devicetree bindings for a mmc-host controller
child node describing a mmc-card / an eMMC.</p>
<p style="white-space: pre-wrap">It's possible to define a fixed partition table for an eMMC for the user
partition, the 2 BOOT partition (boot1/2) and the 4 GP (gp1/2/3/4) if supported
by the eMMC.</p>
</div>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;mmc&#45;card&#34;</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-37ff54f2982aadb4aad3"><code>0</code></span>

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

### <code>broken&#45;hpi</code> — not listed as required here

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

<div id="dt-922bb0126ed60410f119">
<p style="white-space: pre-wrap">Use this to indicate that the mmc-card has a broken hpi implementation, and that hpi should not be used.</p>
</div>

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

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

<a id="dt-83b3837b91a32205bef9"></a>

### <code>&#94;partitions&#40;&#45;boot&#91;12&#93;&#124;&#45;gp&#91;14&#93;&#41;&#63;&#36;</code> — name matches this regular expression

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

<a id="dt-721689591d5a13aa8457"></a>

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

<code>true</code>

Allowed by this rule.

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

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

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

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

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

**Rule for matching array elements (<code>contains</code>)**

> **Exact value (<code>const</code>):** <span id="dt-4b7e768a08be3626116d"><code>&#34;fixed&#45;partitions&#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>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#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">mmc {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    card@0 {
        compatible = "mmc-card";
        reg = &lt;0&gt;;
        broken-hpi;

        partitions {
            compatible = "fixed-partitions";

            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&gt;;

            partition@0 {
                label = "kernel"; /* Kernel */
                reg = &lt;0x0 0x2000000&gt;; /* 32 MB */
            };

            partition@2000000 {
                label = "rootfs";
                reg = &lt;0x2000000 0x40000000&gt;; /* 1GB */
            };
        };

        partitions-boot1 {
            compatible = "fixed-partitions";

            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&gt;;

            partition@0 {
                label = "bl";
                reg = &lt;0x0 0x2000000&gt;; /* 32MB */
                read-only;
            };
        };
    };
};
</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</span></p>

</details>
