Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1358390imm; Fri, 8 Jun 2018 14:50:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKGKREcwGU7Ht8Oj5QfOwnBkbSAKvtyrZegywk4GAQWLjxIDVmpFfec6ifkrnOzlyPmw04G X-Received: by 2002:a65:4249:: with SMTP id d9-v6mr6742217pgq.362.1528494628678; Fri, 08 Jun 2018 14:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528494628; cv=none; d=google.com; s=arc-20160816; b=i6AmGr5xiHscMUsP6iCygHkK4Ie1u/p006HSbaMLb72rKjYnhC7E2SwHhxUtEKqonc 6579eT15lqqx4wxpJeZoG2JYxo7AU80YvC06kYGw0v905SNRwP+MujDLtyLHVlM/LA1s I0l7/V1FIcuLOEdXVsIBmmbbpJhFJI3lYrxoFv/tAVxbHZOhzReh9bxwI6Pn8XRgigdB ooD6HsQnkmcmRn2kLyiPyt35/JBLkLOiyw57embMlE/4GQWOBN+sCxLqqxMgRF1aVz+3 0gFOzB04gS0XXxSYM0/Q1waUQIBk5drtQCKQqh34TG5pW5M+krOhpOTVpfMgPiwEnhtK zBBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=6Hjozd42Y6BkBsBG0IRgBlBGWgfxuUNnid2BGXcR+KY=; b=CUtAZeIzLkKMz1EhVdAVJuSOqwHKld1W25SwHf32LYpLBA8plBWWacRx71PIlINwsY cf5se0Iz84Mp05HJl0RpDrhZ73fOPYozxGS5bJmy4IEAzGI0EJ1312RPgJfswZU5bVLO mcmtH/gfZZwc4714OGVyJpGYvNnJ1qShN6CHlZj+b05ivgo2+9P1SOBlB5vx2kqbtctw 5x3IF3BUfkb014Na7/HpgkkQ0KuGtPqi5GsQApzv6ztgYirv1JAHU+QPHzqetfq2VCdI L7OCon1zsAutcfz96rupNVN2Prn30saCZqhbAsmCDfXhQBegYAEDn4II2UOI+Og2eURe 9OdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CBn2BgdT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13-v6si24662516pgq.316.2018.06.08.14.50.14; Fri, 08 Jun 2018 14:50:28 -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; dkim=pass header.i=@linaro.org header.s=google header.b=CBn2BgdT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753188AbeFHVtw (ORCPT + 99 others); Fri, 8 Jun 2018 17:49:52 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:46749 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752974AbeFHVtu (ORCPT ); Fri, 8 Jun 2018 17:49:50 -0400 Received: by mail-pl0-f65.google.com with SMTP id 30-v6so8985870pld.13 for ; Fri, 08 Jun 2018 14:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6Hjozd42Y6BkBsBG0IRgBlBGWgfxuUNnid2BGXcR+KY=; b=CBn2BgdTDAOraONKY+DiyNXeXstRoTV3q2MFbPjSaHcOVLdLQrcOBGTyyaj+ZJkzHD wJVlFro+FUVRKQgWaSgKQur34HjVtnhNge0OzhNm59jC/KUHOXxrTzoRXfSm/95+JjZL mKI6GfBQAQlzRixbLzoP2Y5byKW3+8xG1L1y0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6Hjozd42Y6BkBsBG0IRgBlBGWgfxuUNnid2BGXcR+KY=; b=NC0RTtiBfU3fJYNVJHg7jkcrxClUM7LkmiRmYHRXhvgxAkEii4GPRyuBtHsqCZ09LB okLpBw5Ocsd51tpoZVyDBSVdPKdImZQsko+U9IyCOjBuwFAbxiD5oNQ32XBVr3rWe34k +LFl7fTxDaM0F0InoZipleLof7JTy/YrX/N3O7PFTUj8qDLDgBy7ePIVUc6OsxT0PcTc 0wtomfYDKGV/gbDZRMek/Fpl7MX4EOleb+zmprNvOEoYKPNURI5GEQgsrOWI9MSwr6Ez bYUDXb222O+JEMnWel1ZyeNQr+dVSTE/aMXiETYdlj+UNCf2rNBhPBfiZYBwp3y2qP7H Xs/A== X-Gm-Message-State: APt69E0ASMJszLSRklPFYkk8NRgYQKh0XWbsFPFkczVmVmoKJYTrW5Qh AbFlJTxfHPfi0IqcpL9vp99L1Q== X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr8249902plt.288.1528494590351; Fri, 08 Jun 2018 14:49:50 -0700 (PDT) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id q68-v6sm101989460pfb.182.2018.06.08.14.49.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jun 2018 14:49:49 -0700 (PDT) Date: Fri, 8 Jun 2018 15:49:46 -0600 From: Mathieu Poirier To: Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.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, Liviu Dudau Subject: Re: [PATCH 10/20] dts: juno: Update coresight bindings for hw port Message-ID: <20180608214946.GI30587@xps15> References: <1528235011-30691-1-git-send-email-suzuki.poulose@arm.com> <1528235011-30691-11-git-send-email-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1528235011-30691-11-git-send-email-suzuki.poulose@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 05, 2018 at 10:43:21PM +0100, Suzuki K Poulose wrote: > Switch to updated coresight bindings for hw ports. > > Cc: Sudeep Holla > Cc: Liviu Dudau > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > Changes since V1: > - Add support Juno for r1 & r2. > --- Reviewed-by: Mathieu Poirier > arch/arm64/boot/dts/arm/juno-base.dtsi | 82 ++++++++++++++++++++++--------- > arch/arm64/boot/dts/arm/juno-cs-r1r2.dtsi | 26 +++++++--- > arch/arm64/boot/dts/arm/juno.dts | 5 +- > 3 files changed, 81 insertions(+), 32 deletions(-) > > diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi > index eb749c5..33b41ba 100644 > --- a/arch/arm64/boot/dts/arm/juno-base.dtsi > +++ b/arch/arm64/boot/dts/arm/juno-base.dtsi > @@ -122,15 +122,18 @@ > port@0 { > reg = <0>; > etf0_in_port: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&main_funnel_out_port>; > + coresight,hwid = <0>; > }; > }; > > /* output port */ > port@1 { > - reg = <0>; > + reg = <1>; > etf0_out_port: endpoint { > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > }; > @@ -145,8 +148,9 @@ > power-domains = <&scpi_devpd 0>; > port { > tpiu_in_port: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&replicator_out_port0>; > + coresight,hwid = <0>; > }; > }; > }; > @@ -168,23 +172,27 @@ > reg = <0>; > main_funnel_out_port: endpoint { > remote-endpoint = <&etf0_in_port>; > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > > /* input ports */ > port@1 { > - reg = <0>; > + reg = <1>; > main_funnel_in_port0: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&cluster0_funnel_out_port>; > + coresight,hwid = <0>; > }; > }; > > port@2 { > - reg = <1>; > + reg = <2>; > main_funnel_in_port1: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&cluster1_funnel_out_port>; > + coresight,hwid = <1>; > }; > }; > }; > @@ -200,8 +208,9 @@ > power-domains = <&scpi_devpd 0>; > port { > etr_in_port: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&replicator_out_port1>; > + coresight,hwid = <0>; > }; > }; > }; > @@ -217,6 +226,8 @@ > power-domains = <&scpi_devpd 0>; > port { > stm_out_port: endpoint { > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > }; > @@ -240,6 +251,8 @@ > port { > cluster0_etm0_out_port: endpoint { > remote-endpoint = <&cluster0_funnel_in_port0>; > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > }; > @@ -259,22 +272,26 @@ > reg = <0>; > cluster0_funnel_out_port: endpoint { > remote-endpoint = <&main_funnel_in_port0>; > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > > port@1 { > - reg = <0>; > + reg = <1>; > cluster0_funnel_in_port0: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&cluster0_etm0_out_port>; > + coresight,hwid = <0>; > }; > }; > > port@2 { > - reg = <1>; > + reg = <2>; > cluster0_funnel_in_port1: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&cluster0_etm1_out_port>; > + coresight,hwid = <1>; > }; > }; > }; > @@ -299,6 +316,8 @@ > port { > cluster0_etm1_out_port: endpoint { > remote-endpoint = <&cluster0_funnel_in_port1>; > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > }; > @@ -322,6 +341,8 @@ > port { > cluster1_etm0_out_port: endpoint { > remote-endpoint = <&cluster1_funnel_in_port0>; > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > }; > @@ -341,36 +362,42 @@ > reg = <0>; > cluster1_funnel_out_port: endpoint { > remote-endpoint = <&main_funnel_in_port1>; > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > > port@1 { > - reg = <0>; > + reg = <1>; > cluster1_funnel_in_port0: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&cluster1_etm0_out_port>; > + coresight,hwid = <0>; > }; > }; > > port@2 { > - reg = <1>; > + reg = <2>; > cluster1_funnel_in_port1: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&cluster1_etm1_out_port>; > + coresight,hwid = <1>; > }; > }; > port@3 { > - reg = <2>; > + reg = <3>; > cluster1_funnel_in_port2: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&cluster1_etm2_out_port>; > + coresight,hwid = <2>; > }; > }; > port@4 { > - reg = <3>; > + reg = <4>; > cluster1_funnel_in_port3: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&cluster1_etm3_out_port>; > + coresight,hwid = <3>; > }; > }; > }; > @@ -395,6 +422,8 @@ > port { > cluster1_etm1_out_port: endpoint { > remote-endpoint = <&cluster1_funnel_in_port1>; > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > }; > @@ -418,6 +447,8 @@ > port { > cluster1_etm2_out_port: endpoint { > remote-endpoint = <&cluster1_funnel_in_port2>; > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > }; > @@ -441,6 +472,8 @@ > port { > cluster1_etm3_out_port: endpoint { > remote-endpoint = <&cluster1_funnel_in_port3>; > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > }; > @@ -462,6 +495,8 @@ > reg = <0>; > replicator_out_port0: endpoint { > remote-endpoint = <&tpiu_in_port>; > + coresight,hwid = <0>; > + direction = <1>; > }; > }; > > @@ -469,14 +504,17 @@ > reg = <1>; > replicator_out_port1: endpoint { > remote-endpoint = <&etr_in_port>; > + coresight,hwid = <1>; > + direction = <1>; > }; > }; > > /* replicator input port */ > port@2 { > - reg = <0>; > + reg = <2>; > replicator_in_port0: endpoint { > - slave-mode; > + direction = <0>; > + coresight,hwid = <0>; > }; > }; > }; > diff --git a/arch/arm64/boot/dts/arm/juno-cs-r1r2.dtsi b/arch/arm64/boot/dts/arm/juno-cs-r1r2.dtsi > index 0c43fb3..146a5d9 100644 > --- a/arch/arm64/boot/dts/arm/juno-cs-r1r2.dtsi > +++ b/arch/arm64/boot/dts/arm/juno-cs-r1r2.dtsi > @@ -15,15 +15,18 @@ > port@0 { > reg = <0>; > csys1_funnel_out_port: endpoint { > + coresight,hwid = <0>; > + direction = <1>; > remote-endpoint = <&etf1_in_port>; > }; > }; > > /* input port */ > port@1 { > - reg = <0>; > + reg = <1>; > csys1_funnel_in_port0: endpoint { > - slave-mode; > + coresight,hwid = <0>; > + direction = <0>; > }; > }; > > @@ -45,15 +48,18 @@ > port@0 { > reg = <0>; > etf1_in_port: endpoint { > - slave-mode; > + direction = <0>; > + coresight,hwid = <0>; > remote-endpoint = <&csys1_funnel_out_port>; > }; > }; > > /* output port */ > port@1 { > - reg = <0>; > + reg = <1>; > etf1_out_port: endpoint { > + coresight,hwid = <0>; > + direction = <1>; > remote-endpoint = <&csys2_funnel_in_port1>; > }; > }; > @@ -75,23 +81,27 @@ > port@0 { > reg = <0>; > csys2_funnel_out_port: endpoint { > + coresight,hwid = <0>; > + direction = <1>; > remote-endpoint = <&replicator_in_port0>; > }; > }; > > /* input ports */ > port@1 { > - reg = <0>; > + reg = <1>; > csys2_funnel_in_port0: endpoint { > - slave-mode; > + direction = <0>; > + coresight,hwid = <0>; > remote-endpoint = <&etf0_out_port>; > }; > }; > > port@2 { > - reg = <1>; > + reg = <2>; > csys2_funnel_in_port1: endpoint { > - slave-mode; > + direction = <0>; > + coresight,hwid = <1>; > remote-endpoint = <&etf1_out_port>; > }; > }; > diff --git a/arch/arm64/boot/dts/arm/juno.dts b/arch/arm64/boot/dts/arm/juno.dts > index c9236c4..27b8036 100644 > --- a/arch/arm64/boot/dts/arm/juno.dts > +++ b/arch/arm64/boot/dts/arm/juno.dts > @@ -260,10 +260,11 @@ > &main_funnel { > ports { > port@3 { > - reg = <2>; > + reg = <3>; > main_funnel_in_port2: endpoint { > - slave-mode; > + direction = <0>; > remote-endpoint = <&stm_out_port>; > + coresight,hwid = <2>; > }; > }; > }; > -- > 2.7.4 >