Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1464673pxb; Thu, 4 Nov 2021 02:48:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytX+DtMK22xWMopn55xIScUDY4uY0SOQ3HD9G+2wlBTxdZPxVsoM43PadYAihGTgkIO4IA X-Received: by 2002:a17:907:94c2:: with SMTP id dn2mr42179533ejc.312.1636019294513; Thu, 04 Nov 2021 02:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636019294; cv=none; d=google.com; s=arc-20160816; b=EUjoXaUtGxX1R0OkvNDTQrLKfqgli9UK2pPOcnBkxQIql5S5INzpzhbbIcILca0Zel yKas0Cb02YETsEvfxlIQEnT/11R1Y33Il8F/rKy4PwYZtZ4USHT+2yd8BKtwsQ6LaqkE PQ/6hFCJ/dZpbYJeOzKdK2K7KN5SPl/ZyWKzGM+o59eLNcgHK/ZRbcXwbKAhssFBUkhH g+9g+d8dgLGeNmvTyJqaZdxElKXqyCplu2zkg6iU/CG9qqR3G3rSloj9vTZItPtG8aQJ dpaPFjPq8iACTSsyPGHTNh5/Tc2/4FyvZhuC9FttX+qRt/tri4UPt45fZQuh3t4uaDMw T3Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=KmcLMMiqWMiZm8rHC1+LEIVEKqzZ0Z62PiaT99SG1bY=; b=BRVkK/p8ZDamoIdaBTqOr8xbJ+ZWwKQ+8yYWPl3GQoPx1UHDnQB3dD6aKvXNqzSsg+ Kfl5j5Pf3FF5vGRQxiHD7MYqKagbZ6mX75uykFeMTqe6U/KnYkqBCNV+JapJ2HRQvNqD O7GdxeZ2IUkQYg9TuyBigmJrPbkrsoWe8/hXXqyKAUMMqmNH2aCs0bKXXlujpmeUGbsk keLtvnzm7j4Vmez0XHrfvtGUv/cEXkbsanquhq1Qhn1nWb8XfD6JviSLwPu9okKY6sGj ntEiOqy9J2rFnlPFEJDfyJK5EplqPFpTprd+4cGV5J5yHIGkVhMvHU7vO5vgLb1Qeolj RPJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id au25si6142000ejc.533.2021.11.04.02.47.50; Thu, 04 Nov 2021 02:48:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231252AbhKDJru (ORCPT + 99 others); Thu, 4 Nov 2021 05:47:50 -0400 Received: from foss.arm.com ([217.140.110.172]:45562 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231293AbhKDJrt (ORCPT ); Thu, 4 Nov 2021 05:47:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 884091063; Thu, 4 Nov 2021 02:45:11 -0700 (PDT) Received: from [10.57.56.48] (unknown [10.57.56.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 998903F719; Thu, 4 Nov 2021 02:45:09 -0700 (PDT) Subject: Re: [PATCH 10/10] ARM: dts: msm: Add TPDA and TPDM support to DTS for RB5 To: Tao Zhang , Mathieu Poirier , Alexander Shishkin Cc: Mike Leach , Leo Yan , Greg Kroah-Hartman , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tingwei Zhang , Mao Jinlong , Yuanfang Zhang , Trilok Soni References: <1634801936-15080-1-git-send-email-quic_taozha@quicinc.com> <1634801936-15080-11-git-send-email-quic_taozha@quicinc.com> From: Suzuki K Poulose Message-ID: Date: Thu, 4 Nov 2021 09:45:08 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <1634801936-15080-11-git-send-email-quic_taozha@quicinc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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