CoreSight TMC Control Unit

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

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

Maintainers (maintainers): "Yuanfang Zhang <yuanfang.zhang@oss.qualcomm.com>", "Mao Jinlong <jinlong.mao@oss.qualcomm.com>", "Jie Gan <jie.gan@oss.qualcomm.com>"

The Trace Memory Controller(TMC) is used for Embedded Trace Buffer(ETB), Embedded Trace FIFO(ETF) and Embedded Trace Router(ETR) configurations. The configuration mode (ETB, ETF, ETR) is discovered at boot time when the device is probed.

The Coresight TMC Control unit controls various Coresight behaviors. It works as a helper device when connected to TMC ETR device. It is responsible for controlling the data filter function based on the source device's Trace ID for TMC ETR device. The trace data with that Trace id can get into ETR's buffer while other trace data gets ignored.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "qcom,qcs8300-ctcu"

Item 2

Exact value (const): "qcom,sa8775p-ctcu"

Rule 2

Allowed values (enum): "qcom,sa8775p-ctcu"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "apb"

label — not listed as required here #

Description of a coresight device.

in-ports — required here #

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

Properties matching a name pattern (patternProperties) #

^port(@[0-1])?$ — name matches this regular expression

Input connections from CoreSight Trace bus

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

Required in this object (required): "compatible", "reg", "in-ports"

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

false

Not allowed by this rule.

Examples (examples) #

ctcu@1001000 {
    compatible = "qcom,sa8775p-ctcu";
    reg = <0x1001000 0x1000>;

    clocks = <&aoss_qmp>;
    clock-names = "apb";

    in-ports {
        #address-cells = <1>;
        #size-cells = <0>;

        port@0 {
            reg = <0>;
            ctcu_in_port0: endpoint {
                remote-endpoint = <&etr0_out_port>;
            };
        };

        port@1 {
            reg = <1>;
            ctcu_in_port1: endpoint {
                remote-endpoint = <&etr1_out_port>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page