# Common Properties for Serial ATA AHCI controllers

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

> Device-tree binding reference for Common Properties for Serial ATA AHCI 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;ata&#47;ahci&#45;common&#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;Hans de Goede &#60;hdegoede&#64;redhat&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Damien Le Moal &#60;dlemoal&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This document defines device tree properties for a common AHCI SATA controller implementation. It's hardware interface is supposed to conform to the technical standard defined by Intel (see Serial ATA Advanced Host Controller Interface specification for details). The document doesn't constitute a DT-node binding by itself but merely defines a set of common properties for the AHCI-compatible devices.</p>
</div>

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

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

<code>false</code>

Not selected automatically by this rule.

<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>sata&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-ata/sata-common.md#dt-root>)</span>

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

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

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Generic AHCI registers space conforming to the Serial ATA AHCI specification.</p>
</div>

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

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

<div id="dt-c6f78d81605b46af6c17">
<p style="white-space: pre-wrap">CSR space IDs</p>
</div>

<a id="dt-951d3483dc8d011f2364"></a>

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

> **Exact value (<code>const</code>):** <span id="dt-464a9b16b5ce9a3ff14e"><code>&#34;ahci&#34;</code></span>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">Generic AHCI state change interrupt. Can be implemented either as a single line attached to the controller or as a set of the signals indicating the particular port events.</p>
</div>

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

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

<a id="dt-97731bb2e1df88300462"></a>

### <code>ahci&#45;supply</code> — not listed as required here

<div id="dt-11d00e620fe21f061dfc">
<p style="white-space: pre-wrap">Power regulator for AHCI controller</p>
</div>

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

### <code>target&#45;supply</code> — not listed as required here

<div id="dt-f7fb6b7d052f11ed43d1">
<p style="white-space: pre-wrap">Power regulator for SATA target device</p>
</div>

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

### <code>phy&#45;supply</code> — not listed as required here

<div id="dt-db46ab9e1277571d0450">
<p style="white-space: pre-wrap">Power regulator for SATA PHY</p>
</div>

<a id="dt-398f0f80d64ad8c16804"></a>

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

<div id="dt-2a2eb9c495a9078b1d18">
<p style="white-space: pre-wrap">Reference to the SATA PHY node</p>
</div>

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

<a id="dt-1fe3fcbf051ac5edb105"></a>

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

**Exact value (<code>const</code>):** <span id="dt-c461f347e42211b9b08a"><code>&#34;sata&#45;phy&#34;</code></span>

<a id="dt-39e1755db6717e2e31c3"></a>

### <code>hba&#45;cap</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e58da1a4831e6b77ebc0">[<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-ee97d741c6871040ea88">
<p style="white-space: pre-wrap">Bitfield of the HBA generic platform capabilities like Staggered Spin-up or Mechanical Presence Switch support. It can be used to appropriately initialize the HWinit fields of the HBA CAP register in case if the system firmware hasn't done it.</p>
</div>

<a id="dt-1f9a115657788ff3f87d"></a>

### <code>ports&#45;implemented</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-df5aa35e1b3bd39c800e">[<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-f3bf6c7629f02b4a6348">
<p style="white-space: pre-wrap">Mask that indicates which ports the HBA supports. Useful if PI is not programmed by the BIOS, which is true for some embedded SoC's.</p>
</div>

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

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

<a id="dt-781967b85351b2c396db"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b6697b5e94a1ffe7dcdf">[<code>&#35;&#47;&#36;defs&#47;ahci&#45;port</code>](<#dt-8357afbf6733ed3707aa>)</span>

<div id="dt-bbee3e69d55ad3c67dab">
<p style="white-space: pre-wrap">It is optionally possible to describe the ports as sub-nodes so to enable each port independently when dealing with multiple PHYs.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;reg&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;interrupts&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

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

<code>true</code>

Allowed by this rule.

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

## Reusable definitions (<code>&#36;defs</code>)

<a id="dt-8357afbf6733ed3707aa"></a>

### <code>ahci&#45;port</code>

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

<a id="dt-09ab29d7c20bf303ecea"></a>

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

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

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

<div id="dt-79e0e8592083da55a810">
<p style="white-space: pre-wrap">AHCI SATA port identifier. By design AHCI controller can't have more than 32 ports due to the CAP.NP fields and PI register size constraints.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-88c39617119d62576bb0"><code>0</code></span>

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

<a id="dt-1484d041aa3dd11719fd"></a>

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

<div id="dt-e49b8e7cbe9b367a6b5e">
<p style="white-space: pre-wrap">Individual AHCI SATA port PHY</p>
</div>

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

<a id="dt-3a05c7300d56f3ffe082"></a>

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

<div id="dt-d6a91c03333e88bc1ca7">
<p style="white-space: pre-wrap">AHCI SATA port PHY ID</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-efe13eba4060da43197a"><code>&#34;sata&#45;phy&#34;</code></span>

<a id="dt-528cce817c4f39bc914a"></a>

**<code>target&#45;supply</code> — not listed as required here**

<div id="dt-94912edf316ee7d96b30">
<p style="white-space: pre-wrap">Power regulator for SATA port target device</p>
</div>

<a id="dt-716b6bf3765f726758d3"></a>

**<code>hba&#45;port&#45;cap</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-87a23b1a944209fe40c1">[<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-6e5754d4cb7683574b63">
<p style="white-space: pre-wrap">Bitfield of the HBA port-specific platform capabilities like Hot plugging, eSATA, FIS-based Switching, etc (see AHCI specification for details). It can be used to initialize the HWinit fields of the PxCMD register in case if the system firmware hasn't done it.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-b4471f40383b3abf9f4e"></a> <span id="dt-47d1dee229fc1156d56b"><code>&#34;reg&#34;</code></span>

## 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>
