Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp47629imm; Tue, 5 Jun 2018 14:48:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIrxaUYnQWBycy9HmuuzrscIW73nS+Gf+jEL0C0ZE0pbbMpJnvp0om2+gZ5wni0hxCj3+nC X-Received: by 2002:a63:2c94:: with SMTP id s142-v6mr275005pgs.39.1528235284998; Tue, 05 Jun 2018 14:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528235284; cv=none; d=google.com; s=arc-20160816; b=UPTYWgUTEV5CPf+bGliC9gGIFwv0ganWDWTud7bFDMraDDrT9ZJK/9dLd1hrANe+QB Hj9DOMNEJl80WoVdm20tzUg2eBCS1gSegFOm47w351xHKgpXiq59ZuAgz/YUtXGActZX K+Iib6dDBJnRxhLxM0pJQ85w4X3GWbRUGE58A9M3jVoZVi0XS38JnmHO1lAx8SSpHPza 9CVd9fbjTNDBs0TJlqpr+zrTFQgLJ7DnAMW4a4HXU0p7DB7et060rKtyteA4ezrYrW9z xs4ljXBHtmqmvi/UTEs+LYeJmF7TX3kiLIaDOk/blFh7rAv1GoB5I49DuTYUfeOW7wxS 8RzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=YI6QF1bEGuFzNQX1m+/rvWyvMKGxs3VWWRAcXXLUoaM=; b=rQQJhK6XB/89hkAzwWK+JJ6phCqbmDyCEZW3XXoy3QVLBQlKXWhr0UsIN63OQnXi3k uT5Yoae7NsLu8WplXSA6ssx1wJczkDlcXDlghABaQ9c1HNxvO/Cgu/ioqopXtEOvXKEl T+fKLTVNOgbNljjYrLqWCo1Pp16KGSmOttXoxOw/nURgjkelIwb+NvXcl5a+mqRbTTLS pcCj8ONCuHbgrX2zPUKyWSVwUbNWT2aeaoguBCm5E6VHMSTzh1U50Yax54IQecQkLZGT d0lhflNIWx6P95UtGnUhd1c6ggOBXLhge2Gs3qruKadu65lfh2+0Xty4COwR2c3A4a7d EucA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y124-v6si19086877pgb.61.2018.06.05.14.47.50; Tue, 05 Jun 2018 14:48:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752936AbeFEVpV (ORCPT + 99 others); Tue, 5 Jun 2018 17:45:21 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:34584 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751619AbeFEVpS (ORCPT ); Tue, 5 Jun 2018 17:45:18 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5312D80D; Tue, 5 Jun 2018 14:45:18 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.206.73]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 85A423F59D; Tue, 5 Jun 2018 14:45:15 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: mathieu.poirier@linaro.org, robh@kernel.org, frowand.list@gmail.com, mark.rutland@arm.com, sudeep.holla@arm.com, arm@kernel.org, linux-kernel@vger.kernel.org, matt.sealey@arm.com, john.horley@arm.com, charles.garcia-tobin@arm.com, coresight@lists.linaro.org, devicetree@vger.kernel.org, mike.leach@linaro.org, Suzuki K Poulose , orsonzhai@gmail.com, zhang.lyra@gmail.com Subject: [PATCH 12/20] dts: spreadtrum: Update coresight bindings for hw ports Date: Tue, 5 Jun 2018 22:43:23 +0100 Message-Id: <1528235011-30691-13-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528235011-30691-1-git-send-email-suzuki.poulose@arm.com> References: <1528235011-30691-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch to the new coresight bindings for hw ports Cc: orsonzhai@gmail.com Cc: zhang.lyra@gmail.com Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm64/boot/dts/sprd/sc9836.dtsi | 40 ++++++++++---- arch/arm64/boot/dts/sprd/sc9860.dtsi | 101 +++++++++++++++++++++++++---------- 2 files changed, 102 insertions(+), 39 deletions(-) diff --git a/arch/arm64/boot/dts/sprd/sc9836.dtsi b/arch/arm64/boot/dts/sprd/sc9836.dtsi index 63894c4..27ccc29 100644 --- a/arch/arm64/boot/dts/sprd/sc9836.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9836.dtsi @@ -52,8 +52,9 @@ clock-names = "apb_pclk"; port { etf_in: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&funnel_out_port0>; + coresight,hwid = <0>; }; }; }; @@ -71,48 +72,55 @@ port@0 { reg = <0>; funnel_out_port0: endpoint { + direction = <1>; remote-endpoint = <&etf_in>; + coresight,hwid = <0>; }; }; /* funnel input port 0-4 */ port@1 { - reg = <0>; + reg = <1>; funnel_in_port0: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm0_out>; + coresight,hwid = <0>; }; }; port@2 { - reg = <1>; + reg = <2>; funnel_in_port1: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm1_out>; + coresight,hwid = <1>; }; }; port@3 { - reg = <2>; + reg = <3>; funnel_in_port2: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm2_out>; + coresight,hwid = <2>; }; }; port@4 { - reg = <3>; + reg = <4>; funnel_in_port3: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm3_out>; + coresight,hwid = <3>; }; }; port@5 { - reg = <4>; + reg = <5>; funnel_in_port4: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&stm_out>; + coresight,hwid = <4>; }; }; /* Other input ports aren't connected to anyone */ @@ -128,7 +136,9 @@ clock-names = "apb_pclk"; port { etm0_out: endpoint { + direction = <1>; remote-endpoint = <&funnel_in_port0>; + coresight,hwid = <0>; }; }; }; @@ -142,7 +152,9 @@ clock-names = "apb_pclk"; port { etm1_out: endpoint { + direction = <1>; remote-endpoint = <&funnel_in_port1>; + coresight,hwid = <0>; }; }; }; @@ -156,7 +168,9 @@ clock-names = "apb_pclk"; port { etm2_out: endpoint { + direction = <1>; remote-endpoint = <&funnel_in_port2>; + coresight,hwid = <0>; }; }; }; @@ -170,7 +184,9 @@ clock-names = "apb_pclk"; port { etm3_out: endpoint { + direction = <1>; remote-endpoint = <&funnel_in_port3>; + coresight,hwid = <0>; }; }; }; @@ -184,7 +200,9 @@ clock-names = "apb_pclk"; port { stm_out: endpoint { + direction = <1>; remote-endpoint = <&funnel_in_port4>; + coresight,hwid = <0>; }; }; }; diff --git a/arch/arm64/boot/dts/sprd/sc9860.dtsi b/arch/arm64/boot/dts/sprd/sc9860.dtsi index 5dbfb79..1615014 100644 --- a/arch/arm64/boot/dts/sprd/sc9860.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9860.dtsi @@ -309,25 +309,29 @@ port@0 { reg = <0>; soc_funnel_out_port: endpoint { + direction = <1>; remote-endpoint = <&etb_in>; + coresight,hwid = <0>; }; }; port@1 { - reg = <0>; + reg = <1>; soc_funnel_in_port0: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&main_funnel_out_port>; + coresight,hwid = <0>; }; }; port@2 { - reg = <4>; + reg = <2>; soc_funnel_in_port1: endpoint { - slave-mode; + direction = <0>; remote-endpioint = <&stm_out_port>; + coresight,hwid = <4>; }; }; }; @@ -340,9 +344,10 @@ clock-names = "apb_pclk"; port { etb_in: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&soc_funnel_out_port>; + coresight,hwid = <0>; }; }; }; @@ -356,8 +361,10 @@ clock-names = "apb_pclk"; port { stm_out_port: endpoint { + direction = <1>; remote-endpoint = <&soc_funnel_in_port1>; + coresight,hwid = <0>; }; }; }; @@ -374,40 +381,46 @@ port@0 { reg = <0>; cluster0_funnel_out_port: endpoint { + direction = <1>; remote-endpoint = <&cluster0_etf_in>; + coresight,hwid = <0>; }; }; port@1 { - reg = <0>; + reg = <1>; cluster0_funnel_in_port0: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm0_out>; + coresight,hwid = <0>; }; }; port@2 { - reg = <1>; + reg = <2>; cluster0_funnel_in_port1: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm1_out>; + coresight,hwid = <1>; }; }; port@3 { - reg = <2>; + reg = <3>; cluster0_funnel_in_port2: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm2_out>; + coresight,hwid = <2>; }; }; port@4 { reg = <4>; cluster0_funnel_in_port3: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm3_out>; + coresight,hwid = <4>; }; }; }; @@ -425,40 +438,46 @@ port@0 { reg = <0>; cluster1_funnel_out_port: endpoint { + direction = <1>; remote-endpoint = <&cluster1_etf_in>; + coresight,hwid = <0>; }; }; port@1 { - reg = <0>; + reg = <1>; cluster1_funnel_in_port0: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm4_out>; + coresight,hwid = <0>; }; }; port@2 { - reg = <1>; + reg = <2>; cluster1_funnel_in_port1: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm5_out>; + coresight,hwid = <1>; }; }; port@3 { - reg = <2>; + reg = <3>; cluster1_funnel_in_port2: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm6_out>; + coresight,hwid = <2>; }; }; port@4 { - reg = <3>; + reg = <4>; cluster1_funnel_in_port3: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&etm7_out>; + coresight,hwid = <3>; }; }; }; @@ -477,17 +496,20 @@ port@0 { reg = <0>; cluster0_etf_out: endpoint { + direction = <1>; remote-endpoint = <&main_funnel_in_port0>; + coresight,hwid = <0>; }; }; port@1 { - reg = <0>; + reg = <1>; cluster0_etf_in: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&cluster0_funnel_out_port>; + coresight,hwid = <0>; }; }; }; @@ -506,17 +528,20 @@ port@0 { reg = <0>; cluster1_etf_out: endpoint { + direction = <1>; remote-endpoint = <&main_funnel_in_port1>; + coresight,hwid = <0>; }; }; port@1 { - reg = <0>; + reg = <1>; cluster1_etf_in: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&cluster1_funnel_out_port>; + coresight,hwid = <0>; }; }; }; @@ -535,26 +560,30 @@ port@0 { reg = <0>; main_funnel_out_port: endpoint { + direction = <1>; remote-endpoint = <&soc_funnel_in_port0>; + coresight,hwid = <0>; }; }; port@1 { - reg = <0>; + reg = <1>; main_funnel_in_port0: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&cluster0_etf_out>; + coresight,hwid = <0>; }; }; port@2 { - reg = <1>; + reg = <2>; main_funnel_in_port1: endpoint { - slave-mode; + direction = <0>; remote-endpoint = <&cluster1_etf_out>; + coresight,hwid = <1>; }; }; }; @@ -569,8 +598,10 @@ port { etm0_out: endpoint { + direction = <1>; remote-endpoint = <&cluster0_funnel_in_port0>; + coresight,hwid = <0>; }; }; }; @@ -584,8 +615,10 @@ port { etm1_out: endpoint { + direction = <1>; remote-endpoint = <&cluster0_funnel_in_port1>; + coresight,hwid = <0>; }; }; }; @@ -599,8 +632,10 @@ port { etm2_out: endpoint { + direction = <1>; remote-endpoint = <&cluster0_funnel_in_port2>; + coresight,hwid = <0>; }; }; }; @@ -614,8 +649,10 @@ port { etm3_out: endpoint { + direction = <1>; remote-endpoint = <&cluster0_funnel_in_port3>; + coresight,hwid = <0>; }; }; }; @@ -629,8 +666,10 @@ port { etm4_out: endpoint { + direction = <1>; remote-endpoint = <&cluster1_funnel_in_port0>; + coresight,hwid = <0>; }; }; }; @@ -644,8 +683,10 @@ port { etm5_out: endpoint { + direction = <1>; remote-endpoint = <&cluster1_funnel_in_port1>; + coresight,hwid = <0>; }; }; }; @@ -659,8 +700,10 @@ port { etm6_out: endpoint { + direction = <1>; remote-endpoint = <&cluster1_funnel_in_port2>; + coresight,hwid = <0>; }; }; }; @@ -674,8 +717,10 @@ port { etm7_out: endpoint { + direction = <1>; remote-endpoint = <&cluster1_funnel_in_port3>; + coresight,hwid = <0>; }; }; }; -- 2.7.4