# Calxeda AHCI SATA Controller

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

> Device-tree binding reference for Calxeda 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;sata&#95;highbank&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Calxeda SATA controller mostly conforms to the AHCI interface
with some special extensions to add functionality, to map GPIOs for
activity LEDs and for mapping the ComboPHYs.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Andre Przywara &#60;andre&#46;przywara&#64;arm&#46;com&#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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;calxeda&#44;hb&#45;ahci&#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-4603ee192633e8dffc49"></a>

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

<code>true</code> — No constraints added by this property rule.

<a id="dt-10fac140a5b5a0e40a7e"></a>

### <code>calxeda&#44;pre&#45;clocks</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-0eeea1a7c760d0a281bb">[<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-d28beaaf5cce14224f45">
<p style="white-space: pre-wrap">Indicates the number of additional clock cycles to transmit before
sending an SGPIO pattern.</p>
</div>

<a id="dt-055323b71f70a2062284"></a>

### <code>calxeda&#44;post&#45;clocks</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9388f0dc4e1a06168581">[<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-6a774a0eda6dd55d65be">
<p style="white-space: pre-wrap">Indicates the number of additional clock cycles to transmit after
sending an SGPIO pattern.</p>
</div>

<a id="dt-110e590801636ed96692"></a>

### <code>calxeda&#44;led&#45;order</code> — not listed as required here

<div id="dt-cab682ea5e7579b48c23">
<p style="white-space: pre-wrap">Maps port numbers to offsets within the SGPIO bitstream.</p>
</div>

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

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

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

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

### <code>calxeda&#44;port&#45;phys</code> — not listed as required here

<div id="dt-6705794706b8d2ded0b9">
<p style="white-space: pre-wrap">phandle-combophy and lane assignment, which maps each SATA port to a
combophy and a lane within that combophy</p>
</div>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-784db6e06e8702e561ef"><code>8</code></span>

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

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

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

<a id="dt-52536b7424adcbbbf991"></a>

### <code>calxeda&#44;tx&#45;atten</code> — not listed as required here

<div id="dt-49fd6d6cb8815afa14cb">
<p style="white-space: pre-wrap">Contains TX attenuation override codes, one per port.
The upper 24 bits of each entry are always 0 and thus ignored.</p>
</div>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-0a6a54ca78b6e0b5dfc8"><code>8</code></span>

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

### <code>calxeda&#44;sgpio&#45;gpio</code> — not listed as required here

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

<div id="dt-b964711359dc3ebf4912">
<p style="white-space: pre-wrap">phandle-gpio bank, bit offset, and default on or off, which indicates
that the driver supports SGPIO indicator lights using the indicated
GPIOs.</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>, <span id="dt-f3765998c4e103e45f2f"><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>false</code>

Not allowed by this rule.

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

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">sata@ffe08000 {
    compatible = "calxeda,hb-ahci";
    reg = &lt;0xffe08000 0x1000&gt;;
    interrupts = &lt;115&gt;;
    dma-coherent;
    calxeda,port-phys = &lt;&amp;combophy5 0&gt;, &lt;&amp;combophy0 0&gt;, &lt;&amp;combophy0 1&gt;,
                         &lt;&amp;combophy0 2&gt;, &lt;&amp;combophy0 3&gt;;
    calxeda,sgpio-gpio = &lt;&amp;gpioh 5 1&gt;, &lt;&amp;gpioh 6 1&gt;, &lt;&amp;gpioh 7 1&gt;;
    calxeda,led-order = &lt;4 0 1 2 3&gt;;
    calxeda,tx-atten = &lt;0xff 22 0xff 0xff 23&gt;;
    calxeda,pre-clocks = &lt;10&gt;;
    calxeda,post-clocks = &lt;0&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>
