From patchwork Fri Jun 27 18:04:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 32638 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D119D201EF for ; Fri, 27 Jun 2014 18:04:54 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf21483859pab.9 for ; Fri, 27 Jun 2014 11:04:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=+iTXvJ3LnbBNmwhoclvyHaXXGqLbYfDOgJ9/KuXs/c8=; b=DzQ0SRug+05S36dsMX3CIe3zb5L+38GpuFyelivchPKPa36Hpu6/m7q9ypsiaInMaa ASx9HnTKKHVr/gs3U58torWD32TSNqoxuRPAfWCJ1IZ5qXFjqW3QTHQOjQb50BGk03wA 7bRoPGZ7PIxDnMSDG6TjQaSeyytChA/F09bi1dy+wih4h7h3aflLT7eeUU3N8OuvqyRA O2Omq9z7IOfZBz3mG2qRv921d42yJVuk1VGHcpwsKNH1oQV4g7g4Q3h+fbqXevI4rY6s KjIbjUjxlTdY05+cpzUJSRKynnVYX2nofPqe/djdxuZ7lYUcCBlFqWHlBrCXoxSnRX7z 9D/A== X-Gm-Message-State: ALoCoQnJ0R1i5CGyW6xXl9A6Bkzan1BmP9dVt0+OYlMDfA+hKhS+BPb1dp2Z2vZ2n2HzJCXny6ep X-Received: by 10.66.230.165 with SMTP id sz5mr12945288pac.33.1403892294192; Fri, 27 Jun 2014 11:04:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.85 with SMTP id u79ls662062qgu.61.gmail; Fri, 27 Jun 2014 11:04:54 -0700 (PDT) X-Received: by 10.220.95.2 with SMTP id b2mr10534vcn.61.1403892294095; Fri, 27 Jun 2014 11:04:54 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id wy3si6776966vec.80.2014.06.27.11.04.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Jun 2014 11:04:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so5427352vcb.2 for ; Fri, 27 Jun 2014 11:04:54 -0700 (PDT) X-Received: by 10.52.5.129 with SMTP id s1mr18284661vds.31.1403892294015; Fri, 27 Jun 2014 11:04:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp126772vcb; Fri, 27 Jun 2014 11:04:53 -0700 (PDT) X-Received: by 10.68.136.99 with SMTP id pz3mr33164804pbb.150.1403892292638; Fri, 27 Jun 2014 11:04:52 -0700 (PDT) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx.google.com with ESMTPS id pz4si14759696pac.88.2014.06.27.11.04.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Jun 2014 11:04:52 -0700 (PDT) Received-SPF: pass (google.com: domain of mathieu.poirier@linaro.org designates 209.85.160.46 as permitted sender) client-ip=209.85.160.46; Received: by mail-pb0-f46.google.com with SMTP id md12so4870560pbc.33 for ; Fri, 27 Jun 2014 11:04:52 -0700 (PDT) X-Received: by 10.68.253.73 with SMTP id zy9mr9505754pbc.114.1403892291990; Fri, 27 Jun 2014 11:04:51 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [70.73.24.112]) by mx.google.com with ESMTPSA id ib5sm15771717pbb.55.2014.06.27.11.04.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Jun 2014 11:04:51 -0700 (PDT) From: mathieu.poirier@linaro.org To: linus.walleij@linaro.org, will.deacon@arm.com, linux@arm.linux.org.uk, daniel.thompson@linaro.org, robherring2@gmail.com Cc: mathieu.poirier@linaro.org, arve@android.com, john.stultz@linaro.org, pratikp@codeaurora.org, varshney@ti.com, Al.Grant@arm.com, jonas.svennebring@avagotech.com, james.king@linaro.org, panchaxari.prasannamurthy@linaro.org, arnd@linaro.org, marcin.jabrzyk@gmail.com, r.sengupta@samsung.com, robbelibobban@gmail.com, Tony.Armitstead@arm.com, patches@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/9 v2] coresight: adding basic support for Vexpress TC2 Date: Fri, 27 Jun 2014 12:04:20 -0600 Message-Id: <1403892261-25026-9-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1403892261-25026-1-git-send-email-mathieu.poirier@linaro.org> References: <1403892261-25026-1-git-send-email-mathieu.poirier@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mathieu.poirier@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Mathieu Poirier Support for the 2 PTMs, 3 ETMs, funnel, TPIU and replicator connected to the ETB are included. Proper handling of the ITM and the replicator linked to it along with the CTIs and SWO are not included. Signed-off-by: Mathieu Poirier --- arch/arm/boot/dts/vexpress-v2p-ca15_a7.dts | 174 +++++++++++++++++++++++++++++ 1 file changed, 174 insertions(+) diff --git a/arch/arm/boot/dts/vexpress-v2p-ca15_a7.dts b/arch/arm/boot/dts/vexpress-v2p-ca15_a7.dts index 15f98cb..390f2bb 100644 --- a/arch/arm/boot/dts/vexpress-v2p-ca15_a7.dts +++ b/arch/arm/boot/dts/vexpress-v2p-ca15_a7.dts @@ -334,6 +334,180 @@ }; }; + etb: etb@20010000 { + compatible = "arm,coresight-etb", "arm,primecell"; + reg = <0 0x20010000 0 0x1000>; + + coresight-default-sink; + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + port { + etb_in_port: endpoint@0 { + slave-mode; + remote-endpoint = <&funnel_out_port0>; + }; + }; + }; + + tpiu: tpiu@20030000 { + compatible = "arm,coresight-tpiu", "arm,primecell"; + reg = <0 0x20030000 0 0x1000>; + + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + port { + tpiu_in_port: endpoint@0 { + slave-mode; + remote-endpoint = <&funnel_out_port1>; + }; + }; + }; + + funnel { + compatible = "arm,coresight-funnel", "arm,primecell"; + reg = <0 0x20040000 0 0x1000>; + + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + ports { + #address-cells = <1>; + #size-cells = <0>; + + /* The funnel is connected to a replicator - since + * replicators are hardwired we simply treat the + * funnel as a multiple-in and multiple out component. + * The following two ports really belong to the + * repicator but configured as par of the funnel. + */ + + /* replicator port */ + port@0 { + reg = <0>; + funnel_out_port0: endpoint { + remote-endpoint = <&etb_in_port>; + }; + }; + + /* replicator port */ + port@1 { + reg = <1>; + funnel_out_port1: endpoint { + remote-endpoint = <&tpiu_in_port>; + }; + }; + /* funnel ports */ + port@2 { + reg = <0>; + funnel_in_port0: endpoint { + slave-mode; + remote-endpoint = <&ptm0_out_port>; + }; + }; + + port@3 { + reg = <1>; + funnel_in_port1: endpoint { + slave-mode; + remote-endpoint = <&ptm1_out_port>; + }; + }; + + port@4 { + reg = <2>; + funnel_in_port2: endpoint { + slave-mode; + remote-endpoint = <&etm0_out_port>; + }; + }; + + port@5 { + reg = <4>; + funnel_in_port4: endpoint { + slave-mode; + remote-endpoint = <&etm1_out_port>; + }; + }; + + port@6 { + reg = <5>; + funnel_in_port5: endpoint { + slave-mode; + remote-endpoint = <&etm2_out_port>; + }; + }; + }; + }; + + ptm0: ptm@2201c000 { + compatible = "arm,coresight-etm", "arm,primecell"; + reg = <0 0x2201c000 0 0x1000>; + + cpu = <&cpu0>; + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + port { + ptm0_out_port: endpoint { + remote-endpoint = <&funnel_in_port0>; + }; + }; + }; + + ptm1: ptm@2201d000 { + compatible = "arm,coresight-etm", "arm,primecell"; + reg = <0 0x2201d000 0 0x1000>; + + cpu = <&cpu1>; + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + port { + ptm1_out_port: endpoint { + remote-endpoint = <&funnel_in_port1>; + }; + }; + }; + + etm0: etm@2203c000 { + compatible = "arm,coresight-etm", "arm,primecell"; + reg = <0 0x2203c000 0 0x1000>; + + cpu = <&cpu2>; + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + port { + etm0_out_port: endpoint { + remote-endpoint = <&funnel_in_port2>; + }; + }; + }; + + etm1: etm@2203d000 { + compatible = "arm,coresight-etm", "arm,primecell"; + reg = <0 0x2203d000 0 0x1000>; + + cpu = <&cpu3>; + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + port { + etm1_out_port: endpoint { + remote-endpoint = <&funnel_in_port4>; + }; + }; + }; + + etm2: etm@2203e000 { + compatible = "arm,coresight-etm", "arm,primecell"; + reg = <0 0x2203e000 0 0x1000>; + + cpu = <&cpu4>; + clocks = <&oscclk6a>; + clock-names = "apb_pclk"; + port { + etm2_out_port: endpoint { + remote-endpoint = <&funnel_in_port5>; + }; + }; + }; + smb { compatible = "simple-bus";