From patchwork Thu Feb 26 16:14:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 5894831 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2B66EBF440 for ; Thu, 26 Feb 2015 16:29:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5475020395 for ; Thu, 26 Feb 2015 16:29:01 +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 74BE120398 for ; Thu, 26 Feb 2015 16:29:00 +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 1YR1FF-0004lF-BX; Thu, 26 Feb 2015 16:25:01 +0000 Received: from mail-pa0-f45.google.com ([209.85.220.45]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YR15O-0003uz-RZ for linux-arm-kernel@lists.infradead.org; Thu, 26 Feb 2015 16:14:51 +0000 Received: by padbj1 with SMTP id bj1so15031858pad.5 for ; Thu, 26 Feb 2015 08:14:28 -0800 (PST) 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; bh=BWDr/plGEBQBPy8oUuEH08k9EN13DYGEliQA8C19xIk=; b=ar6ctyavgtYy+gRzfB3KM/9lPxYHMJtPbe/72C7dUbni9LUbYa7Ns/Q8o0F1Lg2Ux3 CcWVHFNDstCouL73JLzT01NPTrd6vgHlxMkFTtJRXzzM2FJ6UZm6vcYYqJRlf8FsKlLc r2HdK2mb0IposxjPy6NPt3xL95MwuAtCPwNNcsx7bDygusL/59IZVwjMN10E0P4IfN6D fSUEjgbs0PKRf5fWxafAcaQ3uGyV5el0kjXf2lUX/fL88TDJ/YQG11/ujZVHi3Q3tEMF vLNLKDwU1fARpQ5HF9IjROnTZW4UsZMfWI5x8bPyxQEVj+UycSwfLUj6o/YdElPc+f7T KHCA== X-Gm-Message-State: ALoCoQnMWQTjLRPPSf3Tif0YEDdutm+im52tGcEjFiyo6NVLTkkMJygg8NnSNKsoL32vJZ5kZvtg X-Received: by 10.66.158.66 with SMTP id ws2mr15823366pab.37.1424967267880; Thu, 26 Feb 2015 08:14:27 -0800 (PST) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [70.73.24.112]) by mx.google.com with ESMTPSA id d11sm1490555pbu.10.2015.02.26.08.14.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Feb 2015 08:14:27 -0800 (PST) From: Mathieu Poirier To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Subject: [PATCH RESEND] coresight-stm: Bindings for System Trace Macrocell Date: Thu, 26 Feb 2015 09:14:18 -0700 Message-Id: <1424967258-28573-1-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150226_081450_928863_DB0C904E X-CRM114-Status: GOOD ( 10.26 ) X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, kaixu.xia@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, zhang.chunyan@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 The System Trace Macrocell (STM) is an IP block falling under the CoreSight umbrella. It's main purpose it so expose stimulus channels to any system component for the purpose of information logging. Bindings for this IP block adds a couple of items to the current mandatory definition for CoreSight components. The driver has been posted here[1]. [1]. https://lkml.org/lkml/2015/2/25/743 Signed-off-by: Mathieu Poirier Acked-by: Rob Herring --- .../devicetree/bindings/arm/coresight.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/coresight.txt b/Documentation/devicetree/bindings/arm/coresight.txt index a3089359aaa6..854127578718 100644 --- a/Documentation/devicetree/bindings/arm/coresight.txt +++ b/Documentation/devicetree/bindings/arm/coresight.txt @@ -17,6 +17,7 @@ its hardware characteristcs. - "arm,coresight-tmc", "arm,primecell"; - "arm,coresight-funnel", "arm,primecell"; - "arm,coresight-etm3x", "arm,primecell"; + - "arm,coresight-stm", "arm,primecell"; * reg: physical base address and length of the register set(s) of the component. @@ -31,6 +32,14 @@ its hardware characteristcs. layout using the generic DT graph presentation found in "bindings/graph.txt". +* Additional required properly for System Trace Macrocells (STM): + * reg: along with the physical base address and length of the register + set as described above, another entry is required to describe the + mapping of the extended stimulus port area. + + * reg-names: the only acceptable values are "stm-base" and + "stm-channel-base", each corresponding to the areas defined in "reg". + * Required properties for devices that don't show up on the AMBA bus, such as non-configurable replicators: @@ -198,3 +207,19 @@ Example: }; }; }; + +4. STM + stm@20100000 { + compatible = "arm,coresight-stm", "arm,primecell"; + reg = <0 0x20100000 0 0x1000>, + <0 0x28000000 0 0x180000>; + reg-names = "stm-base", "stm-channel-base"; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + port { + stm_out_port: endpoint { + remote-endpoint = <&main_funnel_in_port2>; + }; + }; + };