From patchwork Wed Dec 23 10:03:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 347002 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp6068000jai; Wed, 23 Dec 2020 02:06:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjnuQbbwbGzom0Ub5onzFammOyHjnsQpBs22ZpvNC3D0YFEoTU4Cy6avDSL5SZTjDBLq3C X-Received: by 2002:a17:906:565a:: with SMTP id v26mr22449498ejr.332.1608718005396; Wed, 23 Dec 2020 02:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608718005; cv=none; d=google.com; s=arc-20160816; b=Y9AJLHq4/tcLS+Ll0Ai2TcXCcexEDtwPpXucHzyDzG4NSwIRPs+m7g7ssZ7WHEyuq4 ep30JG8jIHMWwUcGMwTtpZ1CHymqHBddMNhwpDdImYdVD7PgLbByw5HOmKkO0t4on0sk sODYM/XJPu2+TYvEoBX5CBanUmlT2z/hoKIK+7mEtTmAC5OB5pPpn7PtG0PY+n4jq/lV MNM4LzLZVlSmxXKtL7siGS0PxRNAJoU7tkN6LniOJQKKRHz0mzFbAK+KuRbJZ8/FyZTS oW9BOiDei/smffSnR8DShmXuSstw8mcpYA9ncx42xo21bZbij91HGcoqdeHSQGgQHhKP 81yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=qmnLzZEPwHpGUL93CTAeACOb7wu8M0rmehnHnhexFec=; b=Vn9SftUeZwHeSMpKFEV4dgFpZpSinUPLUUTFfTpHDloe2sKYtP7sfQW1vHULc/wxUG 2dduDwEaknxp/k0XrIC8x5yecxrVkC0ba9l7glMcysZ2Z++1wspxo92rTaGwHOstG8kL MtmQj4v8nVMhcb5plcyyahn5rq5uko/HWGWTKRtmqimxo2Dsug0NR3MgQtaUcKyDPLBh AEyq9MVRflDsekhsjAy4l1IPIRLCzM8Arr8gaCkkaroQxPud/tN40Amy7CESCS3Zo9nE Ng1t+LSLUJBaN1th56G+OuLflTzgjA7q9AdVEFiONpCrS8Lbc1L85USvSvA9HOs4Ylgq HObg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 v19si13444318edr.303.2020.12.23.02.06.45; Wed, 23 Dec 2020 02:06:45 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1726022AbgLWKFN (ORCPT + 7 others); Wed, 23 Dec 2020 05:05:13 -0500 Received: from foss.arm.com ([217.140.110.172]:48052 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728387AbgLWKFN (ORCPT ); Wed, 23 Dec 2020 05:05:13 -0500 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 215231474; Wed, 23 Dec 2020 02:04:01 -0800 (PST) Received: from p8cg001049571a15.blr.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DB8063F718; Wed, 23 Dec 2020 02:03:57 -0800 (PST) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Cc: linux-kernel@vger.kernel.org, Anshuman Khandual , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Linu Cherian , devicetree@vger.kernel.org, Rob Herring Subject: [PATCH 06/11] dts: bindings: Document device tree bindings for ETE Date: Wed, 23 Dec 2020 15:33:38 +0530 Message-Id: <1608717823-18387-7-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608717823-18387-1-git-send-email-anshuman.khandual@arm.com> References: <1608717823-18387-1-git-send-email-anshuman.khandual@arm.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Suzuki K Poulose Document the device tree bindings for Embedded Trace Extensions. ETE can be connected to legacy coresight components and thus could optionally contain a connection graph as described by the CoreSight bindings. Cc: devicetree@vger.kernel.org Cc: Mathieu Poirier Cc: Mike Leach Cc: Rob Herring Signed-off-by: Suzuki K Poulose Signed-off-by: Anshuman Khandual --- Documentation/devicetree/bindings/arm/ete.txt | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/ete.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/arm/ete.txt b/Documentation/devicetree/bindings/arm/ete.txt new file mode 100644 index 0000000..b52b507 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/ete.txt @@ -0,0 +1,41 @@ +Arm Embedded Trace Extensions + +Arm Embedded Trace Extensions (ETE) is a per CPU trace component that +allows tracing the CPU execution. It overlaps with the CoreSight ETMv4 +architecture and has extended support for future architecture changes. +The trace generated by the ETE could be stored via legacy CoreSight +components (e.g, TMC-ETR) or other means (e.g, using a per CPU buffer +Arm Trace Buffer Extension (TRBE)). Since the ETE can be connected to +legacy CoreSight components, a node must be listed per instance, along +with any optional connection graph as per the coresight bindings. +See bindings/arm/coresight.txt. + +** ETE Required properties: + +- compatible : should be one of: + "arm,embedded-trace-extensions" + +- cpu : the CPU phandle this ETE belongs to. + +** Optional properties: +- CoreSight connection graph, see bindings/arm/coresight.txt. + +** Example: + +ete_0 { + compatible = "arm,embedded-trace-extension"; + cpu = <&cpu_0>; +}; + +ete_1 { + compatible = "arm,embedded-trace-extension"; + cpu = <&cpu_1>; + + out-ports { /* legacy CoreSight connection */ + port { + ete1_out_port: endpoint@0 { + remote-endpoint = <&funnel_in_port0>; + }; + }; + }; +}; From patchwork Wed Dec 23 10:03:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 347001 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp6067995jai; Wed, 23 Dec 2020 02:06:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYod09JIYvnOkVl03DQEef+YtA1zEarIzyNBxnml+NFDrGZljexahH8ejNUtbBsKmQdVCH X-Received: by 2002:a50:e848:: with SMTP id k8mr23901447edn.77.1608718005045; Wed, 23 Dec 2020 02:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608718005; cv=none; d=google.com; s=arc-20160816; b=Tdu5LyyVAcU/XvPXaEltib7dWo8c9V78EzoYyggoQ9vGkgdqsrCnlRiwm7xqsjK02v ezijJturL+Z3F9uuX1yACykhrIJyZnJfbz8TSsJT/xM/QPyY16sTzv9HlqIp4gQfESEl OXHQn73BvDySCTGgw0TQPPzh4Q5GYNFXOhfx3oT6RQRbp8JiH1I8B4S3+rYFBwTGXLYN crOE+N6gY6HJlOx/74NjNaIqB+GMzwy7jR81X3cG3+rqJooIattALPiG3UXKIv1O50PH X/3irCvstyz01MxTJW1A8D/dQfMpmBmgmDl7rHMpjI2x23RC5K9WV4UPcNdbNHlwsj9t sHeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=/c8uq2vu5X+hzjg2/psVKMNvixaaeEqyTqxA6KuH2Bs=; b=dq7Tm15QmKO+rFXVJwfhIiC2J7hgvRE5/sZqy8n4EbG6wxEakfkgZyRT11Sylpw9Vx e+NeHJXOKbzN9ISOsNZe30yup5UYQsc8ceSdkPCmKhMG1iR9wiJeDbGuiyR0BUMzrTR7 xnlu7bRaIDrw1pABUPDwYTohpupYpCgb2vKNaHIqBtD2JINi9fleUrQSZPJJT4QEb+mM CNUUsCHP2DFXeodAJywzyWJ95uprt/Hjer03AY23+pI7zbmmuiSCWuoPI+VnSjBISh90 5QS33CnghChg+jqtEeNlwdeoVMjkP0+ckLgixz5bCC2Pi/Ovo6/oyQ/HQ92N8LZHgoqK CAxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 v19si13444318edr.303.2020.12.23.02.06.43; Wed, 23 Dec 2020 02:06:45 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728523AbgLWKFZ (ORCPT + 7 others); Wed, 23 Dec 2020 05:05:25 -0500 Received: from foss.arm.com ([217.140.110.172]:48062 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728489AbgLWKFW (ORCPT ); Wed, 23 Dec 2020 05:05:22 -0500 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 2CC0C1509; Wed, 23 Dec 2020 02:04:18 -0800 (PST) Received: from p8cg001049571a15.blr.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1C9A43F718; Wed, 23 Dec 2020 02:04:14 -0800 (PST) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Cc: linux-kernel@vger.kernel.org, Anshuman Khandual , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Linu Cherian , devicetree@vger.kernel.org Subject: [PATCH 11/11] dts: bindings: Document device tree binding for Arm TRBE Date: Wed, 23 Dec 2020 15:33:43 +0530 Message-Id: <1608717823-18387-12-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608717823-18387-1-git-send-email-anshuman.khandual@arm.com> References: <1608717823-18387-1-git-send-email-anshuman.khandual@arm.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch documents the device tree binding in use for Arm TRBE. Cc: devicetree@vger.kernel.org Cc: Mathieu Poirier Cc: Mike Leach Cc: Suzuki K Poulose Signed-off-by: Anshuman Khandual --- Changes in V1: - TRBE DT entry has been renamed as 'arm, trace-buffer-extension' Documentation/devicetree/bindings/arm/trbe.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/trbe.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/arm/trbe.txt b/Documentation/devicetree/bindings/arm/trbe.txt new file mode 100644 index 0000000..001945d --- /dev/null +++ b/Documentation/devicetree/bindings/arm/trbe.txt @@ -0,0 +1,20 @@ +* Trace Buffer Extension (TRBE) + +Trace Buffer Extension (TRBE) is used for collecting trace data generated +from a corresponding trace unit (ETE) using an in memory trace buffer. + +** TRBE Required properties: + +- compatible : should be one of: + "arm,trace-buffer-extension" + +- interrupts : Exactly 1 PPI must be listed. For heterogeneous systems where + TRBE is only supported on a subset of the CPUs, please consult + the arm,gic-v3 binding for details on describing a PPI partition. + +** Example: + +trbe { + compatible = "arm,trace-buffer-extension"; + interrupts = ; +};