Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1901232ybg; Thu, 24 Oct 2019 01:45:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq7Jfgvnj+TBT1bY8xAUI/ehbRhLhOVtXbF2G00kVLN3F+Wj1oNbciNYpzNSwJS07FXVe6 X-Received: by 2002:a05:6402:28f:: with SMTP id l15mr42757599edv.90.1571906703075; Thu, 24 Oct 2019 01:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571906703; cv=none; d=google.com; s=arc-20160816; b=IVmbOlTQBsBxGl1TaScEV4Y3/+ZpT0DclsaWI3e8HB0Et1lygHGFi8hRqa2jYOoBZW /cxlvaTOc/dH9SxLf/IGibOlI3Bc8Mylvui7pfh+/812lOrCgs4I/+W3Kv5wb14rSkPA DHrInrB0T5DQnBEitL6OCzukTcf9oXbWih6nimOWy3mVFgIubQoyF/74AuUrS/QSqtgr bHeXXhgdj/gcJczOrLJo0ZcMCTJBt3H9A4FRehphMzSI8L9/LpiltyFcFcJBPFCoT7v7 TDj4xCEcPPZjNjpdExSfImSkyrVbyYDI4TD99GeHl/B4ZDrElMFi5MdREn03Qcjj1iPj 25kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FHddi31URb1ZVMU1f/OlQcKL3JwlroIUzHSEfU1rm9E=; b=YP4qcCmFusKk8dJ78+9qpZCRvdWzqIA7x8Jrtjt0SFDGlrF1ep5tnoe5ik+Jbn/JTU cgxokrvFAOfbYwX3Kp710ks6nW8mJ2h0A9YzFC1nM0ahbv7WVrPCyC+9zIMMyIcZ3lm2 +uClGGSGP2FkRDDnWvlWTPJLysiX0KfqRwqb7jgYW0E12idnc9kHqvhwBe4xgAFZVW66 1hlFETv0w8SiC9PoFMBMk5HiVnP6T7sKj1I4nKnNL9MyRUgVXEQ3N9/cclKTbE2WUCur tG4PgrYh7BQSC8nFFIHe9Y3UqiTINpIVoEFUtCIBjJfo6Gz3CJcS/f53xONloIFu7VM0 HY4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iIjn6zOk; 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 j52si8537682eda.438.2019.10.24.01.44.37; Thu, 24 Oct 2019 01:45:03 -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=iIjn6zOk; 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 S1730201AbfJWRcg (ORCPT + 99 others); Wed, 23 Oct 2019 13:32:36 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:38308 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730140AbfJWRcf (ORCPT ); Wed, 23 Oct 2019 13:32:35 -0400 Received: by mail-io1-f67.google.com with SMTP id u8so25923478iom.5 for ; Wed, 23 Oct 2019 10:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FHddi31URb1ZVMU1f/OlQcKL3JwlroIUzHSEfU1rm9E=; b=iIjn6zOkon2+vy3u6ieqyT3hIL8hquUtW4WVxARJ6GHQwHgVlZingSEfEw9ylY7oSA 1F16bAeKpgTLYL8UJtX2Etu3picTNixpMhzj/ekoOwp/cmGSBH7kGopfJcid2JgAy8Zk 1ekeWPNa7uy0YtmbrdEsazn/sa0lGt/eFUJMFsJwBgjiSuI4qlqblHgEO7XKfG3qksLr IDlP36H3VVyB02zXq77wDIDehyaKyQ3jmqrMyVY2/qASiIgVPru4z632XnyVSIxYBQHb w03wb0KJl4xmm3rZ2KTkP2qYtu2ybDHY5MESrnzdRpr3BOw+46Vdgg7SldIhK+UA0OV0 GUcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FHddi31URb1ZVMU1f/OlQcKL3JwlroIUzHSEfU1rm9E=; b=LxfVudPcwKtBhaZkCKVrVuTn5A8IVBCtY3duYLEtOuAszNcvlvybvNNZPinLPbej3k 3VnkqodZPw1fvLnlaPl99oiYYJG7pHT4k7jL1tjfF33g7Q8geJOo+QV0oC9z1f6uCqZ/ 4X5SaLR0JXwaBTD0ytr9l0XxIfbXCaTYSvs1QNs+302jRbXK+3O/U6hQ9h42rCuROOiW h1lHbbi72bw9qC9JIC5iXAip4RiqCvEQTq9GLwGjL58A4DfR7Cbc65qGdWUljrBln5V3 XP4kQbk97yZ2DUQRLqeNUr3gqBj1J5zz+ilJxQ/N20O4WcPWrtxiNflkGsCeP4qEyytD yYbA== X-Gm-Message-State: APjAAAWxgVrAJ/kV17Rro3+Bj+HQhrQuyaKWJTl/fXI5RmqJnl71v4K8 m2tLZZ2cn0eZE1gJrllJrp+JpJg541apOxYr0m3qHg== X-Received: by 2002:a6b:d104:: with SMTP id l4mr4641180iob.50.1571851952354; Wed, 23 Oct 2019 10:32:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mathieu Poirier Date: Wed, 23 Oct 2019 11:32:21 -0600 Message-ID: Subject: Re: [PATCH] ARM: dts: zynq: enablement of coresight topology To: Michal Simek Cc: Linux Kernel Mailing List , Michal Simek , git@xilinx.com, Zumeng Chen , Quanyang Wang , Mark Rutland , Peter Crosthwaite , Rob Herring , Rob Herring , Rob Herring , Steffen Trumtrar , devicetree@vger.kernel.org, linux-arm-kernel , u-boot@lists.denx.de Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, I was not CC'ed on the original post so I just noticed this today, hence the late reply. I don't know if you were looking for feedback or already picked up the patch but here it is anyway. On Wed, 9 Oct 2019 at 08:07, Michal Simek wrote: > > From: Zumeng Chen > > This patch is to build the coresight topology structure of zynq-7000 > series according to the docs of coresight and userguide of zynq-7000. > > Signed-off-by: Zumeng Chen > Signed-off-by: Quanyang Wang > Signed-off-by: Michal Simek > --- > > arch/arm/boot/dts/zynq-7000.dtsi | 158 +++++++++++++++++++++++++++++++ > 1 file changed, 158 insertions(+) > > diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi > index ca6425ad794c..86430ad76fee 100644 > --- a/arch/arm/boot/dts/zynq-7000.dtsi > +++ b/arch/arm/boot/dts/zynq-7000.dtsi > @@ -59,6 +59,40 @@ > regulator-always-on; > }; > > + replicator { > + compatible = "arm,coresight-static-replicator"; > + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; > + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; > + > + out-ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* replicator output ports */ > + port@0 { > + reg = <0>; > + replicator_out_port0: endpoint { > + remote-endpoint = <&tpiu_in_port>; > + }; > + }; > + port@1 { > + reg = <1>; > + replicator_out_port1: endpoint { > + remote-endpoint = <&etb_in_port>; > + }; > + }; > + }; > + in-ports { > + /* replicator input port */ > + port { > + replicator_in_port0: endpoint { > + slave-mode; The slave-mode property is no longer required and probably an oversight since it doesn't appear elsewhere in this patch. > + remote-endpoint = <&funnel_out_port>; > + }; > + }; > + }; > + }; > + > amba: amba { > compatible = "simple-bus"; > #address-cells = <1>; > @@ -365,5 +399,129 @@ > reg = <0xf8005000 0x1000>; > timeout-sec = <10>; > }; > + > + etb@f8801000 { > + compatible = "arm,coresight-etb10", "arm,primecell"; > + reg = <0xf8801000 0x1000>; > + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; > + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; > + in-ports { > + port { > + etb_in_port: endpoint { > + remote-endpoint = <&replicator_out_port1>; > + }; > + }; > + }; > + }; > + > + tpiu@f8803000 { > + compatible = "arm,coresight-tpiu", "arm,primecell"; > + reg = <0xf8803000 0x1000>; > + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; > + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; > + in-ports { > + port { > + tpiu_in_port: endpoint { > + remote-endpoint = <&replicator_out_port0>; > + }; > + }; > + }; > + }; > + > + funnel@f8804000 { > + compatible = "arm,coresight-static-funnel", "arm,primecell"; > + reg = <0xf8804000 0x1000>; > + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; > + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; > + > + /* funnel output ports */ > + out-ports { > + port { > + funnel_out_port: endpoint { > + remote-endpoint = > + <&replicator_in_port0>; > + }; > + }; > + }; > + > + in-ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* funnel input ports */ > + port@0 { > + reg = <0>; > + funnel0_in_port0: endpoint { > + remote-endpoint = <&ptm0_out_port>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + funnel0_in_port1: endpoint { > + remote-endpoint = <&ptm1_out_port>; > + }; > + }; > + > + port@2 { > + reg = <2>; > + funnel0_in_port2: endpoint { > + }; > + }; > + > + port@3 { > + reg = <3>; > + funnel0_in_port3: endpoint { > + remote-endpoint = <&itm_out_port>; > + }; > + }; > + /* The other input ports are not connect to anything */ > + }; > + }; > + > + /* ITM is not supported by kernel, only leave device node here */ > + itm@f8805000 { > + compatible = "arm,coresight-etm3x", "arm,primecell"; If I remember correctly ITM and ETMv3 are quite different - please remove entirely. > + reg = <0xf8805000 0x1000>; > + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; > + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; > + out-ports { > + port { > + itm_out_port: endpoint { > + remote-endpoint = <&funnel0_in_port3>; > + }; > + }; > + }; > + }; > + > + ptm@f889c000 { > + compatible = "arm,coresight-etm3x", "arm,primecell"; > + reg = <0xf889c000 0x1000>; > + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; > + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; > + cpu = <&cpu0>; > + out-ports { > + port { > + ptm0_out_port: endpoint { > + remote-endpoint = <&funnel0_in_port0>; > + }; > + }; > + }; > + }; > + > + ptm@f889d000 { > + compatible = "arm,coresight-etm3x", "arm,primecell"; > + reg = <0xf889d000 0x1000>; > + clocks = <&clkc 27>, <&clkc 46>, <&clkc 47>; > + clock-names = "apb_pclk", "dbg_trc", "dbg_apb"; > + cpu = <&cpu1>; > + out-ports { > + port { > + ptm1_out_port: endpoint { > + remote-endpoint = <&funnel0_in_port1>; > + }; > + }; > + }; > + }; With the above: Reviewed-by: Mathieu Poirier > }; > }; > -- > 2.17.1 >