From patchwork Wed Oct 9 14:07:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11181257 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 99162912 for ; Wed, 9 Oct 2019 14:07:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 76AFF21848 for ; Wed, 9 Oct 2019 14:07:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WEu/5BFp"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="qcy2EGDE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 76AFF21848 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=2vWebv3co96UfScd3zIdcYd7KbTP+BCx5CVxLeAWD+k=; b=WEu /5BFpW5sqxyLI3M1Qg9h2MuF8lwWtHmt9BccxfwEVWXP5Ctxn/dkldjWzqilrW/KQs85NYceqoazH G0rMfpDuq/VJiX/GAyIc9lcLUfFxqyEASUuoTDq9N+dySBNQsue/OuiESy4MJKZGz5nDtCApi6eg7 /sTVqD7PbjeGH829Iy78S8n/0NvovFRJyPoALwKGlsizdM1cXBpx8HzeSluRLQB5OjROQ3FB95nNv Q7O35cDYTPnTUq40q4rfXuQFI4FlCIGo+qErHxi/QhKikb+3f04uCrhXwzEnGTxLWFghloNOKL/o1 u4+8wHzEU/JqjpVRp3BLpdmLQ5zBf+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iICco-0003e8-21; Wed, 09 Oct 2019 14:07:34 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iICck-0003Zj-Ne for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2019 14:07:32 +0000 Received: by mail-wm1-x343.google.com with SMTP id y21so2794158wmi.0 for ; Wed, 09 Oct 2019 07:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=qYQ0aamJUDpjyNn4W7oIfsE1QuvOq48dHFv4SQEnUqo=; b=qcy2EGDE20dEBGzjflbkOM/+xFeG34FhQ1qYWlJG7PYVZ9C26hOz1qA9bJvGurlYbY YeWlVsQss9LVqwBVg0Rfraq5ANlzrz8/gXo7kTuNZmlsSQo3iUa25zUOzzy5FERs2a0c DNrBssPk3qiMh3jCXjZAvXoQ2kl7dlzTQ7eQBOLEe0h4MTI82Or08FOuok8vqgfhBGpM Jd8eSrOQ/ft2gDunaAQsgt6S5Wy4v2ln4Lo9eLvuUrSclsYZmSYtpfgvH4UPLTNjkbfT lbw1mrEan64Ioaj0kJniVgJCdM0LSACc6O8TbvBPYgkfvWY0U8A/ydTpVwp1eB571v3u O7Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=qYQ0aamJUDpjyNn4W7oIfsE1QuvOq48dHFv4SQEnUqo=; b=Ot7ROLwqjPNBopD+zxWYQOnMGO0FZKTaRstGTBdDnAjVnnXAM4MEsT4QFxZntIVBJD MxuRoqTh/QAVLQTnKnFmbdK7cqZxZUQqw3LksFHlLGqz2SXQsFLVVZe1+yjCHkkfw6BM YGZzyd+loitXiDscFwoh3uq9ZXy7FKFHK5gXpzWjwPsXVfUZL+pzXDgbpNpireQGyojY 7lKbgkGlJOpcQ0R5MiEX196IkraEcSIwUiRB7hVMtV+kVOJONTwFicrcdj9Dm3PefvA7 3AWzktqwTAPkgxJkj+IUrjfojqSD/4yhC67O4DdyXKeg6iQ0BtVAbCbIcdhZgP6MditL N5mg== X-Gm-Message-State: APjAAAUdO6K8UIljKy8hFtqqH7u27FoUU7UZgkR8timZ9Xq967dtas84 25JYE/gQpmH4+CaQsppYKkO5WQ== X-Google-Smtp-Source: APXvYqxwJvflzApriBt9xCl9Wj4OZv07aiO4YpeggA6M/sAkIqyqUI4JFR/XxMM0BUrXYPwBcITjBw== X-Received: by 2002:a05:600c:2214:: with SMTP id z20mr2930679wml.10.1570630048024; Wed, 09 Oct 2019 07:07:28 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id y14sm3341799wrd.84.2019.10.09.07.07.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Oct 2019 07:07:27 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH] ARM: dts: zynq: enablement of coresight topology Date: Wed, 9 Oct 2019 16:07:22 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191009_070730_821074_F44B919D X-CRM114-Status: GOOD ( 13.15 ) X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:343 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Rob Herring , Peter Crosthwaite , devicetree@vger.kernel.org, Zumeng Chen , u-boot@lists.denx.de, Rob Herring , Rob Herring , Steffen Trumtrar , Quanyang Wang , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 Reviewed-by: Mathieu Poirier --- 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"; + 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>; + }; + }; + }; + }; }; };