# Synopsys Designware Mobile Storage Host Controller

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

> Device-tree binding reference for Synopsys Designware Mobile Storage Host Controller.

<!-- 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;synopsys&#45;dw&#45;mshc&#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>

<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;altr&#44;socfpga&#45;dw&#45;mshc&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;img&#44;pistachio&#45;dw&#45;mshc&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;snps&#44;dw&#45;mshc&#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-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

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Handle to "biu" and "ciu" clocks for the bus interface unit clock and the card interface unit clock.</p>
</div>

<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;biu&#34;</code></span>

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

**Item 2**

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

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

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

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

<a id="dt-3222247b290abaa4818d"></a>

### <code>altr&#44;sysmgr&#45;syscon</code> — not listed as required here

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

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

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

<a id="dt-013433cdc1306f895651"></a>

**Item 1**

> <a id="dt-b68ad90b8c74c28b4980"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6566075b94befc9bc4d8"></a>
>
> **Item 1**
>
> > <div id="dt-66f91603cb61a5555be7">
> > <p style="white-space: pre-wrap">phandle to the sysmgr node</p>
> > </div>
>
> <a id="dt-caa2d01651de2c3e4d07"></a>
>
> **Item 2**
>
> > <div id="dt-61c6d9d5907c4abf4934">
> > <p style="white-space: pre-wrap">register offset that controls the SDMMC clock phase</p>
> > </div>
>
> <a id="dt-507d77b2c9944d7fab18"></a>
>
> **Item 3**
>
> > <div id="dt-0d5e28686d4fd63849ef">
> > <p style="white-space: pre-wrap">register shift for the smplsel(drive in) setting</p>
> > </div>

<div id="dt-6eb3e43fb2550cc49386">
<p style="white-space: pre-wrap">This property is optional. Contains the phandle to System Manager block that contains the SDMMC clock-phase control register. The first value is the pointer to the sysmgr, the 2nd value is the register offset for the SDMMC clock phase register, and the 3rd value is the bit shift for the smplsel(drive in) setting.</p>
</div>

<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>synopsys&#45;dw&#45;mshc&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mmc/synopsys-dw-mshc-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;altr&#44;socfpga&#45;dw&#45;mshc&#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-95bd1b07e90596d2d6a8"></a>
> >
> > **<code>altr&#44;sysmgr&#45;syscon</code> — not listed as required here**
> >
> > <code>true</code> — No constraints added by this property rule.
>
> <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-80781f8dba141bcf8858"></a>
> >
> > **<code>iommus</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-bb5b0fdb6a19404675ef"></a>
> >
> > **<code>altr&#44;sysmgr&#45;syscon</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property 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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;clock&#45;names&#34;</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">mmc@12200000 {
  compatible = "snps,dw-mshc";
  reg = &lt;0x12200000 0x1000&gt;;
  interrupts = &lt;0 75 0&gt;;
  clocks = &lt;&amp;clock 351&gt;, &lt;&amp;clock 132&gt;;
  clock-names = "biu", "ciu";
  dmas = &lt;&amp;pdma 12&gt;;
  dma-names = "rx-tx";
  resets = &lt;&amp;rst 20&gt;;
  reset-names = "reset";
  vmmc-supply = &lt;&amp;buck8&gt;;
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  broken-cd;
  bus-width = &lt;8&gt;;
  cap-mmc-highspeed;
  cap-sd-highspeed;
  card-detect-delay = &lt;200&gt;;
  max-frequency = &lt;200000000&gt;;
  clock-frequency = &lt;400000000&gt;;
  data-addr = &lt;0x200&gt;;
  fifo-depth = &lt;0x80&gt;;
  fifo-watermark-aligned;
};
</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>

<p id="dt-comment-1"><strong>Line 12:</strong> <span> Everything else is described in the common file</span></p>

</details>
