On 21/10/2021 08:38, Tao Zhang wrote:
Add TPDA and TPDM support to DTS for RB5 board. This change is a sample for validating. After applying this patch, the new TPDM and TPDA nodes can be observed at the coresight devices path. TPDM and TPDA hardware can be operated by commands.
List the commands for validating this series patches as below. 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 cat /dev/tmc_etf0 > /data/etf-tpdm0.bin echo 0 > /sys/bus/coresight/devices/tpdm0/enable_source echo 0 > /sys/bus/coresight/devices/tmc_etf0/enable_sink echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink echo 1 > /sys/bus/coresight/devices/tpdm1/enable_source echo 1 > /sys/bus/coresight/devices/tpdm1/integration_test echo 2 > /sys/bus/coresight/devices/tpdm1/integration_test cat /dev/tmc_etf0 > /data/etf-tpdm1.bin echo 0 > /sys/bus/coresight/devices/tpdm1/enable_source echo 0 > /sys/bus/coresight/devices/tmc_etf0/enable_sink echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink echo 1 > /sys/bus/coresight/devices/tpdm2/enable_source echo 1 > /sys/bus/coresight/devices/tpdm2/integration_test echo 2 > /sys/bus/coresight/devices/tpdm2/integration_test cat /dev/tmc_etf0 > /data/etf-tpdm2.bin echo 0 > /sys/bus/coresight/devices/tpdm2/enable_source echo 0 > /sys/bus/coresight/devices/tmc_etf0/enable_sink
If the data from TPDMs can be obtained from the ETF, it means that the TPDMs verification is successful. At the same time,
How can we decode the TPDM trace ? Is there a public decoder available ?
since TPDM0, TPDM1 and TPDM2 are all connected to the same funnel "funnel@6c2d000" and output via different output ports, it also means that the following patches verification is successful. coresight: add support to enable more coresight paths coresight: funnel: add support for multiple output ports
Signed-off-by: Tao Zhang quic_taozha@quicinc.com
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 439 +++++++++++++++++++++++ 1 file changed, 439 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 8ac96f8e79d4..bcec8b181e11 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -222,6 +222,445 @@
- funnel@6b04000 {
compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
arm,primecell-periphid = <0x000bb908>;
reg = <0 0x6b04000 0 0x1000>;
reg-names = "funnel-base";
clocks = <&aoss_qmp>;
clock-names = "apb_pclk";
out-ports {
port {
merge_funnel_out: endpoint {
remote-endpoint =
<&etf_in>;
};
};
};
in-ports {
#address-cells = <1>;
#size-cells = <0>;
port@7 {
reg = <7>;
swao_funnel_in7: endpoint {
slave-mode;
This is obsolete, with the new in-ports/out-ports construct.
Suzuki