Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp531425img; Wed, 20 Mar 2019 05:54:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTlV42lW6/aXa6aIgpMpL3dtXnTyfIpqnHD8/R5016WGNVNXGD4steIN1SqNgmLkSdWAy9 X-Received: by 2002:a17:902:9893:: with SMTP id s19mr8170436plp.165.1553086482377; Wed, 20 Mar 2019 05:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553086482; cv=none; d=google.com; s=arc-20160816; b=H+Dqc3CM20kEG0UVgiUGUJXfYY7Ro9HDXQoNFv8cAlT4YcmSIi3ym5Z9Bg91qDQkZd QfnoYMm3m8/yeL8SOolsPdUjvbhkMx0LvP71VjG9gB9pG8vo12fjJOU+ug2jCXH4HMkQ mVh2kjYsX00S3TF1f5YVDapbtB1YDrgC3zlL5mFasuJrbj0adirGFgAczG3Q4Ujmp+zo /eLDxhOTYvwNKG/bkLUfQHj4HJdMtADc540Y2USPHm32TfUmTbiNcqDi2+qz03oYBmpc T9TqYAehySRzRURg8FCBCG2Ixq28Krs56wd1J/gvZvlIbG6FaAyAXhrrJAh6eaUWQimZ 4uoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=n35b7n85yuhxVi4NsZ6eB8JZgwzd8aHAPO4O33oBpvU=; b=PpiukzWsNbvUrcLqUiVx9o+iXTnHE7E/ZiYH/wO9xNYoP1s+l0i6y4Rs7xfoDsbsNB N2JiQA8oBwvsVpp2+O0mXd/P7m8/IGuANAfVy2VyAmDRvzBmWYsQSXM9bwsqj9Uwsu6B b1EmfUbQZXnw/ZTeyE6qBg5BSLpL8v+fYMAgrJhUBpfYhd5SNKkMxKM77g7MoMkaVy2O Ny1/qHkxhFJ0QTVmRdS+RSruSd7WIq8tYGaVv3wid0eo4Nq4HVqsYxEI5uBzUphTa4qK JO1g4oK6pooH3NuY4LyCi2tMtbGbn4tdzGAJjiQkTDMLElDnGb8WT5B2ww0KRXudv2mZ 2YJA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si1626178pgj.177.2019.03.20.05.54.26; Wed, 20 Mar 2019 05:54:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727613AbfCTMxp (ORCPT + 99 others); Wed, 20 Mar 2019 08:53:45 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:38262 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725996AbfCTMxo (ORCPT ); Wed, 20 Mar 2019 08:53:44 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 31E02D2D643F82DD8FDE; Wed, 20 Mar 2019 20:53:42 +0800 (CST) Received: from SHA1000170415.huawei.com (100.106.92.139) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Wed, 20 Mar 2019 20:53:35 +0800 From: Wanglai Shi To: , , , , , CC: , , , , Subject: [PATCH v2 1/3] dt-bindings: arm: coresight: Support non-configurable funnel Date: Wed, 20 Mar 2019 20:38:08 +0800 Message-ID: <1553085490-42870-2-git-send-email-shiwanglai@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1553085490-42870-1-git-send-email-shiwanglai@hisilicon.com> References: <1553085490-42870-1-git-send-email-shiwanglai@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [100.106.92.139] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yan Document DT binding for non-configurable funnel and give an example for it. 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..e63ec3362af8 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-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-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