# NVIDIA Tegra Boot and Power Management Processor (BPMP)

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

> Device-tree binding reference for NVIDIA Tegra Boot and Power Management Processor (BPMP).

<!-- 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;nvidia&#44;tegra186&#45;bpmp&#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;Thierry Reding &#60;thierry&#46;reding&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Jon Hunter &#60;jonathanh&#64;nvidia&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The BPMP is a specific processor in Tegra chip, which is designed for
booting process handling and offloading the power management, clock
management, and reset control tasks from the CPU. The binding document
defines the resources that would be used by the BPMP firmware driver,
which can create the interprocessor communication (IPC) between the
CPU and BPMP.</p>
<p style="white-space: pre-wrap">This node is a mailbox consumer. See the following files for details
of the mailbox subsystem, and the specifiers implemented by the
relevant provider(s):</p>
<pre><code>  - .../mailbox/mailbox.txt
  - .../mailbox/nvidia,tegra186-hsp.yaml</code></pre>
<p style="white-space: pre-wrap">This node is a clock, power domain, and reset provider. See the
following files for general documentation of those features, and the
specifiers implemented by this node:</p>
<pre><code>  - .../clock/clock-bindings.txt
  - &lt;dt-bindings/clock/tegra186-clock.h&gt;
  - ../power/power-domain.yaml
  - &lt;dt-bindings/power/tegra186-powergate.h&gt;
  - .../reset/reset.txt
  - &lt;dt-bindings/reset/tegra186-reset.h&gt;</code></pre>
<p style="white-space: pre-wrap">The BPMP implements some services which must be represented by
separate nodes. For example, it can provide access to certain I2C
controllers, and the I2C bindings represent each I2C controller as a
device tree node. Such nodes should be nested directly inside the main
BPMP node.</p>
<p style="white-space: pre-wrap">Software can determine whether a child node of the BPMP node
represents a device by checking for a compatible property. Any node
with a compatible property represents a device that can be
instantiated. Nodes without a compatible property may be used to
provide configuration information regarding the BPMP itself, although
no such configuration nodes are currently defined by this binding.</p>
<p style="white-space: pre-wrap">The BPMP firmware defines no single global name-/numbering-space for
such services. Put another way, the numbering scheme for I2C buses is
distinct from the numbering scheme for any other service the BPMP may
provide (e.g. a future hypothetical SPI bus service). As such, child
device nodes will have no reg property, and the BPMP node will have no
"#address-cells" or "#size-cells" property.</p>
<p style="white-space: pre-wrap">The shared memory area for the IPC TX and RX between CPU and BPMP are
predefined and work on top of either sysram, which is an SRAM inside the
chip, or in normal SDRAM.
See ".../sram/sram.yaml" for the bindings for the SRAM case.
See "../reserved-memory/nvidia,tegra264-bpmp-shmem.yaml" for bindings for
the SDRAM case.</p>
</div>

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

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;nvidia&#44;tegra194&#45;bpmp&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;nvidia&#44;tegra234&#45;bpmp&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;nvidia&#44;tegra264&#45;bpmp&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;nvidia&#44;tegra186&#45;bpmp&#34;</code></span>

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;nvidia&#44;tegra186&#45;bpmp&#34;</code></span>

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

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

<div id="dt-35048c35d9f2ceeeab93">
<p style="white-space: pre-wrap">A phandle and channel specifier for the mailbox used to communicate with the BPMP.</p>
</div>

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

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

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

<div id="dt-381166fa0a0905117367">
<p style="white-space: pre-wrap">List of the phandle to the TX and RX shared memory area that the IPC between CPU and BPMP is based on.</p>
</div>

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

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

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

### <code>memory&#45;region</code> — not listed as required here

<div id="dt-b794f979757a4fadd5eb">
<p style="white-space: pre-wrap">phandle to reserved memory region used for IPC between CPU-NS and BPMP.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-95525a6e584a49d9aba7"><code>1</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>

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

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

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

<a id="dt-02c38475362b738e226b"></a>

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

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

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

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

<a id="dt-050bd17c82471c548ae6"></a>

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

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

**Item 1**

> <div id="dt-6dfeff356d948effe34f">
> <p style="white-space: pre-wrap">memory read client</p>
> </div>

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

**Item 2**

> <div id="dt-d62faf4971d56ff9afe0">
> <p style="white-space: pre-wrap">memory write client</p>
> </div>

<a id="dt-744e63ce087801641e0e"></a>

**Item 3**

> <div id="dt-9aa2e4a1524482e98c5f">
> <p style="white-space: pre-wrap">DMA read client</p>
> </div>

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

**Item 4**

> <div id="dt-b44e6389e690a605086f">
> <p style="white-space: pre-wrap">DMA write client</p>
> </div>

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

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

<a id="dt-4332fbf84d4c78ea0294"></a>

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

