From patchwork Wed Apr 22 22:46:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 47444 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0E9E92121F for ; Wed, 22 Apr 2015 22:46:57 +0000 (UTC) Received: by wgin8 with SMTP id n8sf179292wgi.0 for ; Wed, 22 Apr 2015 15:46:56 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=8tl127M0wutI93k9GBpc7ZOCusAJDeXmHQuZCGT7baQ=; b=EbIAD3zsP0Y6NNyZiHCFpJCuKIXY/SRv+w6iCaAp2oYraYQk7rxXWM1se8sOONixIF LX5VDIi8ejAWaN4Ixb5xBuVbpoNuHivSpBsR4rSrMmbuKTZm6a3U6YMhAFEilnU0k3u+ w2w9KuWniR85fN3TbjpD96sirFf4+N11k8Ia15/NRQ9ditJIhDhpr/NEP8N5A+Bxdq57 68IlnvBaYZ30JcLOiVSD7WxkGmpLYFV2LR94VIWk/lvotYAJz6+hPz42SUFKTNW3NhQN 8KXxJYTU3n4buPJoBIX2GCN0AZXo30aW+uBRKLSER9bDmo6KRr9NanyJmZk+eAXBxqDc UlCg== X-Gm-Message-State: ALoCoQkp5tAJC5Y/f6KdRNYkaryBFw8bYVY4R08GqrU70GKXXpE/0CAmb+3Zt0tsZfYfozUzZtlE X-Received: by 10.152.184.73 with SMTP id es9mr12562594lac.4.1429742816390; Wed, 22 Apr 2015 15:46:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.102 with SMTP id s6ls251165lag.73.gmail; Wed, 22 Apr 2015 15:46:56 -0700 (PDT) X-Received: by 10.152.42.141 with SMTP id o13mr26889043lal.33.1429742816250; Wed, 22 Apr 2015 15:46:56 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id l8si4710829lah.54.2015.04.22.15.46.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Apr 2015 15:46:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by layy10 with SMTP id y10so617336lay.0 for ; Wed, 22 Apr 2015 15:46:56 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr26295265lac.41.1429742816121; Wed, 22 Apr 2015 15:46:56 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp225319lbt; Wed, 22 Apr 2015 15:46:55 -0700 (PDT) X-Received: by 10.68.69.107 with SMTP id d11mr51958128pbu.16.1429742814360; Wed, 22 Apr 2015 15:46:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lq10si9704764pab.61.2015.04.22.15.46.53; Wed, 22 Apr 2015 15:46:54 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756497AbbDVWqw (ORCPT + 6 others); Wed, 22 Apr 2015 18:46:52 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:33166 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752770AbbDVWqw (ORCPT ); Wed, 22 Apr 2015 18:46:52 -0400 Received: by pdbnk13 with SMTP id nk13so949236pdb.0 for ; Wed, 22 Apr 2015 15:46:51 -0700 (PDT) X-Received: by 10.70.128.36 with SMTP id nl4mr51454601pdb.43.1429742811593; Wed, 22 Apr 2015 15:46:51 -0700 (PDT) Received: from t430.cg.shawcable.net ([184.64.168.246]) by mx.google.com with ESMTPSA id vl9sm6021379pbc.73.2015.04.22.15.46.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Apr 2015 15:46:50 -0700 (PDT) From: Mathieu Poirier To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, catalin.marinas@arm.com, will.deacon@arm.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mathieu.poirier@linaro.org Subject: [PATCH] coresight: Add support for Juno platform Date: Wed, 22 Apr 2015 16:46:42 -0600 Message-Id: <1429742802-13089-1-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.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.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds support for ARM's juno platform. More specifically it has definitions for the A53/57 tracers, the A53/57 cluster funnels, the main funnel and the ETF in circular buffer mode. Support for the replicator, TPIU, ETR, CTI, CTM, ATM along with all the coresight IP blocks found in the SPC sub-system have not been addressed. Signed-off-by: Mathieu Poirier --- arch/arm64/boot/dts/arm/juno.dts | 222 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 222 insertions(+) diff --git a/arch/arm64/boot/dts/arm/juno.dts b/arch/arm64/boot/dts/arm/juno.dts index 133ee59de2d7..0d0a9cbbb193 100644 --- a/arch/arm64/boot/dts/arm/juno.dts +++ b/arch/arm64/boot/dts/arm/juno.dts @@ -200,6 +200,228 @@ clock-names = "apb_pclk"; }; + etf@20010000 { + compatible = "arm,coresight-tmc", "arm,primecell"; + reg = <0 0x20010000 0 0x1000>; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + port { + etf_in_port: endpoint@0 { + slave-mode; + remote-endpoint = <&main_funnel_out_port>; + }; + }; + }; + + main_funnel@20040000 { + compatible = "arm,coresight-funnel", "arm,primecell"; + reg = <0 0x20040000 0 0x1000>; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + main_funnel_out_port: endpoint { + remote-endpoint = + <&etf_in_port>; + }; + }; + + port@1 { + reg = <0>; + main_funnel_in_port0: endpoint { + slave-mode; + remote-endpoint = + <&A57_funnel_out_port>; + }; + }; + + port@2 { + reg = <1>; + main_funnel_in_port1: endpoint { + slave-mode; + remote-endpoint = <&A53_etm0_out_port>; + }; + }; + + }; + }; + + A57_funnel@220c0000 { + compatible = "arm,coresight-funnel", "arm,primecell"; + reg = <0 0x220c0000 0 0x1000>; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + A57_funnel_out_port: endpoint { + remote-endpoint = + <&main_funnel_in_port0>; + }; + }; + + port@1 { + reg = <0>; + A57_funnel_in_port0: endpoint { + slave-mode; + remote-endpoint = <&A57_etm0_out_port>; + }; + }; + + port@2 { + reg = <1>; + A57_funnel_in_port1: endpoint { + slave-mode; + remote-endpoint = <&A57_etm1_out_port>; + }; + }; + }; + }; + + A53_funnel@220c0000 { + compatible = "arm,coresight-funnel", "arm,primecell"; + reg = <0 0x230c0000 0 0x1000>; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + A53_funnel_out_port: endpoint { + remote-endpoint = + <&main_funnel_in_port1>; + }; + }; + + port@1 { + reg = <0>; + A53_funnel_in_port0: endpoint { + slave-mode; + remote-endpoint = <&A53_etm0_out_port>; + }; + }; + + port@2 { + reg = <1>; + A53_funnel_in_port1: endpoint { + slave-mode; + remote-endpoint = <&A53_etm1_out_port>; + }; + }; + port@3 { + reg = <2>; + A53_funnel_in_port2: endpoint { + slave-mode; + remote-endpoint = <&A53_etm2_out_port>; + }; + }; + port@4 { + reg = <3>; + A53_funnel_in_port3: endpoint { + slave-mode; + remote-endpoint = <&A53_etm3_out_port>; + }; + }; + }; + }; + + etm@22040000 { + compatible = "arm,coresight-etm4x", "arm,primecell"; + reg = <0 0x22040000 0 0x1000>; + + cpu = <&A57_0>; + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + port { + A57_etm0_out_port: endpoint { + remote-endpoint = <&A57_funnel_in_port0>; + }; + }; + }; + + etm@22140000 { + compatible = "arm,coresight-etm4x", "arm,primecell"; + reg = <0 0x22140000 0 0x1000>; + + cpu = <&A57_1>; + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + port { + A57_etm1_out_port: endpoint { + remote-endpoint = <&A57_funnel_in_port1>; + }; + }; + }; + + etm@23040000 { + compatible = "arm,coresight-etm4x", "arm,primecell"; + reg = <0 0x23040000 0 0x1000>; + + cpu = <&A53_0>; + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + port { + A53_etm0_out_port: endpoint { + remote-endpoint = <&A53_funnel_in_port0>; + }; + }; + }; + + etm@23140000 { + compatible = "arm,coresight-etm4x", "arm,primecell"; + reg = <0 0x23140000 0 0x1000>; + + cpu = <&A53_1>; + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + port { + A53_etm1_out_port: endpoint { + remote-endpoint = <&A53_funnel_in_port1>; + }; + }; + }; + + etm@23240000 { + compatible = "arm,coresight-etm4x", "arm,primecell"; + reg = <0 0x23240000 0 0x1000>; + + cpu = <&A53_2>; + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + port { + A53_etm2_out_port: endpoint { + remote-endpoint = <&A53_funnel_in_port2>; + }; + }; + }; + + etm@23340000 { + compatible = "arm,coresight-etm4x", "arm,primecell"; + reg = <0 0x23340000 0 0x1000>; + + cpu = <&A53_3>; + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + port { + A53_etm3_out_port: endpoint { + remote-endpoint = <&A53_funnel_in_port3>; + }; + }; + }; + smb { compatible = "simple-bus"; #address-cells = <2>;