# Lightning Mountain centralized DMA controllers.

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

> Device-tree binding reference for Lightning Mountain centralized DMA 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;dma&#47;intel&#44;ldma&#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;chuanhua&#46;lei&#64;intel&#46;com&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;mallikarjunax&#46;reddy&#64;intel&#46;com&#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>dma&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-dma/dma-controller.md#dt-root>)</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;intel&#44;lgm&#45;cdma&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;intel&#44;lgm&#45;dma2tx&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;intel&#44;lgm&#45;dma1rx&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;intel&#44;lgm&#45;dma1tx&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;intel&#44;lgm&#45;dma0tx&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;intel&#44;lgm&#45;dma3&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;intel&#44;lgm&#45;toe&#45;dma30&#34;</code></span>, <span id="dt-3edbd20dc5b59e47edf5"><code>&#34;intel&#44;lgm&#45;toe&#45;dma31&#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-a987fd9c3db53ecacc54"></a>

### <code>&#35;dma&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-3249ee54365c87081259"><code>3</code></span>

<div id="dt-5c46628e19decc12e0c0">
<p style="white-space: pre-wrap">The first cell is the peripheral's DMA request line. The second cell is the peripheral's (port) number corresponding to the channel. The third cell is the burst length of the channel.</p>
</div>

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

### <code>dma&#45;channels</code> — not listed as required here

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

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

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

### <code>dma&#45;channel&#45;mask</code> — not listed as required here

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

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

### <code>clocks</code> — not listed as 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-563c20491090a57ac4c9"></a>

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

<a id="dt-353fc881e5c58d1dcba1"></a>

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

<a id="dt-5629342117bd5a110a5b"></a>

**Item 1**

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

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

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

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

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

### <code>intel&#44;dma&#45;poll&#45;cnt</code> — not listed as required here

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

<div id="dt-e041f67aef85a49f0644">
<p style="white-space: pre-wrap">DMA descriptor polling counter is used to control the poling mechanism for the descriptor fetching for all channels.</p>
</div>

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

### <code>intel&#44;dma&#45;byte&#45;en</code> — not listed as required here

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

<div id="dt-45b084e6b72234835185">
<p style="white-space: pre-wrap">DMA byte enable is only valid for DMA write(RX). Byte enable(1) means DMA write will be based on the number of dwords instead of the whole burst.</p>
</div>

<a id="dt-03fd8d9b2a28446c10df"></a>

### <code>intel&#44;dma&#45;drb</code> — not listed as required here

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

<div id="dt-7caad6663f9f98094c5a">
<p style="white-space: pre-wrap">DMA descriptor read back to make sure data and desc synchronization.</p>
</div>

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

### <code>intel&#44;dma&#45;dburst&#45;wr</code> — not listed as required here

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

<div id="dt-3c1004e93c3ef890b94d">
<p style="white-space: pre-wrap">Enable RX dynamic burst write. When it is enabled, the DMA does RX dynamic burst; if it is disabled, the DMA RX will still support programmable fixed burst size of 2,4,8,16. It only applies to RX DMA and memcopy DMA.</p>
</div>

**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">dma0: dma-controller@e0e00000 {
  compatible = "intel,lgm-cdma";
  reg = &lt;0xe0e00000 0x1000&gt;;
  #dma-cells = &lt;3&gt;;
  dma-channels = &lt;16&gt;;
  dma-channel-mask = &lt;0xFFFF&gt;;
  interrupt-parent = &lt;&amp;ioapic1&gt;;
  interrupts = &lt;82 1&gt;;
  resets = &lt;&amp;rcu0 0x30 0&gt;;
  reset-names = "ctrl";
  clocks = &lt;&amp;cgu0 80&gt;;
  intel,dma-poll-cnt = &lt;4&gt;;
  intel,dma-byte-en;
  intel,dma-drb;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">dma3: dma-controller@ec800000 {
  compatible = "intel,lgm-dma3";
  reg = &lt;0xec800000 0x1000&gt;;
  clocks = &lt;&amp;cgu0 71&gt;;
  resets = &lt;&amp;rcu0 0x10 9&gt;;
  #dma-cells = &lt;3&gt;;
  intel,dma-poll-cnt = &lt;16&gt;;
  intel,dma-byte-en;
  intel,dma-dburst-wr;
};
</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>

</details>
