From patchwork Fri May 19 04:25:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 100155 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp141317qge; Thu, 18 May 2017 21:28:03 -0700 (PDT) X-Received: by 10.84.237.1 with SMTP id s1mr8983833plk.157.1495168083683; Thu, 18 May 2017 21:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495168083; cv=none; d=google.com; s=arc-20160816; b=KkAvaW8Zl2hGlcUXCrpPAbT87wV/Xy/ZZOpIeNXN8pUHTfyvuwzMgIYMEcrbLTrl9N bW3sAw0ROcNi6i/LbqRZc+4zolT4Sm1dCcs0E04PmEpgA1MbDzPApsT6jMsIgdze5/1H 1n18c89fjaEqw9Iun4dfTtGKslaxXcKgGy5e090qXq5VN0NlUK+ZToNM9zTg94GJLHyo Ca8cK85bcj02y7/dzCd2jOBhyEulqWmXI+gEEOY+EqSqSih8Q9910FURjQmV7Uv9ZNTT h6mYx1isNT0nlrRoLH5yhc1D1UqBUlnihPfnIfha20d/q2soCC9c69/ySR9H/Q/8zRFR Sk6Q== 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:dkim-signature:arc-authentication-results; bh=qtlRKwqcMiC8NKiU3cbHWNppElMAQKRitr5QiIESGlg=; b=gTOx2gv8URbpsv1wVIwGvyUif8xHngxm8MMP/csvw0XYbxJjZXbH5BHdMzIlQpYLAU B232ChQqCjv9LQawl5RE+U5dUMMtyehocs1ZZcI1INan5FffRSOZwSNuvVXNxjCcsF9K tqxhIUkUyuZg/O0QNvTs4Rk0MpqREj4wmzef3HlDc1XA8X3vYMU/mlzHnRiUWIM6bLvY vl0FL786Gj0V0eDUkF1JmrRpbP1yKW6BY5CIR3N8KNufMihhPxmbSo4/3SXnlnuL2T8A D01dmm4gQX4HwqubEAxgdf3VE39yovHmXAxSRfnLpJ55FlPuCiEiSX7ArKS7O/E8XQ31 2JbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (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 1si4759065pgw.51.2017.05.18.21.28.02; Thu, 18 May 2017 21:28:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753890AbdESE1x (ORCPT + 10 others); Fri, 19 May 2017 00:27:53 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:36175 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755288AbdESE1u (ORCPT ); Fri, 19 May 2017 00:27:50 -0400 Received: by mail-pg0-f54.google.com with SMTP id x64so32293263pgd.3 for ; Thu, 18 May 2017 21:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FHpyd5eKAj4buyh6bjAIuqTpu7Uz9GsHfaGEXOsZzrs=; b=KA1UpoGjTP1aA8Y5HrUJtxDMQ30xnJTzfUI3t4a83zb7Wm1t01mUFOFukhC+n79PRs /Wm/Cu7o4n3hkqXpkfrauMZeroi7IiHcErEGXakG6KIjZR008MnyW/94BRdgLv92lQOP gUmnz/VPhQ/4P5ZinOgljLCx+opBi5eQYExWE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FHpyd5eKAj4buyh6bjAIuqTpu7Uz9GsHfaGEXOsZzrs=; b=qLVTUCd7nOVi42s/RqWJrkkkD+BIDf74Mi6sBf5tXe6TYOs+2sbb43app8CTTmpmCb s9IjQJ25zkpAmzhKJlAVlpEODlYvEKUdVzubcMhFVQZfhgzKdmgyRDMcA7o6TNk9pyx5 luA4tNsR3hVSPU8varbXurWeczvX+kmY8sjIi1eGIR7rew5pG9rMheQxQwyzpB2q3jU6 CB9qbgFmYxCHuV67uBlkqPhhd7BldcnLKm57tzJn5X/oeaIvABrlFjYJAphBUYnlyDyg xJfu0IAfyUJNqxLznY4HxefzQvBsS2cvjHX9XOkKfi91uFDYacRJM8Rre3Vehc62RESs RgWA== X-Gm-Message-State: AODbwcDS5jEAzo9Ncg0W40xQySFCBELza4B3Yn2QQtjt8GQUEqA0cCnG nCMIxUP/kGPw/LUj X-Received: by 10.98.223.28 with SMTP id u28mr7974177pfg.97.1495168069209; Thu, 18 May 2017 21:27:49 -0700 (PDT) Received: from localhost.localdomain (li637-108.members.linode.com. [106.186.117.108]) by smtp.gmail.com with ESMTPSA id c29sm5823259pfj.101.2017.05.18.21.27.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 May 2017 21:27:47 -0700 (PDT) From: Leo Yan To: Jonathan Corbet , Mathieu Poirier , Rob Herring , Mark Rutland , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Catalin Marinas , Will Deacon , Wei Xu , Andy Gross , David Brown , Greg Kroah-Hartman , Suzuki K Poulose , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Stephen Boyd , Mike Leach Cc: Leo Yan , Mathieu Poirier Subject: [PATCH v10 10/10] arm64: dts: juno: Add Coresight CPU debug nodes Date: Fri, 19 May 2017 12:25:57 +0800 Message-Id: <1495167957-14923-11-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495167957-14923-1-git-send-email-leo.yan@linaro.org> References: <1495167957-14923-1-git-send-email-leo.yan@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Suzuki K Poulose Add Coresight CPU debug nodes for Juno r0, r1 & r2. The CPU debug areas are mapped at the same address for all revisions, like the ETM, even though the CPUs have changed from r1 to r2. Cc: Sudeep Holla Cc: Leo Yan Cc: Mathieu Poirier Cc: Liviu Dudau Signed-off-by: Suzuki K Poulose --- arch/arm64/boot/dts/arm/juno-base.dtsi | 54 ++++++++++++++++++++++++++++++++++ arch/arm64/boot/dts/arm/juno-r1.dts | 24 +++++++++++++++ arch/arm64/boot/dts/arm/juno-r2.dts | 24 +++++++++++++++ arch/arm64/boot/dts/arm/juno.dts | 24 +++++++++++++++ 4 files changed, 126 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi index bfe7d68..784a80a 100644 --- a/arch/arm64/boot/dts/arm/juno-base.dtsi +++ b/arch/arm64/boot/dts/arm/juno-base.dtsi @@ -216,6 +216,15 @@ }; }; + cpu_debug0: cpu_debug@22010000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0 0x22010000 0 0x1000>; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + power-domains = <&scpi_devpd 0>; + }; + funnel@220c0000 { /* cluster0 funnel */ compatible = "arm,coresight-funnel", "arm,primecell"; reg = <0 0x220c0000 0 0x1000>; @@ -266,6 +275,15 @@ }; }; + cpu_debug1: cpu_debug@22110000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0 0x22110000 0 0x1000>; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + power-domains = <&scpi_devpd 0>; + }; + etm2: etm@23040000 { compatible = "arm,coresight-etm4x", "arm,primecell"; reg = <0 0x23040000 0 0x1000>; @@ -280,6 +298,15 @@ }; }; + cpu_debug2: cpu_debug@23010000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0 0x23010000 0 0x1000>; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + power-domains = <&scpi_devpd 0>; + }; + funnel@230c0000 { /* cluster1 funnel */ compatible = "arm,coresight-funnel", "arm,primecell"; reg = <0 0x230c0000 0 0x1000>; @@ -344,6 +371,15 @@ }; }; + cpu_debug3: cpu_debug@23110000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0 0x23110000 0 0x1000>; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + power-domains = <&scpi_devpd 0>; + }; + etm4: etm@23240000 { compatible = "arm,coresight-etm4x", "arm,primecell"; reg = <0 0x23240000 0 0x1000>; @@ -358,6 +394,15 @@ }; }; + cpu_debug4: cpu_debug@23210000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0 0x23210000 0 0x1000>; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + power-domains = <&scpi_devpd 0>; + }; + etm5: etm@23340000 { compatible = "arm,coresight-etm4x", "arm,primecell"; reg = <0 0x23340000 0 0x1000>; @@ -372,6 +417,15 @@ }; }; + cpu_debug5: cpu_debug@23310000 { + compatible = "arm,coresight-cpu-debug", "arm,primecell"; + reg = <0 0x23310000 0 0x1000>; + + clocks = <&soc_smc50mhz>; + clock-names = "apb_pclk"; + power-domains = <&scpi_devpd 0>; + }; + replicator@20120000 { compatible = "qcom,coresight-replicator1x", "arm,primecell"; reg = <0 0x20120000 0 0x1000>; diff --git a/arch/arm64/boot/dts/arm/juno-r1.dts b/arch/arm64/boot/dts/arm/juno-r1.dts index 0e8943a..aed6389 100644 --- a/arch/arm64/boot/dts/arm/juno-r1.dts +++ b/arch/arm64/boot/dts/arm/juno-r1.dts @@ -281,3 +281,27 @@ &stm_out_port { remote-endpoint = <&csys1_funnel_in_port0>; }; + +&cpu_debug0 { + cpu = <&A57_0>; +}; + +&cpu_debug1 { + cpu = <&A57_1>; +}; + +&cpu_debug2 { + cpu = <&A53_0>; +}; + +&cpu_debug3 { + cpu = <&A53_1>; +}; + +&cpu_debug4 { + cpu = <&A53_2>; +}; + +&cpu_debug5 { + cpu = <&A53_3>; +}; diff --git a/arch/arm64/boot/dts/arm/juno-r2.dts b/arch/arm64/boot/dts/arm/juno-r2.dts index 405e2fb..b39b6d6 100644 --- a/arch/arm64/boot/dts/arm/juno-r2.dts +++ b/arch/arm64/boot/dts/arm/juno-r2.dts @@ -281,3 +281,27 @@ &stm_out_port { remote-endpoint = <&csys1_funnel_in_port0>; }; + +&cpu_debug0 { + cpu = <&A72_0>; +}; + +&cpu_debug1 { + cpu = <&A72_1>; +}; + +&cpu_debug2 { + cpu = <&A53_0>; +}; + +&cpu_debug3 { + cpu = <&A53_1>; +}; + +&cpu_debug4 { + cpu = <&A53_2>; +}; + +&cpu_debug5 { + cpu = <&A53_3>; +}; diff --git a/arch/arm64/boot/dts/arm/juno.dts b/arch/arm64/boot/dts/arm/juno.dts index 0220494..c9236c4 100644 --- a/arch/arm64/boot/dts/arm/juno.dts +++ b/arch/arm64/boot/dts/arm/juno.dts @@ -268,3 +268,27 @@ }; }; }; + +&cpu_debug0 { + cpu = <&A57_0>; +}; + +&cpu_debug1 { + cpu = <&A57_1>; +}; + +&cpu_debug2 { + cpu = <&A53_0>; +}; + +&cpu_debug3 { + cpu = <&A53_1>; +}; + +&cpu_debug4 { + cpu = <&A53_2>; +}; + +&cpu_debug5 { + cpu = <&A53_3>; +};