# Samsung Exynos ACPM mailbox protocol

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

> Device-tree binding reference for Samsung Exynos ACPM mailbox protocol.

<!-- 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;firmware&#47;google&#44;gs101&#45;acpm&#45;ipc&#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;Tudor Ambarus &#60;tudor&#46;ambarus&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">ACPM (Alive Clock and Power Manager) is a firmware that operates on the
APM (Active Power Management) module that handles overall power management
activities. ACPM and masters regard each other as independent hardware
component and communicate with each other using mailbox messages and
shared memory.</p>
<p style="white-space: pre-wrap">This binding is intended to define the interface the firmware implementing
ACPM provides for OSPM in the device tree.</p>
</div>

<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;google&#44;gs101&#45;acpm&#45;ipc&#34;</code></span>

<a id="dt-7471877b51a93881192b"></a>

### <code>&#35;clock&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-0eebe37dd30ae3dd2a72"><code>1</code></span>

<div id="dt-6709a835409866cbd3af">
<p style="white-space: pre-wrap">Clocks that are variable and index based. These clocks don't provide an entire range of values between the limits but only discrete points within the range. The firmware also manages the voltage scaling appropriately with the clock scaling. The argument is the ID of the clock contained by the firmware messages.</p>
</div>

<a id="dt-574e031ceefcc9ce5f61"></a>

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

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

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

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

<div id="dt-604ba33310b9af6cec2f">
<p style="white-space: pre-wrap">Child node describing the main PMIC.</p>
</div>

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

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

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

<code>true</code>

Allowed by this rule.

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-01bdd522a6ad553df7f9"><code>&#34;samsung&#44;s2mpg10&#45;pmic&#34;</code></span>

<a id="dt-8ca956c2cc468b2945c5"></a>

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

<div id="dt-381166fa0a0905117367">
<p style="white-space: pre-wrap">List of phandle pointing to the shared memory (SHM) area. The memory contains channels configuration data and the TX/RX ring buffers that are used for passing messages to/from the ACPM firmware.</p>
</div>

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

**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;&#35;clock&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;mboxes&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;shmem&#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">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

power-management {
    compatible = "google,gs101-acpm-ipc";
    #clock-cells = &lt;1&gt;;
    mboxes = &lt;&amp;ap2apm_mailbox&gt;;
    shmem = &lt;&amp;apm_sram&gt;;

    pmic {
        compatible = "samsung,s2mpg10-pmic";
        interrupts-extended = &lt;&amp;gpa0 6 IRQ_TYPE_LEVEL_LOW&gt;;

        regulators {
            ldo1m {
                regulator-name = "vdd_ldo1";
                regulator-min-microvolt = &lt;700000&gt;;
                regulator-max-microvolt = &lt;1300000&gt;;
                regulator-always-on;
            };

            // ...

            buck8m {
                regulator-name = "vdd_mif";
                regulator-min-microvolt = &lt;450000&gt;;
                regulator-max-microvolt = &lt;1300000&gt;;
                regulator-always-on;
                regulator-boot-on;
            };
        };
    };
};
</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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright 2024 Linaro Ltd.</span></p>

</details>
