Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2018867ybp; Thu, 10 Oct 2019 00:41:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ8q6jCkicdO1UBq7g08n8HeDJ5aPUzRbyTX2d9cVDx8l7T4rGhFsw/Wa536iicJRjyQOz X-Received: by 2002:a17:906:2307:: with SMTP id l7mr6528767eja.320.1570693310131; Thu, 10 Oct 2019 00:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570693310; cv=none; d=google.com; s=arc-20160816; b=OPDEDQE/IrmmvK7aHxK0gsj1c8WgFHK8wvml0YfIy3zJzTNm+k+rtlc4RVrZjhIEyz emzrST+kp7SvIf45C/u6xhEm4CbJFbldfV/unn2f+jCq+49U1qvjpVkVjbgKJT3guX6v Bva0VOr1/HItRfpQ4iAgDpWhSXjViB3GtGQDiuZYtq/0Fr5U5NC4Dnuv6dwEwW2X7+c7 ATZTlbaZhLwlEzgR4HWQK2rIWAx0uPT/VzlTrKm42TEvH3AD3IQUmKLD3AldgGZwchRp JDqynxzEFFKUQu21MqaaMAL1lgaNcRg5+Y36fdMNzHaiHjoi2MufcyNlwWqWtL6+4BNl 034w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=lURD/UFPtJv0kU3Yv0iP/ZLoVavIvYjNtUGmqNCStZY=; b=YX2pRctY/QE9nUge47b9ysa4PKDNRcIB5+3yW+05PeQf9KKzc9OaH81QaCvvw0+opM RR+X3++0g8UHjRqOeGoa7VHL/saI4a+yRepALmV93jPGs6qCatkA8gKNHLaXevJ++Fzo h4Gj8YF2SP1F1e9uvusE4wloMgN3XcN6/Mp3axCPAtm9tIzPX89CjZKeyMs/aE3CGDdf DQy/yaAFdH3jv/LCdhkCrXUKs4+jGkpgX4MddptOzr02mGFTr9b6xWeK4ToPz0UyXzYc k8eVOpRABUBREfbJhZ5sfsFBZbSTa+BH+mHyflE99oZkkc1p1EHMKywvz1n/qIxys08e 09LA== 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 h2si2813589edw.29.2019.10.10.00.41.26; Thu, 10 Oct 2019 00:41:50 -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 S2387449AbfJJHjo (ORCPT + 99 others); Thu, 10 Oct 2019 03:39:44 -0400 Received: from mail1.windriver.com ([147.11.146.13]:44333 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733084AbfJJHgQ (ORCPT ); Thu, 10 Oct 2019 03:36:16 -0400 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.2) with ESMTPS id x9A7ZqPj005366 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 10 Oct 2019 00:35:52 -0700 (PDT) Received: from [128.224.158.243] (128.224.158.243) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.468.0; Thu, 10 Oct 2019 00:35:52 -0700 Subject: Re: [PATCH] ARM: dts: zynq: enablement of coresight topology To: Michal Simek , , , CC: Zumeng Chen , Mark Rutland , Peter Crosthwaite , Rob Herring , Rob Herring , Rob Herring , Steffen Trumtrar , , , References: From: qwang2 Message-ID: Date: Thu, 10 Oct 2019 15:35:48 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/9/19 10:07 PM, 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; > + 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"; The "arm,coresight-etm3x" shouldn't be the compatible property for ITM. Had better remove it. Thanks, Quanyang > + 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>; > + }; > + }; > + }; > + }; > }; > };