# Synopsys DWC AHCI SATA controller

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

> Device-tree binding reference for Synopsys DWC AHCI SATA controller.

<!-- 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;ata&#47;snps&#44;dwc&#45;ahci&#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;Serge Semin &#60;fancer&#46;lancer&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This document defines device tree bindings for the generic Synopsys DWC implementation of the AHCI SATA controller.</p>
</div>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

> <a id="dt-54d143fae2406295c883"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-e3400bab629503b08322"></a>
>
> #### <code>compatible</code> — required here
>
> **Allowed values (<code>enum</code>):** <a id="dt-b4c966ae13dfa3b2c64e"></a> <span id="dt-7ac9e20c9d2d532f64b0"><code>&#34;snps&#44;dwc&#45;ahci&#34;</code></span>, <span id="dt-0608a47c6f36928468d8"><code>&#34;snps&#44;spear&#45;ahci&#34;</code></span>
>
> **Required in this object (<code>required</code>):** <a id="dt-c7b135d3aebb6d627788"></a> <span id="dt-7b7a89ef483af1198868"><code>&#34;compatible&#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>snps&#44;dwc&#45;ahci&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-ata/snps-dwc-ahci-common.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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <div id="dt-ab1c3e7063bd95dc962e">
> <p style="white-space: pre-wrap">Synopsys AHCI SATA-compatible devices</p>
> </div>
>
> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;snps&#44;dwc&#45;ahci&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <div id="dt-4b64ce44adfe069638c4">
> <p style="white-space: pre-wrap">SPEAr1340 AHCI SATA device</p>
> </div>
>
> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;snps&#44;spear&#45;ahci&#34;</code></span>

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

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

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

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

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

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

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

### <code>&#94;sata&#45;port&#64;&#91;0&#45;9a&#45;e&#93;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5e66f317285c5c84a2a8">[<code>&#47;schemas&#47;ata&#47;snps&#44;dwc&#45;ahci&#45;common&#46;yaml&#35;&#47;&#36;defs&#47;dwc&#45;ahci&#45;port</code>](</kernel/hardware/devicetree-bindings/dt-ata/snps-dwc-ahci-common.md#dt-f57297563b51a82377c1>)</span>

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

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this 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>

<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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/ata/ahci.h&gt;

sata@122f0000 {
  compatible = "snps,dwc-ahci";
  reg = &lt;0x122F0000 0x1ff&gt;;
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  interrupts = &lt;GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH&gt;;

  clocks = &lt;&amp;clock1&gt;, &lt;&amp;clock2&gt;;
  clock-names = "aclk", "ref";

  phys = &lt;&amp;sata_phy&gt;;
  phy-names = "sata-phy";

  ports-implemented = &lt;0x1&gt;;

  sata-port@0 {
    reg = &lt;0&gt;;

    hba-port-cap = &lt;HBA_PORT_FBSCP&gt;;

    snps,tx-ts-max = &lt;512&gt;;
    snps,rx-ts-max = &lt;512&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>

</details>
