From patchwork Wed Mar 20 12:38:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wanglai Shi X-Patchwork-Id: 160661 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp252146jan; Wed, 20 Mar 2019 05:53:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVatMK5bP/d+TovlolD8cr42qocSeTwAxgUOT/VHJp1s8Ly2PyU81B2x5oJhhDYn+usmts X-Received: by 2002:a63:5659:: with SMTP id g25mr6930446pgm.436.1553086425745; Wed, 20 Mar 2019 05:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553086425; cv=none; d=google.com; s=arc-20160816; b=IBIrh923whIX0frr+XYEkISPMDXJwUbvUFRDk7IeADxBMGVNaaXb/2RftELs2UAp0S a1AQqFsatyjYzeT+cHzo953gug6mWngVa7Gl6bMfT7X5XFEGs1NLs7VfJxdJGzfDzRFF tl+7nccwjHo2fAe5C4y+Lsd7YN7i/IGgIOPuXispveS9Nx+avD4QZlPCd5rY4nxaB1+X SMQC12bu5zOB+mFdsfi1ZfGdr4g+unvKZ1dBn630pjPrqo5PExxX5pmddwD0L2mTSvw+ E6cClT7nL/blolB1+f5g/qMCBIxbxi04d1h+ivSDjO1wTODgzrTlIxftDbh4jUTpidrg 1Vdg== 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=HkA8kEEUomTTB2fgHwLZ6VnZz/pSy+UOh9vsG/dk7s8yhKX8apFs4cCvwQ03FcpwOG TRJdb8kA2DoVyFNws9XvyWd0t6iQscTlPDoatLXA/Z5dZtS9WRqx69/7QXlGDxMjfo6r FlEFpUY8QiBSRUP9J2GwYsf5UVdaqs0NU0+g194MVHkjCGW0wFncsn79VR+sGs9pD+CR fMRSD61duWlaS7lwAqKUITQgTNnrzqVRiG0aJ2Q2Oy8bE0UOiQydJ+avzSgBdgvhhEiy +JJ2pgKps4D5geW+5yaBVxmZouAxtKcWfL/Ysb7Curdg7yNw0ci55kH0ctCtZw72eV11 GpAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 l66si1623709pgl.474.2019.03.20.05.53.45; Wed, 20 Mar 2019 05:53:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726239AbfCTMxo (ORCPT + 7 others); Wed, 20 Mar 2019 08:53:44 -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 X-Originating-IP: [100.106.92.139] X-CFilter-Loop: Reflected Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- 2.17.1 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>;