Arm CoreSight Embedded Trace MacroCell

Schema identifier ($id): "http://devicetree.org/schemas/arm/arm,coresight-etm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Mathieu Poirier <mathieu.poirier@linaro.org>", "Mike Leach <mike.leach@linaro.org>", "Leo Yan <leo.yan@linaro.org>", "Suzuki K Poulose <suzuki.poulose@arm.com>"

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.

The Embedded Trace Macrocell (ETM) is a real-time trace module providing instruction and data tracing of a processor.

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "arm,coresight-etm3x", "arm,coresight-etm4x", "arm,coresight-etm4x-sysreg"

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "arm,coresight-etm4x-sysreg"

When the condition matches (then) #

Shared schema rule ($ref): /schemas/arm/primecell.yaml#

Required in this object (required): "reg"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Embedded Trace Macrocell with memory mapped access.

Array item rules (items)

Item 1

Allowed values (enum): "arm,coresight-etm3x", "arm,coresight-etm4x"

Item 2

Exact value (const): "arm,primecell"

Rule 2

Embedded Trace Macrocell (version 4.x), with system register access only

Exact value (const): "arm,coresight-etm4x-sysreg"

reg — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "apb_pclk"

Item 2

Exact value (const): "atclk"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

arm,coresight-loses-context-with-cpu — not listed as required here #

Value type (type): "boolean"

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.

label — not listed as required here #

Description of a coresight device.

arm,cp14 — not listed as required here #

Value type (type): "boolean"

Must be present if the system accesses ETM/PTM management registers via co-processor 14.

qcom,skip-power-up — not listed as required here #

Value type (type): "boolean"

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.

cpu — required here #

phandle to the cpu this ETM is bound to.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

out-ports — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

port — not listed as required here

Output connection from the ETM to CoreSight Trace bus.

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Required in this object (required): "compatible", "clocks", "clock-names", "cpu", "out-ports"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

ptm@2201c000 {
    compatible = "arm,coresight-etm3x", "arm,primecell";
    reg = <0x2201c000 0x1000>;

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

ptm@2201d000 {
    compatible = "arm,coresight-etm3x", "arm,primecell";
    reg = <0x2201d000 0x1000>;

    cpu = <&cpu1>;
    clocks = <&oscclk6a>;
    clock-names = "apb_pclk";
    out-ports {
        port {
            ptm1_out_port: endpoint {
                remote-endpoint = <&funnel_in_port1>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page