<a id="dt-2111c2ef31eab69c10e3"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-4703ee7000618caf6783"><code>&#34;read&#34;</code></span>

<a id="dt-33130cd4a368d9cf5c91"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-97dc8df8d353ce89df85"><code>&#34;write&#34;</code></span>

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

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-3ab3b7b24610b7f08437"><code>&#34;dma&#45;mem&#34;</code></span>

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

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-707e05e886fcba00c284"><code>&#34;dma&#45;write&#34;</code></span>

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

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

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

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

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

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

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

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

**Value type (<code>type</code>):** <span id="dt-3fee65293755bcdfef2c"><code>&#34;object&#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-51356188806d31ca2021"></a>

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

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

### Rule 1

> **Required in this object (<code>required</code>):** <a id="dt-48cc38ffec184df79a62"></a> <span id="dt-bbd3b687ebb435349af2"><code>&#34;memory&#45;region&#34;</code></span>

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

### Rule 2

> **Required in this object (<code>required</code>):** <a id="dt-686ce4562589647d257c"></a> <span id="dt-8060cb7221f215eec82f"><code>&#34;shmem&#34;</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;mboxes&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;clock&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;power&#45;domain&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;reset&#45;cells&#34;</code></span>

<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/mailbox/tegra186-hsp.h&gt;
#include &lt;dt-bindings/memory/tegra186-mc.h&gt;

hsp_top0: hsp@3c00000 {
    compatible = "nvidia,tegra186-hsp";
    reg = &lt;0x03c00000 0xa0000&gt;;
    interrupts = &lt;GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH&gt;;
    interrupt-names = "doorbell";
    #mbox-cells = &lt;2&gt;;
};

sram@30000000 {
    compatible = "nvidia,tegra186-sysram", "mmio-sram";
    reg = &lt;0x30000000 0x50000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges = &lt;0x0 0x30000000 0x50000&gt;;

    cpu_bpmp_tx: sram@4e000 {
        reg = &lt;0x4e000 0x1000&gt;;
        label = "cpu-bpmp-tx";
        pool;
    };

    cpu_bpmp_rx: sram@4f000 {
        reg = &lt;0x4f000 0x1000&gt;;
        label = "cpu-bpmp-rx";
        pool;
    };
};

bpmp {
    compatible = "nvidia,tegra186-bpmp";
    interconnects = &lt;&amp;mc TEGRA186_MEMORY_CLIENT_BPMPR &amp;emc&gt;,
                    &lt;&amp;mc TEGRA186_MEMORY_CLIENT_BPMPW &amp;emc&gt;,
                    &lt;&amp;mc TEGRA186_MEMORY_CLIENT_BPMPDMAR &amp;emc&gt;,
                    &lt;&amp;mc TEGRA186_MEMORY_CLIENT_BPMPDMAW &amp;emc&gt;;
    interconnect-names = "read", "write", "dma-mem", "dma-write";
    iommus = &lt;&amp;smmu TEGRA186_SID_BPMP&gt;;
    mboxes = &lt;&amp;hsp_top0 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_BPMP&gt;;
    shmem = &lt;&amp;cpu_bpmp_tx&gt;, &lt;&amp;cpu_bpmp_rx&gt;;
    #clock-cells = &lt;1&gt;;
    #power-domain-cells = &lt;1&gt;;
    #reset-cells = &lt;1&gt;;

    i2c {
        compatible = "nvidia,tegra186-bpmp-i2c";
        nvidia,bpmp-bus-id = &lt;5&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;
    };

    thermal {
        compatible = "nvidia,tegra186-bpmp-thermal";
        #thermal-sensor-cells = &lt;1&gt;;
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/mailbox/tegra186-hsp.h&gt;

bpmp {
    compatible = "nvidia,tegra186-bpmp";
    interconnects = &lt;&amp;mc TEGRA186_MEMORY_CLIENT_BPMPR &amp;emc&gt;,
                    &lt;&amp;mc TEGRA186_MEMORY_CLIENT_BPMPW &amp;emc&gt;,
                    &lt;&amp;mc TEGRA186_MEMORY_CLIENT_BPMPDMAR &amp;emc&gt;,
                    &lt;&amp;mc TEGRA186_MEMORY_CLIENT_BPMPDMAW &amp;emc&gt;;
    interconnect-names = "read", "write", "dma-mem", "dma-write";
    mboxes = &lt;&amp;hsp_top1 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_BPMP&gt;;
    memory-region = &lt;&amp;dram_cpu_bpmp_mail&gt;;
    #clock-cells = &lt;1&gt;;
    #power-domain-cells = &lt;1&gt;;
    #reset-cells = &lt;1&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>

<p id="dt-comment-1"><strong>Line 113:</strong> <span> dma-read</span></p>

</details>
