From patchwork Tue Mar 24 05:48:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 6077331 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 17562BF90F for ; Tue, 24 Mar 2015 05:53:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 45ED02024F for ; Tue, 24 Mar 2015 05:53:43 +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 460372024D for ; Tue, 24 Mar 2015 05:53:42 +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 1YaHiy-00068d-8k; Tue, 24 Mar 2015 05:50:00 +0000 Received: from mail-pd0-f175.google.com ([209.85.192.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YaHiu-00064K-5l for linux-arm-kernel@lists.infradead.org; Tue, 24 Mar 2015 05:49:56 +0000 Received: by pdbni2 with SMTP id ni2so210751054pdb.1 for ; Mon, 23 Mar 2015 22:49:32 -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; bh=ofk9WZRr3Bx1J1BKYh1HLSX+DOUyuM2qjuaUoJ1L5qE=; b=O3WT382ddqrD3a8NIMVzSZSU0z8+QsmgG3jVKE/fJmSmzQSQxOcTz3JhK7kiTQC0sj bswF/nxHfW/JiyBxMLge/xDCpzNBuH/1TiYNujoTP+82jpaRfvDIfZxiy1D5YIF5/+/E 87hEBzHFJYHHIXnp9XrZJsUbz6EMgTLiHaBAVQnSQYMwXyO9V9uLi3iUO5Z04v1TVCkX 1WdKiEHiobGoq3se3lSydQtvRH1Q37rVvISV6Uzgwrpy8cznln445eUqvyGOPmsGEGLq KzJ85csxdynzxlX27n9A3aIJtwep7rNSXRZpkAcJyl1mPN9pkywwDJ3ZazuBo06XVQaO w7/w== X-Gm-Message-State: ALoCoQmkUH6cPtwhXSDtLdOuCs6Dol9e8qiRLp6WrB+4IrY7il1u9knYB2UEWJ9e5FWRGjtesbgE X-Received: by 10.68.194.137 with SMTP id hw9mr4666539pbc.162.1427176172426; Mon, 23 Mar 2015 22:49:32 -0700 (PDT) Received: from zcy-ubuntu.spreadtrum.com ([114.30.40.58]) by mx.google.com with ESMTPSA id ow2sm2874249pdb.14.2015.03.23.22.49.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Mar 2015 22:49:31 -0700 (PDT) From: Chunyan Zhang To: arm@kernel.org, arnd@arndb.de Subject: [PATCH] coresight: adding basic support for Spreadtrum SC9836 Date: Tue, 24 Mar 2015 13:48:33 +0800 Message-Id: <1427176113-23411-1-git-send-email-zhang.chunyan@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-20150323_224956_238709_5599B49D X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, mathieu.poirier@linaro.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, catalin.marinas@arm.com, zhizhou.zhang@spreadtrum.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, zhang.lyra@gmail.com, galak@codeaurora.org, orsonzhai@gmail.com, linux-arm-kernel@lists.infradead.org, kaixu.xia@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 Support only for ETB, FUNNEL, STM are included currently. Support for ETM, TPIU and the replicator linked to it are not included in this version patch. Signed-off-by: Chunyan Zhang --- arch/arm64/boot/dts/sprd/sc9836.dtsi | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc9836.dtsi b/arch/arm64/boot/dts/sprd/sc9836.dtsi index f92f1b4..2ca80f3 100644 --- a/arch/arm64/boot/dts/sprd/sc9836.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9836.dtsi @@ -45,6 +45,63 @@ }; }; + etb@10003000 { + compatible = "arm,coresight-etb10", "arm,primecell"; + reg = <0 0x10003000 0 0x1000>; + arm,primecell-periphid = <0x0003b907>; + coresight-default-sink; + clocks = <&clk26mhz>; + clock-names = "apb_pclk"; + port { + etb_in: endpoint { + slave-mode; + remote-endpoint = <&funnel_out_port0>; + }; + }; + }; + + funnel@10001000 { + compatible = "arm,coresight-funnel", "arm,primecell"; + reg = <0 0x10001000 0 0x1000>; + clocks = <&clk26mhz>; + clock-names = "apb_pclk"; + ports { + #address-cells = <1>; + #size-cells = <0>; + + /* funnel output port */ + port@0 { + reg = <0>; + funnel_out_port0: endpoint { + remote-endpoint = <&etb_in>; + }; + }; + + /* funnel input port 0~3 is reserved for ETMs */ + port@1 { + reg = <4>; + funnel_in_port4: endpoint { + slave-mode; + remote-endpoint = <&stm_out>; + }; + }; + }; + }; + + stm@10006000 { + compatible = "arm,coresight-stm", "arm,primecell"; + reg = <0 0x10006000 0 0x1000>, + <0 0x01000000 0 0x180000>; + reg-names = "stm-base", "stm-stimulus-base"; + clocks = <&clk26mhz>; + clock-names = "apb_pclk"; + port { + stm_out: endpoint { + remote-endpoint = <&funnel_in_port4>; + }; + }; + }; + gic: interrupt-controller@12001000 { compatible = "arm,gic-400"; reg = <0 0x12001000 0 0x1000>,