Based on kernel version 6.11
. Page generated on 2024-09-24 08:21 EST
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause # Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. %YAML 1.2 --- $id: http://devicetree.org/schemas/arm/qcom,coresight-tpda.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Trace, Profiling and Diagnostics Aggregator - TPDA description: | TPDAs are responsible for packetization and timestamping of data sets utilizing the MIPI STPv2 packet protocol. Pulling data sets from one or more attached TPDM and pushing the resultant (packetized) data out a master ATB interface. Performing an arbitrated ATB interleaving (funneling) task for free-flowing data from TPDM (i.e. CMB and DSB data set flows). There is no strict binding between TPDM and TPDA. TPDA can have multiple TPDMs connect to it. But There must be only one TPDA in the path from the TPDM source to TMC sink. TPDM can directly connect to TPDA's inport or connect to funnel which will connect to TPDA's inport. We can use the commands are similar to the below to validate TPDMs. Enable coresight sink first. echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink echo 1 > /sys/bus/coresight/devices/tpdm0/enable_source echo 1 > /sys/bus/coresight/devices/tpdm0/integration_test echo 2 > /sys/bus/coresight/devices/tpdm0/integration_test The test data will be collected in the coresight sink which is enabled. If rwp register of the sink is keeping updating when do integration_test (by cat tmc_etf0/mgmt/rwp), it means there is data generated from TPDM to sink. maintainers: - Mao Jinlong <quic_jinlmao@quicinc.com> - Tao Zhang <quic_taozha@quicinc.com> # Need a custom select here or 'arm,primecell' will match on lots of nodes select: properties: compatible: contains: enum: - qcom,coresight-tpda required: - compatible properties: $nodename: pattern: "^tpda(@[0-9a-f]+)$" compatible: items: - const: qcom,coresight-tpda - const: arm,primecell reg: minItems: 1 maxItems: 2 clocks: maxItems: 1 clock-names: items: - const: apb_pclk in-ports: description: | Input connections from TPDM to TPDA $ref: /schemas/graph.yaml#/properties/ports out-ports: description: | Output connections from the TPDA to legacy CoreSight trace bus. $ref: /schemas/graph.yaml#/properties/ports properties: port: description: Output connection from the TPDA to legacy CoreSight Trace bus. $ref: /schemas/graph.yaml#/properties/port required: - compatible - reg - clocks - clock-names - in-ports - out-ports additionalProperties: false examples: # minimum tpda definition. - | tpda@6004000 { compatible = "qcom,coresight-tpda", "arm,primecell"; reg = <0x6004000 0x1000>; clocks = <&aoss_qmp>; clock-names = "apb_pclk"; in-ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; tpda_qdss_0_in_tpdm_dcc: endpoint { remote-endpoint = <&tpdm_dcc_out_tpda_qdss_0>; }; }; }; out-ports { port { tpda_qdss_out_funnel_in0: endpoint { remote-endpoint = <&funnel_in0_in_tpda_qdss>; }; }; }; }; ... |