From patchwork Wed Mar 25 12:52:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 6090721 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4C58D9F399 for ; Wed, 25 Mar 2015 12:56:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 607EB200FE for ; Wed, 25 Mar 2015 12:56:34 +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 7742C200E9 for ; Wed, 25 Mar 2015 12:56:33 +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 1YakoJ-0006WH-0U; Wed, 25 Mar 2015 12:53:27 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YakoH-0006Ss-Bo for linux-arm-kernel@lists.infradead.org; Wed, 25 Mar 2015 12:53:25 +0000 Received: by pdbni2 with SMTP id ni2so27732386pdb.1 for ; Wed, 25 Mar 2015 05:53:03 -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=kLKGLrfv3H+DgmfUZ/QUpvamYld0V1w7OSHDSgqir9w=; b=LHwGPg8/atc8aHnT95mKLSzo+BtfgndeBrMjY69uXGQ+6eSNZWs8ntPDNO1imOn6XB lEZUTD9P4pMtapoI1TXXH6UZZ3+j1Huje4scyANbLcv/KwxK85Slos531KKfI3s9Y4Vs m1tDR3GUt1LjA/lN7cY12I2f/iKtWX9tw5qU5LV08IVmxCcX6n1vXRu5F6/6Q8r0eZIQ v+mtW5GDW/E9m48+pLc+WGWhQznKrdtwIXwovSHACnt67YBImz8al2qfVzX00QD2uIg/ 3xha3e3IfMfO2EfM/2V4BImorfyYhrWAn6AIkLHEeinYb/nAzi1TVTxoCVvEiy/wnxU1 dunA== X-Gm-Message-State: ALoCoQnm8Cajav22DnWykUAHyhRWHqWfpfr19EOakQFBWVfCGwM6EIAEpZTvfvxLRI8n864ud6y6 X-Received: by 10.66.140.69 with SMTP id re5mr17049301pab.105.1427287983136; Wed, 25 Mar 2015 05:53:03 -0700 (PDT) Received: from zcy-ubuntu.spreadtrum.com ([114.30.40.58]) by mx.google.com with ESMTPSA id x3sm2466712pdo.0.2015.03.25.05.52.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Mar 2015 05:53:02 -0700 (PDT) From: Chunyan Zhang To: arm@kernel.org, arnd@arndb.de Subject: [PATCH v2] coresight: adding basic support for Spreadtrum SC9836 Date: Wed, 25 Mar 2015 20:52:11 +0800 Message-Id: <1427287931-9363-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-20150325_055325_445571_C890A4F7 X-CRM114-Status: GOOD ( 10.19 ) 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 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 --- Change for v2: - Corrected the TMC whose space is wrongly used as ETB in v1. - Removed "coresight-default-sink" from the DT. --- 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>,