# Broadcom TRX Container Partition

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions_

> Device-tree binding reference for Broadcom TRX Container Partition.

<!-- 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;mtd&#47;partitions&#47;brcm&#44;trx&#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;Hauke Mehrtens &#60;hauke&#64;hauke&#45;m&#46;de&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Rafał Miłecki &#60;rafal&#64;milecki&#46;pl&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>TRX is Broadcom's official firmware format for the BCM947xx boards. It's used by most of the vendors building devices based on Broadcom's BCM47xx SoCs and is supported by the CFE bootloader.
Design of the TRX format is very minimalistic. Its header contains identification fields, CRC32 checksum and the locations of embedded partitions. Its purpose is to store a few partitions in a format that can be distributed as a standalone file and written in a flash memory.
Container can hold up to 4 partitions. The first partition has to contain a device executable binary (e.g. a kernel) as it's what the CFE bootloader starts executing. Other partitions can be used for operating system purposes. This is useful for systems that keep kernel and rootfs separated.
TRX doesn't enforce any strict partition boundaries or size limits. All partitions have to be less than the 4GiB max size limit.
There are two existing/known TRX variants:
  1) v1 which contains 3 partitions
  2) v2 which contains 4 partitions</code></pre>
<p style="white-space: pre-wrap">There aren't separated compatible bindings for them as version can be trivially detected by a software parsing TRX header.</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**
>
> > **Exact value (<code>const</code>):** <span id="dt-5deec2612224d8d915da"><code>&#34;linksys&#44;ns&#45;firmware&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;brcm&#44;trx&#34;</code></span>

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

**Rule 2**

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

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

### <code>brcm&#44;trx&#45;magic</code> — not listed as required here

<div id="dt-0caffe28e4489d955ee5">
<p style="white-space: pre-wrap">TRX magic, if it is different from the default magic.</p>
</div>

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

**Default value (<code>default</code>):** <span id="dt-5d5fbf45aa25c1d2ac7a"><code>810697800</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><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>partition&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-mtd/partitions/partition.md#dt-root>)</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">flash {
    partitions {
        compatible = "brcm,trx";
    };
};
</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>
