From patchwork Fri May 30 13:43:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 4270941 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4EF95BEEA7 for ; Fri, 30 May 2014 13:52:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 710F72016C for ; Fri, 30 May 2014 13:52:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 220DC20166 for ; Fri, 30 May 2014 13:52:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WqNBd-0004pF-En; Fri, 30 May 2014 13:49:33 +0000 Received: from mail-pb0-f51.google.com ([209.85.160.51]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WqNBX-0004YJ-Bt for linux-arm-kernel@lists.infradead.org; Fri, 30 May 2014 13:49:27 +0000 Received: by mail-pb0-f51.google.com with SMTP id ma3so1755274pbc.10 for ; Fri, 30 May 2014 06:49:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kqQcXKq3wh+l6I7EscmeCmvFcVz+aTkAz0xI6XrxDmI=; b=IWaz3K0GG+5Q88qufKRD9GkaEZdEjdb015I82zTBa9bAcC3XGhJPa8grbiaLkGEVAJ v7f+eZ+khJDv71hGfGqO9k5kPTxSE91SYDN3h9edHAaqZkDLsA2k0VqLem0cTozow0dJ SHs3RR7Yjdv/w9ARLy24EJ2CtENBC8CNpnT5GrmeXP9QPZW5VRzUKDYem9CBSO0pjzE6 VqRCa4oZ7vceVz9I9StKrl4uKR0wJVz8LWPSquA33v2UN1DvxKatjBsv9KwT/rjG3Ogz 6LDL4w+9sfQuldvZONXG1u1k7oxN0LzIqFk0hqOqngE9nhnUFL3b4LAWrNEXHmnUKovF s9SA== X-Gm-Message-State: ALoCoQmhJJ72h7VZZ+ba13uEd3gfJsuZ5zQ4KInhavc5uu1dTl2f8Rw6M3lECi7fIz5mt6pv6mPg X-Received: by 10.68.196.202 with SMTP id io10mr18142362pbc.149.1401457443302; Fri, 30 May 2014 06:44:03 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [70.73.24.112]) by mx.google.com with ESMTPSA id fe2sm6533558pbc.68.2014.05.30.06.44.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 May 2014 06:44:02 -0700 (PDT) From: mathieu.poirier@linaro.org To: linus.walleij@linaro.org, will.deacon@arm.com Subject: [RFC PATCH 09/11] coresight: adding basic support for Vexpress TC2 Date: Fri, 30 May 2014 07:43:09 -0600 Message-Id: <1401457391-12242-10-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1401457391-12242-1-git-send-email-mathieu.poirier@linaro.org> References: <1401457391-12242-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140530_064927_445607_8D1ADC3A X-CRM114-Status: GOOD ( 10.02 ) X-Spam-Score: -0.7 (/) Cc: daniel.thompson@linaro.org, robbelibobban@gmail.com, Al.Grant@arm.com, mathieu.poirier@linaro.org, patches@linaro.org, marcin.jabrzyk@gmail.com, linux-kernel@vger.kernel.org, arnd@linaro.org, panchaxari.prasannamurthy@linaro.org, r.sengupta@samsung.com, arve@android.com, john.stultz@linaro.org, linux-arm-kernel@lists.infradead.org, james.king@linaro.org, linux@arm.linux.org.uk, pratikp@codeaurora.org, varshney@ti.com, jonas.svennebring@avagotech.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 | 122 +++++++++++++++++++++++++++++ 1 file changed, 122 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..18de06e 100644 --- a/arch/arm/boot/dts/vexpress-v2p-ca15_a7.dts +++ b/arch/arm/boot/dts/vexpress-v2p-ca15_a7.dts @@ -334,6 +334,128 @@ }; }; + coresight { + compatible = "arm,coresight"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x20010000 0 0x20010000 0x1000 + 0x20030000 0 0x20030000 0x1000 + 0x20040000 0 0x20040000 0x1000 + 0x2201c000 0 0x2201c000 0x1000 + 0x2201d000 0 0x2201d000 0x1000 + 0x2203c000 0 0x2203c000 0x1000 + 0x2203d000 0 0x2203d000 0x1000 + 0x2203e000 0 0x2203e000 0x1000>; + + etb: etb@20010000 { + compatible = "arm,coresight-etb"; + reg = <0x20010000 0x1000>; + + coresight-id = <0>; + coresight-name = "coresight-etb"; + coresight-nr-inports = <1>; + coresight-default-sink; + }; + + etb_replicator: replicator { + compatible = "arm,coresight-replicator"; + + coresight-id = <1>; + coresight-name = "coresight-etb-replicator"; + coresight-nr-inports = <1>; + coresight-outports = <0 1>; + coresight-child-list = <&etb &tpiu>; + coresight-child-ports = <0 0>; + }; + + tpiu: tpiu@20030000 { + compatible = "arm,coresight-tpiu"; + reg = <0x20030000 0x1000>; + + coresight-id = <2>; + coresight-name = "coresight-tpiu"; + coresight-nr-inports = <1>; + }; + + funnel: funnel@20040000 { + compatible = "arm,coresight-funnel"; + reg = <0x20040000 0x1000>; + + coresight-id = <3>; + coresight-name = "coresight-funnel"; + coresight-nr-inports = <1>; + coresight-outports = <0>; + coresight-child-list = <&etb_replicator>; + coresight-child-ports = <0>; + }; + + ptm0: ptm@2201c000 { + compatible = "arm,coresight-etm"; + reg = <0x2201c000 0x1000>; + + coresight-id = <4>; + coresight-name = "coresight-ptm0"; + cpu = <&cpu0>; + coresight-nr-inports = <0>; + coresight-outports = <0>; + coresight-child-list = <&funnel>; + coresight-child-ports = <0>; + }; + + ptm1: ptm@2201d000 { + compatible = "arm,coresight-etm"; + reg = <0x2201d000 0x1000>; + + coresight-id = <5>; + coresight-name = "coresight-ptm1"; + cpu = <&cpu1>; + coresight-nr-inports = <0>; + coresight-outports = <0>; + coresight-child-list = <&funnel>; + coresight-child-ports = <1>; + }; + + etm0: etm@2203c000 { + compatible = "arm,coresight-etm"; + reg = <0x2203c000 0x1000>; + + coresight-id = <6>; + coresight-name = "coresight-etm0"; + cpu = <&cpu2>; + coresight-nr-inports = <0>; + coresight-outports = <0>; + coresight-child-list = <&funnel>; + coresight-child-ports = <2>; + }; + + etm1: etm@2203d000 { + compatible = "arm,coresight-etm"; + reg = <0x2203d000 0x1000>; + + coresight-id = <7>; + coresight-name = "coresight-etm1"; + cpu = <&cpu3>; + coresight-nr-inports = <0>; + coresight-outports = <0>; + coresight-child-list = <&funnel>; + coresight-child-ports = <4>; + }; + + etm2: etm@2203e000 { + compatible = "arm,coresight-etm"; + reg = <0x2203e000 0x1000>; + + coresight-id = <8>; + coresight-name = "coresight-etm2"; + cpu = <&cpu4>; + coresight-nr-inports = <0>; + coresight-outports = <0>; + coresight-child-list = <&funnel>; + coresight-child-ports = <5>; + }; + + }; + smb { compatible = "simple-bus";