Debian Codegraph @

Documentation/devicetree/bindings/arm/qcom,coresight-ctcu.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/arm/qcom,coresight-ctcu.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: CoreSight TMC Control Unit
8
9 maintainers:
10 - Yuanfang Zhang <[email protected]>
11 - Mao Jinlong <[email protected]>
12 - Jie Gan <[email protected]>
13
14 description: |
15 The Trace Memory Controller(TMC) is used for Embedded Trace Buffer(ETB),
16 Embedded Trace FIFO(ETF) and Embedded Trace Router(ETR) configurations.
17 The configuration mode (ETB, ETF, ETR) is discovered at boot time when
18 the device is probed.
19
20 The Coresight TMC Control unit controls various Coresight behaviors.
21 It works as a helper device when connected to TMC ETR device.
22 It is responsible for controlling the data filter function based on
23 the source device's Trace ID for TMC ETR device. The trace data with
24 that Trace id can get into ETR's buffer while other trace data gets
25 ignored.
26
27 properties:
28 compatible:
29 oneOf:
30 - items:
31 - enum:
32 - qcom,qcs8300-ctcu
33 - const: qcom,sa8775p-ctcu
34 - enum:
35 - qcom,sa8775p-ctcu
36
37 reg:
38 maxItems: 1
39
40 clocks:
41 maxItems: 1
42
43 clock-names:
44 items:
45 - const: apb
46
47 label:
48 description:
49 Description of a coresight device.
50
51 in-ports:
52 $ref: /schemas/graph.yaml#/properties/ports
53
54 patternProperties:
55 '^port(@[0-1])?$':
56 description: Input connections from CoreSight Trace bus
57 $ref: /schemas/graph.yaml#/properties/port
58
59 required:
60 - compatible
61 - reg
62 - in-ports
63
64 additionalProperties: false
65
66 examples:
67 - |
68 ctcu@1001000 {
69 compatible = "qcom,sa8775p-ctcu";
70 reg = <0x1001000 0x1000>;
71
72 clocks = <&aoss_qmp>;
73 clock-names = "apb";
74
75 in-ports {
76 #address-cells = <1>;
77 #size-cells = <0>;
78
79 port@0 {
80 reg = <0>;
81 ctcu_in_port0: endpoint {
82 remote-endpoint = <&etr0_out_port>;
83 };
84 };
85
86 port@1 {
87 reg = <1>;
88 ctcu_in_port1: endpoint {
89 remote-endpoint = <&etr1_out_port>;
90 };
91 };
92 };
93 };