From patchwork Thu Mar 28 02:35:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 161284 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp164051jan; Wed, 27 Mar 2019 19:36:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUM8YbTdBO2j3TvTP8pUxo+i6eFJ2sigyFZgLHyT/L4mrKtCbY1RUV5gnUmtodrBnBfZfV X-Received: by 2002:a63:530e:: with SMTP id h14mr13464832pgb.136.1553740579615; Wed, 27 Mar 2019 19:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553740579; cv=none; d=google.com; s=arc-20160816; b=tus3aRxfWoDAFVxVny3YoUq7TjrvZe3D9YuiPIRlzBM9p4vinFtvdR6EX8j54klNUY dMSS5P/hDyU9BEmPcQR0OXr3eVbMWZHmfqOj1WAicUgWZmfw63bL45EzD6zujd7MvmPI PomMoLb6utdN7qO4c+uHBGgBuR3CEb2PBZ4ZWmW8gqqR4pGwEQMtPq1h+ia/dQHGQyqA +0RwVojg924++4FnQVMORfdpmnTG7XlbHhxmwW+afiV20yu8suR7/WND+RdjcGY15bnY YQfX1ftKcnQiMKKLubcF/XcB9FBsgg5AAQylaehiFCI2TnkmThriG9uo3y6gKi3Q70cg Wrwg== 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=SBJAqrKtWBKv5YJoPuvmGUzOkNwiV8OM4AD41+109ExSoovngYNjsPAEKROQXM5ib2 unx5PjUPZi6ukdhYxAQSBe6txDJdguMI51kc/cUutBVeKpkzSuVhNt2jZvdAltgV1sP7 nEkVLmI3ao9K3yKPP0V+LY1VXBgy5lAuNRdAfGVRA6Om2PeyoSfNpqrfrhCKXfnykwBC pulZ+LJTV4Zwt5DJXEYH5Ec22eVKQbGG4EpDY/NP849VFK59PlifIaxJYs+ULP8G7EVj qdROAUb/+isPh3c1Osrz5q1d92LN27A8ierJ+X8rH+rO5z6zi+8vX90tCT9oJ6OwmxJq x+qA== 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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 h24si19553951pgv.67.2019.03.27.19.36.19; Wed, 27 Mar 2019 19:36:19 -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; dkim=pass header.i=@linaro.org header.s=google header.b=zAfkv3nl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728236AbfC1CgS (ORCPT + 7 others); Wed, 27 Mar 2019 22:36:18 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:45871 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbfC1CgS (ORCPT ); Wed, 27 Mar 2019 22:36:18 -0400 Received: by mail-yw1-f65.google.com with SMTP id j128so14084186ywg.12 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=p7g2MkOaZKPxISRwYWxaHzFLKlbZpTk2GpIz6AtisAW87JgvCVH0IpcNOLG6FvYRIT 3jKo5I8bh/VsgeYTTd3fvhTaNV4Xk6Q/EcqTwE1yToHMoaAjvxwL5ZgZ9SK0z7sKrqQs w769V9UJi3m0atywocgLIM3r/pRaqAPyatJZ97nto3DtyVVmmyapR1VXhb8e1oaO3+u9 rZpirJs1EmAI2SiEskvufvLMPqgUEEGEfrPi0zhJxuo+iiii4wsmGQsJwX6M6/YpsUSL icM+hcQc94U/w71OpqIzYNIBEdF7ZyW3EiDrfg6iyaIBDerCK/g1EJd/qHZIK2a7agRd BGhw== X-Gm-Message-State: APjAAAVRxjVOKnXdyo1ljdLueptr4AfdblYRE1hnj7HhtIe7/xxi3v+P Q1I1RRtWhy61sG6+0XR2XiS5jQ== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- 2.17.1 Reviewed-by: Rob Herring 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>;