From patchwork Wed Mar 25 12:26:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 46322 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 736FD2159D for ; Wed, 25 Mar 2015 12:27:59 +0000 (UTC) Received: by lbvn10 with SMTP id n10sf4423041lbv.1 for ; Wed, 25 Mar 2015 05:27:58 -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=HWFworR6GV1Q0lIVkhFfmtDcqxo7abjWnYIxMgcerJw=; b=aZcDVChWORf++PZKET1//VTVDCmiBSFui2GMC19hw8S5otOLv0voTI2InMtgVOW9rT vV6BM184oFQ+hZhiT/lOuz0xQkFAj2z1//ZAbP2ivNZQQA0mr2nhEtaVb/DRnGNEPGm/ y8UX3x3v+0ixLTiQMpISchlsa7DkwroYSqZ3OoPlfHoQ50+rP3qm2bceCP60MbP0A9W4 ERspVBssFci86y8AauO3NvqmDj2NApUR3kBQfwOUqXAVDXRf0woyalHqsRwcdZ54FsEd Fzlh3+BNVY6Lp+/LT/GMJ+NhFfDV43nZIO0WUxKOGSx0kGvCTmZDYV+CExhRGYdopeuy iBHQ== X-Gm-Message-State: ALoCoQlKzVoVkLV0WPsy9v2in5dh0cawtUcmfJKxX34pSgWvn5V+MSmxDLBDcMxOY725UT9ZHx7h X-Received: by 10.194.53.225 with SMTP id e1mr2034481wjp.4.1427286478455; Wed, 25 Mar 2015 05:27:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.228 with SMTP id kt4ls95409lac.81.gmail; Wed, 25 Mar 2015 05:27:58 -0700 (PDT) X-Received: by 10.112.144.41 with SMTP id sj9mr8288272lbb.3.1427286478119; Wed, 25 Mar 2015 05:27:58 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id zq10si1893330lbb.46.2015.03.25.05.27.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Mar 2015 05:27:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lagg8 with SMTP id g8so18306916lag.1 for ; Wed, 25 Mar 2015 05:27:58 -0700 (PDT) X-Received: by 10.112.162.232 with SMTP id yd8mr8146213lbb.41.1427286477945; Wed, 25 Mar 2015 05:27:57 -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.57.201 with SMTP id k9csp2056514lbq; Wed, 25 Mar 2015 05:27:57 -0700 (PDT) X-Received: by 10.68.174.132 with SMTP id bs4mr16512185pbc.135.1427286476179; Wed, 25 Mar 2015 05:27:56 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si3488954pat.84.2015.03.25.05.27.51; Wed, 25 Mar 2015 05:27:56 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S1752786AbbCYM1r (ORCPT + 27 others); Wed, 25 Mar 2015 08:27:47 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:36412 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752071AbbCYM1p (ORCPT ); Wed, 25 Mar 2015 08:27:45 -0400 Received: by pdbcz9 with SMTP id cz9so27033487pdb.3 for ; Wed, 25 Mar 2015 05:27:44 -0700 (PDT) X-Received: by 10.66.90.134 with SMTP id bw6mr16236308pab.131.1427286464797; Wed, 25 Mar 2015 05:27:44 -0700 (PDT) Received: from zcy-ubuntu.spreadtrum.com ([114.30.40.58]) by mx.google.com with ESMTPSA id wt1sm2328131pbc.76.2015.03.25.05.27.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Mar 2015 05:27:43 -0700 (PDT) From: Chunyan Zhang To: arm@kernel.org, arnd@arndb.de Cc: mathieu.poirier@linaro.org, will.deacon@arm.com, mark.rutland@arm.com, robh+dt@kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, catalin.marinas@arm.com, kaixu.xia@linaro.org, zhizhou.zhang@spreadtrum.com, orsonzhai@gmail.com, zhang.lyra@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] coresight: adding basic support for Spreadtrum SC9836 Date: Wed, 25 Mar 2015 20:26:53 +0800 Message-Id: <1427286413-1720-1-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhang.chunyan@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.52 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: , Support only for ETF, 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 | 55 ++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc9836.dtsi b/arch/arm64/boot/dts/sprd/sc9836.dtsi index f92f1b4..ee34e1a 100644 --- a/arch/arm64/boot/dts/sprd/sc9836.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9836.dtsi @@ -45,6 +45,61 @@ }; }; + etf@10003000 { + compatible = "arm,coresight-tmc", "arm,primecell"; + reg = <0 0x10003000 0 0x1000>; + clocks = <&clk26mhz>; + clock-names = "apb_pclk"; + port { + etf_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 = <&etf_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>,