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: 1173785 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="qcy2EGDE"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46pGJC6zddz9sDB for ; Thu, 10 Oct 2019 01:07:39 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 80DFDC21FBD; Wed, 9 Oct 2019 14:07:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 06232C21E2F; Wed, 9 Oct 2019 14:07:30 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 36509C21E2F; Wed, 9 Oct 2019 14:07:29 +0000 (UTC) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by lists.denx.de (Postfix) with ESMTPS id 8FA0BC21E1B for ; Wed, 9 Oct 2019 14:07:28 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id p7so2782286wmp.4 for ; Wed, 09 Oct 2019 07:07:28 -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=m/g3kdJd1BUAfq/uwMoTV/51r8Neka74frptao5lE4WuA/9Cb/R0T1asU2p4K+hy/9 6O4zlVHLE0ToR8QBMIf1z7Hy0+OxO44b7/mgponepALbKaorK7t1LlbMuOfyP+jr1M/u 22HKIQz7w/EOznVBxGkLKyrzh01mlTAT9aQDv5m8C/P5i4x6dPwyJzMsvSZAT/tKqe7r VjMpWRWj6fxYaG+/PxjJqpQVGfu7nUD0dvbyaCeNCEm/PB6czZCKvYFh6yD09LqfTcpn 6sLq+VCoc7VjgAAu1JT4XVYThqfYIfsBatAfxAJYXfp/KSjIBk5oeT2cSvWmDKEGSWaF kz2g== X-Gm-Message-State: APjAAAUr3YDUjOfqPmVPkMY4bFTiKGel7+4hCXGahr6+N6+hQPmxZO5v mRV0sjnD7gy25KmB1r5qDbzpwQ== 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 Date: Wed, 9 Oct 2019 16:07:22 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 Cc: 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 Subject: [U-Boot] [PATCH] ARM: dts: zynq: enablement of coresight topology X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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>; + }; + }; + }; + }; }; };