Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp163126img; Wed, 27 Mar 2019 19:37:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVELXYD4B+aRq5aCi5epp4XjDCaa7GTJfscb6Ctrzuz3xMBrAJco0Af7OJKQEUhfHTZZTR X-Received: by 2002:a63:4e4e:: with SMTP id o14mr38182987pgl.254.1553740634170; Wed, 27 Mar 2019 19:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553740634; cv=none; d=google.com; s=arc-20160816; b=OtsO8QCyrpd34v17Yz0Iwj6Wa7qyvoQnbrLCsXQOORh+rHZOn3o5eHEcgKP92Zqvyx Mz1wd7TbwxGMpqAdAKSH2EofL5jdk92fHoP7/VofcPkcU22GnA/Hiyh6byIYWNyBwEuk s1WyE8KnwamxnQgqnciJjdgCbW/tuyfcpl0VcnmQj04JolnvAmr1pnKHKdltW7Nf9agE 74WIfoe8xht2zpnVyl5r/g9YQL5Iu3kMAnltj1poFnYtrUreci+wQd8B/qUjevntVDbQ J9TRow0lsH6xsfmi26uvWHVRftAhqjhK+Udtma0xPdLo8VfmsyurtJJx8d0nmZWkFBf4 HXJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=izMEmenMwBdlubPiof5Ev5xU+2SW+3nUdBrCi2sga88=; b=HLzm33LyknBwhGOXA+JLpiQDRY7cAzHm6LARHpE/YUSinXqMJY+Oo1ee1Jb0djmw93 tuNKLi5tovaafyy6/E+ERdZK2qTQtePr8f8AFrHaj7WdJaeQFsyf+vqKgrGYKWiNciM3 RM4Z98FLvYb7elpFWTDfDaxfaneVBSLn4dFo4mUbDVVbF53CJVd2XP6hoM2Vh2Cd1YoH hi4zhgUB/Lpbci1PLRj9tA5UZShTVgB8xyZJHVr9tLTxooB/QkursHQvoqB+YG3KJ+ZI kZhD0CI+VMyDl45BeXwrmLaBKHLeJna+g4CKyuR8XuzayUYdyWBifLVv/vfT2aisKh0T c6MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zAfkv3nl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d38si21278681pla.304.2019.03.27.19.36.58; Wed, 27 Mar 2019 19:37:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zAfkv3nl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728308AbfC1CgT (ORCPT + 99 others); Wed, 27 Mar 2019 22:36:19 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:37108 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728203AbfC1CgS (ORCPT ); Wed, 27 Mar 2019 22:36:18 -0400 Received: by mail-yw1-f68.google.com with SMTP id w66so1735717ywd.4 for ; Wed, 27 Mar 2019 19:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=izMEmenMwBdlubPiof5Ev5xU+2SW+3nUdBrCi2sga88=; b=zAfkv3nlCpcu6TSOQFT/3Fyd0KL9msGTLGDNLLdL4jyUY8HHZM7r1qIMIET5tQpfiw TjC8X6n3xhPLWHBo8UPhTiCo6hS3QrZUScBJ2e6WDGj0afXx5Kva5v8NhIBkpMkBjefV P6Ek2BuEzRCJAZjUGxK8xGWEYMj1XgAGSJ/t2nQJvZNldaplak/ZPmeP4xn+2mR/WA1N 8UbesXQ57KGQF6q1oG9HtoPv6YYmnaiAwSn0kBGv999xFlgxHdJtaR9xf10rKBjwxny7 LdGLJ7ra65NijJWIgompQrHWOZnRBmArejxpWVGJOpgPVX7LDRClEU4vh+A3A/QB0783 Ms+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=izMEmenMwBdlubPiof5Ev5xU+2SW+3nUdBrCi2sga88=; b=OQCLDca6CC5WTo156odN609RFJJxY8r025FBCl0cYzgfsHWoXEqaBXAppjJ0FDci2a kTzYD0+0gHinTlC3I7vnv1OtCgxaIQyUyfgqQOFI0+D7tjCx+QPuci4aqVjnfTXsO4Vn b1agn2E9Lttk87jbVvlIv8DxO47Jl/XRIBhufMqgaEu3XWSSEQ4/ZXUBMGo3RVjvsw9f VoOu8YJ7QskX9keqjQ5a0BrP9Q5erpCWZjtQMNagRn0jzwsZ/gtor1Lrer2t/eMf6Fjy LBON2NKn4j4w4/liRZTRLJ8ggXMrzTp/+LpttFKChehZL5bS+aoIIBlnHWWVFFYeUj82 MNkQ== X-Gm-Message-State: APjAAAVUktWiBDijgYUfc04BHGRYnmAiFq7J2+KCeOV3F0n3k4oMNVX+ mTXM8+Gr6Pdw6+BxXgOr8Frlzw== X-Received: by 2002:a81:ad61:: with SMTP id l33mr31841567ywk.506.1553740577793; Wed, 27 Mar 2019 19:36:17 -0700 (PDT) Received: from localhost.localdomain (li931-65.members.linode.com. [45.56.113.65]) by smtp.gmail.com with ESMTPSA id t71sm16272787ywc.4.2019.03.27.19.36.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Mar 2019 19:36:16 -0700 (PDT) From: Leo Yan To: Mathieu Poirier , Suzuki K Poulose , Rob Herring , Mark Rutland , Alexander Shishkin , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, Wanglai Shi Cc: Leo Yan Subject: [PATCH v3 1/2] dt-bindings: arm: coresight: Support static funnel Date: Thu, 28 Mar 2019 10:35:08 +0800 Message-Id: <20190328023509.22242-2-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190328023509.22242-1-leo.yan@linaro.org> References: <20190328023509.22242-1-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document DT binding for static (non-configurable) funnel and give an example for it. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Wanglai Shi Signed-off-by: Leo Yan --- .../devicetree/bindings/arm/coresight.txt | 45 +++++++++++++++++-- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/coresight.txt b/Documentation/devicetree/bindings/arm/coresight.txt index f8aff65ab921..42935c6ca9d6 100644 --- a/Documentation/devicetree/bindings/arm/coresight.txt +++ b/Documentation/devicetree/bindings/arm/coresight.txt @@ -8,7 +8,8 @@ through the intermediate links connecting the source to the currently selected sink. Each CoreSight component device should use these properties to describe its hardware characteristcs. -* Required properties for all components *except* non-configurable replicators: +* Required properties for all components *except* non-configurable replicators + and non-configurable funnels: * compatible: These have to be supplemented with "arm,primecell" as drivers are using the AMBA bus interface. Possible values include: @@ -24,7 +25,7 @@ its hardware characteristcs. discovered at boot time when the device is probed. "arm,coresight-tmc", "arm,primecell"; - - Trace Funnel: + - Trace Programmable Funnel: "arm,coresight-funnel", "arm,primecell"; - Embedded Trace Macrocell (version 3.x) and @@ -65,11 +66,12 @@ its hardware characteristcs. "stm-stimulus-base", each corresponding to the areas defined in "reg". * Required properties for devices that don't show up on the AMBA bus, such as - non-configurable replicators: + non-configurable replicators and non-configurable funnels: * compatible: Currently supported value is (note the absence of the AMBA markee): - "arm,coresight-replicator" + - "arm,coresight-static-funnel" * port or ports: see "Graph bindings for Coresight" below. @@ -200,6 +202,43 @@ Example: }; }; + funnel { + /* + * non-configurable funnel don't show up on the AMBA + * bus. As such no need to add "arm,primecell". + */ + compatible = "arm,coresight-static-funnel"; + clocks = <&crg_ctrl HI3660_PCLK>; + clock-names = "apb_pclk"; + + out-ports { + port { + combo_funnel_out: endpoint { + remote-endpoint = <&top_funnel_in>; + }; + }; + }; + + in-ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + combo_funnel_in0: endpoint { + remote-endpoint = <&cluster0_etf_out>; + }; + }; + + port@1 { + reg = <1>; + combo_funnel_in1: endpoint { + remote-endpoint = <&cluster1_etf_out>; + }; + }; + }; + }; + funnel@20040000 { compatible = "arm,coresight-funnel", "arm,primecell"; reg = <0 0x20040000 0 0x1000>; -- 2.17.1