CoreSight CPU Debug Component

Schema identifier ($id): "http://devicetree.org/schemas/arm/arm,coresight-cpu-debug.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 CPU debug component are compliant with the ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter 'Part H: External debug'. The external debug module is mainly used for two modes: self-hosted debug and external debug, and it can be accessed from mmio region from Coresight and eventually the debug module connects with CPU for debugging. And the debug module provides sample-based profiling extension, which can be used to sample CPU program counter, secure state and exception level, etc; usually every CPU has one dedicated debug module to be connected.

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Exact value (const): "arm,coresight-cpu-debug"

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "arm,coresight-cpu-debug"

Item 2

Exact value (const): "arm,primecell"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Maximum number of items (maxItems): 1

cpu — required here #

A phandle to the cpu this debug component is bound to.

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

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

A phandle to the debug power domain if the debug logic has its own dedicated power domain. CPU idle states may also need to be separately constrained to keep CPU cores powered.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

debug@f6590000 {
    compatible = "arm,coresight-cpu-debug", "arm,primecell";
    reg = <0xf6590000 0x1000>;
    clocks = <&sys_ctrl 1>;
    clock-names = "apb_pclk";
    cpu = <&cpu0>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page