# Arm CoreSight Embedded Trace MacroCell

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

> Device-tree binding reference for Arm CoreSight Embedded Trace MacroCell.

<!-- 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;arm&#47;arm&#44;coresight&#45;etm&#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;Mathieu Poirier &#60;mathieu&#46;poirier&#64;linaro&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Mike Leach &#60;mike&#46;leach&#64;linaro&#46;org&#62;&#34;</code></span>, <span id="dt-2f1516674166ff6e66b8"><code>&#34;Leo Yan &#60;leo&#46;yan&#64;linaro&#46;org&#62;&#34;</code></span>, <span id="dt-3a197c22bf020420f520"><code>&#34;Suzuki K Poulose &#60;suzuki&#46;poulose&#64;arm&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">CoreSight components are compliant with the ARM CoreSight architecture
specification and can be connected in various topologies to suit a particular
SoCs tracing needs. These trace components can generally be classified as
sinks, links and sources. Trace data produced by one or more sources flows
through the intermediate links connecting the source to the currently selected
sink.</p>
<p style="white-space: pre-wrap">The Embedded Trace Macrocell (ETM) is a real-time trace module providing
instruction and data tracing of a processor.</p>
</div>

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

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

> <a id="dt-54d143fae2406295c883"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-e3400bab629503b08322"></a>
>
> #### <code>compatible</code> — required here
>
> <a id="dt-2ae4f0f9580bb5b2e406"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-ce9b069a8031ff280c23"></a> <span id="dt-e79f31d4eec3cf736314"><code>&#34;arm&#44;coresight&#45;etm3x&#34;</code></span>, <span id="dt-b228f13d1a3291d89dd4"><code>&#34;arm&#44;coresight&#45;etm4x&#34;</code></span>, <span id="dt-cc3d5823015e494170a8"><code>&#34;arm&#44;coresight&#45;etm4x&#45;sysreg&#34;</code></span>
>
> **Required in this object (<code>required</code>):** <a id="dt-c7b135d3aebb6d627788"></a> <span id="dt-7b7a89ef483af1198868"><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

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-17723ad0bbc7f42a3e70"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-3defb1f4dc0d6847a043"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-0e5d4207b2374940f9d3"></a>
> > >
> > > **<code>compatible</code> — not listed as required here**
> > >
> > > <a id="dt-6e1ee4ed1b112666419d"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Exact value (<code>const</code>):** <span id="dt-1c1f690154555df6cea9"><code>&#34;arm&#44;coresight&#45;etm4x&#45;sysreg&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5914c064454d3da9c609">[<code>&#47;schemas&#47;arm&#47;primecell&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-arm/primecell.md#dt-root>)</span>
> >
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;reg&#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

<a id="dt-39566f01414e34c67b85"></a>

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

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

**Rule 1**

> <div id="dt-ab1c3e7063bd95dc962e">
> <p style="white-space: pre-wrap">Embedded Trace Macrocell with memory mapped access.</p>
> </div>
>
> <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;arm&#44;coresight&#45;etm3x&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;arm&#44;coresight&#45;etm4x&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;arm&#44;primecell&#34;</code></span>

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

**Rule 2**

> <div id="dt-4b64ce44adfe069638c4">
> <p style="white-space: pre-wrap">Embedded Trace Macrocell (version 4.x), with system register access only</p>
> </div>
>
> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;arm&#44;coresight&#45;etm4x&#45;sysreg&#34;</code></span>

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

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

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

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

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

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

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

<a id="dt-041d7cd76b652a5de06a"></a>

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;apb&#95;pclk&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;atclk&#34;</code></span>

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

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

<a id="dt-0a300412ccfae1a5b57c"></a>

### <code>arm&#44;coresight&#45;loses&#45;context&#45;with&#45;cpu</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-27d351a983904630d535"><code>&#34;boolean&#34;</code></span>

<div id="dt-9cef845049a317018030">
<p style="white-space: pre-wrap">Indicates that the hardware will lose register context on CPU power down (e.g. CPUIdle). An example of where this may be needed are systems which contain a coresight component and CPU in the same power domain. When the CPU powers down the coresight component also powers down and loses its context.</p>
</div>

<a id="dt-0c6076cd9d6f109c5cc6"></a>

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

<div id="dt-f7c1a813bb0d2e9dd066">
<p style="white-space: pre-wrap">Description of a coresight device.</p>
</div>

<a id="dt-33779be71a21b6593e7e"></a>

### <code>arm&#44;cp14</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-3dc485c349301186af7d"><code>&#34;boolean&#34;</code></span>

<div id="dt-ee5dc2158f44849e3ad7">
<p style="white-space: pre-wrap">Must be present if the system accesses ETM/PTM management registers via co-processor 14.</p>
</div>

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

### <code>qcom&#44;skip&#45;power&#45;up</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-2f49d9daebc874e812c0"><code>&#34;boolean&#34;</code></span>

<div id="dt-9b608f4331d6a935c1b3">
<p style="white-space: pre-wrap">Indicates that an implementation can skip powering up the trace unit. TRCPDCR.PU does not have to be set on Qualcomm Technologies Inc. systems since ETMs are in the same power domain as their CPU cores. This property is required to identify such systems with hardware errata where the CPU watchdog counter is stopped when TRCPDCR.PU is set.</p>
</div>

<a id="dt-04b422a940a732dc566a"></a>

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

<div id="dt-def6de561872d689f7b7">
<p style="white-space: pre-wrap">phandle to the cpu this ETM is bound to.</p>
</div>

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

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

### <code>out&#45;ports</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b49582c43c8b8566441b">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;ports</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-638717a7c9bbf1878b7e>)</span>

<a id="dt-c47e1cce03a7f8a215cc"></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-0929997c6980ff71694d"></a>

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

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

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

<div id="dt-700ac6b822a512dbfee4">
<p style="white-space: pre-wrap">Output connection from the ETM to CoreSight Trace bus.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ace227593fbbebe47bff">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;port</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-1d845f0617b4072cef77>)</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;clocks&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;cpu&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;out&#45;ports&#34;</code></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">ptm@2201c000 {
    compatible = "arm,coresight-etm3x", "arm,primecell";
    reg = &lt;0x2201c000 0x1000&gt;;

    cpu = &lt;&amp;cpu0&gt;;
    clocks = &lt;&amp;oscclk6a&gt;;
    clock-names = "apb_pclk";
    out-ports {
        port {
            ptm0_out_port: endpoint {
                remote-endpoint = &lt;&amp;funnel_in_port0&gt;;
            };
        };
    };
};

ptm@2201d000 {
    compatible = "arm,coresight-etm3x", "arm,primecell";
    reg = &lt;0x2201d000 0x1000&gt;;

    cpu = &lt;&amp;cpu1&gt;;
    clocks = &lt;&amp;oscclk6a&gt;;
    clock-names = "apb_pclk";
    out-ports {
        port {
            ptm1_out_port: endpoint {
                remote-endpoint = &lt;&amp;funnel_in_port1&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>
