xref: /freebsd/sys/contrib/device-tree/Bindings/arm/arm,coresight-etb10.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2b97ee269SEmmanuel Vadot%YAML 1.2
3b97ee269SEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/arm/arm,coresight-etb10.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6b97ee269SEmmanuel Vadot
7b97ee269SEmmanuel Vadottitle: Arm CoreSight Embedded Trace Buffer
8b97ee269SEmmanuel Vadot
9b97ee269SEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Mathieu Poirier <mathieu.poirier@linaro.org>
11b97ee269SEmmanuel Vadot  - Mike Leach <mike.leach@linaro.org>
12b97ee269SEmmanuel Vadot  - Leo Yan <leo.yan@linaro.org>
13b97ee269SEmmanuel Vadot  - Suzuki K Poulose <suzuki.poulose@arm.com>
14b97ee269SEmmanuel Vadot
15b97ee269SEmmanuel Vadotdescription: |
16b97ee269SEmmanuel Vadot  CoreSight components are compliant with the ARM CoreSight architecture
17b97ee269SEmmanuel Vadot  specification and can be connected in various topologies to suit a particular
18b97ee269SEmmanuel Vadot  SoCs tracing needs. These trace components can generally be classified as
19b97ee269SEmmanuel Vadot  sinks, links and sources. Trace data produced by one or more sources flows
20b97ee269SEmmanuel Vadot  through the intermediate links connecting the source to the currently selected
21b97ee269SEmmanuel Vadot  sink.
22b97ee269SEmmanuel Vadot
23b97ee269SEmmanuel Vadot  The CoreSight Embedded Trace Buffer stores traces in a dedicated SRAM that is
24b97ee269SEmmanuel Vadot  used as a circular buffer.
25b97ee269SEmmanuel Vadot
26b97ee269SEmmanuel Vadot# Need a custom select here or 'arm,primecell' will match on lots of nodes
27b97ee269SEmmanuel Vadotselect:
28b97ee269SEmmanuel Vadot  properties:
29b97ee269SEmmanuel Vadot    compatible:
30b97ee269SEmmanuel Vadot      contains:
31b97ee269SEmmanuel Vadot        const: arm,coresight-etb10
32b97ee269SEmmanuel Vadot  required:
33b97ee269SEmmanuel Vadot    - compatible
34b97ee269SEmmanuel Vadot
35b97ee269SEmmanuel VadotallOf:
36b97ee269SEmmanuel Vadot  - $ref: /schemas/arm/primecell.yaml#
37b97ee269SEmmanuel Vadot
38b97ee269SEmmanuel Vadotproperties:
39b97ee269SEmmanuel Vadot  compatible:
40b97ee269SEmmanuel Vadot    items:
41b97ee269SEmmanuel Vadot      - const: arm,coresight-etb10
42b97ee269SEmmanuel Vadot      - const: arm,primecell
43b97ee269SEmmanuel Vadot
44b97ee269SEmmanuel Vadot  reg:
45b97ee269SEmmanuel Vadot    maxItems: 1
46b97ee269SEmmanuel Vadot
47b97ee269SEmmanuel Vadot  clocks:
48b97ee269SEmmanuel Vadot    minItems: 1
49b97ee269SEmmanuel Vadot    maxItems: 2
50b97ee269SEmmanuel Vadot
51b97ee269SEmmanuel Vadot  clock-names:
52b97ee269SEmmanuel Vadot    minItems: 1
53b97ee269SEmmanuel Vadot    items:
54b97ee269SEmmanuel Vadot      - const: apb_pclk
55b97ee269SEmmanuel Vadot      - const: atclk
56b97ee269SEmmanuel Vadot
57*7ef62cebSEmmanuel Vadot  power-domains:
58*7ef62cebSEmmanuel Vadot    maxItems: 1
59*7ef62cebSEmmanuel Vadot
60b97ee269SEmmanuel Vadot  in-ports:
61b97ee269SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
62b97ee269SEmmanuel Vadot    additionalProperties: false
63b97ee269SEmmanuel Vadot
64b97ee269SEmmanuel Vadot    properties:
65b97ee269SEmmanuel Vadot      port:
66b97ee269SEmmanuel Vadot        description: Input connection from CoreSight Trace bus.
67b97ee269SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
68b97ee269SEmmanuel Vadot
69b97ee269SEmmanuel Vadotrequired:
70b97ee269SEmmanuel Vadot  - compatible
71b97ee269SEmmanuel Vadot  - reg
72b97ee269SEmmanuel Vadot  - clocks
73b97ee269SEmmanuel Vadot  - clock-names
74b97ee269SEmmanuel Vadot  - in-ports
75b97ee269SEmmanuel Vadot
76b97ee269SEmmanuel VadotunevaluatedProperties: false
77b97ee269SEmmanuel Vadot
78b97ee269SEmmanuel Vadotexamples:
79b97ee269SEmmanuel Vadot  - |
80b97ee269SEmmanuel Vadot    etb@20010000 {
81b97ee269SEmmanuel Vadot        compatible = "arm,coresight-etb10", "arm,primecell";
82b97ee269SEmmanuel Vadot        reg = <0x20010000 0x1000>;
83b97ee269SEmmanuel Vadot
84b97ee269SEmmanuel Vadot        clocks = <&oscclk6a>;
85b97ee269SEmmanuel Vadot        clock-names = "apb_pclk";
86b97ee269SEmmanuel Vadot        in-ports {
87b97ee269SEmmanuel Vadot            port {
88b97ee269SEmmanuel Vadot                etb_in_port: endpoint {
89b97ee269SEmmanuel Vadot                    remote-endpoint = <&replicator_out_port0>;
90b97ee269SEmmanuel Vadot                };
91b97ee269SEmmanuel Vadot            };
92b97ee269SEmmanuel Vadot        };
93b97ee269SEmmanuel Vadot    };
94b97ee269SEmmanuel Vadot
95b97ee269SEmmanuel Vadot...
96