From patchwork Sun Mar 21 12:42:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 405906 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp2822776jai; Sun, 21 Mar 2021 05:43:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKr7scuEEVLy/+GJyqciN2tDscMG3MnCcsSLASd5qqhuyP59jeL8rI/2baFyZSE60pBk51 X-Received: by 2002:a17:906:dbd0:: with SMTP id yc16mr14434710ejb.71.1616330602229; Sun, 21 Mar 2021 05:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616330602; cv=none; d=google.com; s=arc-20160816; b=OobZoqjqcjLVmQSg4kle3c11LInuNMfGv2JHNXXIzv/fSu7lJAJcEHD2NpG1HpwPft 3mQ+l354Xrxp9sBUNoFDkonYwFMHcXPr39M7L39JNec1KTzXruD1wdmEfEwKd9IGs40h IWxz9BCN7M+bauvtsYjmh+nmvuhxgH9lVID3qFkZpJP2XYVo0w0bagF5xbBBG47q+vFi P0u0swN61MBXFvW6JrifK0W6vY3YyaFCo/q0HEemkQGPeTV2NUQRfXn2a0HjKo3Fi/tu Qhb5kt+eEg6cZUjg9ERROO6nhl1YbhvnA/bVKdFDEMVlzzf51mqzAyAPRsqrMXpsBwmh BPtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XedR4D63zUvw1J+WKjbyJOOz+/A4gC1Wz66rLRAAKFM=; b=LR+8SBng9+9CYNZ+NeBSkQzHATM47Juj55gmhF/ZoLUwOxnp1wPXutsC72ARUlpOCP RL5Nzw6pzXRc00Bnoe5OBTIQcdd345NhyCnclTcnVV4kg0FfGRh5eNJt/XjZTUQE1rK9 jBvMuAxhZM4YzEZ+Ly0gl4O9UeVZjYjIrFoAVVl7rxoXT+6wcg5swQfBFSN3QhaearO2 qO2Rx3eOOLrLQfBwisc0uhFs2o8cIQoTmMWorf5bokz+shyQ2AMfmEBJMY1tsTOhQZYv Dx+9VoK//gZJ8myNdTIDzBzyWM/xxG2sPVUNKNg0qslvqfiX1Yd2MXe+vX2rKWPEnf3j Gw9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oj22Iieo; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [23.128.96.18]) by mx.google.com with ESMTP id y17si8681782edr.228.2021.03.21.05.43.21; Sun, 21 Mar 2021 05:43:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oj22Iieo; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S229913AbhCUMmt (ORCPT + 16 others); Sun, 21 Mar 2021 08:42:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbhCUMmV (ORCPT ); Sun, 21 Mar 2021 08:42:21 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D5E6C061763 for ; Sun, 21 Mar 2021 05:42:20 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id a22-20020a17090aa516b02900c1215e9b33so8990393pjq.5 for ; Sun, 21 Mar 2021 05:42:20 -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:mime-version :content-transfer-encoding; bh=XedR4D63zUvw1J+WKjbyJOOz+/A4gC1Wz66rLRAAKFM=; b=oj22IieoJ7hv+uAPIgxTaFRsEDoIse1V91LhPaGz2yCMBF6lDasshA25Lg3c0lIZcV HxXs7kKiaAhlTO7CLbhJRo8B1OSkRBtrPHYvYKMctN4YKva3i0TbkjDNP1bMG03bJOSt SqgzCWy+j4DR9huHcv1QXymACKvig+2IdjyPQ+mLj87l2V5cid2xYp9Lscy8FnZxtF1Q UbT4YqhU7yo8E0vacmw4F1KR6F8PlDmvEKG5UWOMSUJfK3rZcW0LGqAfrBP6qV3koOD+ hbQbtCGnCf1zjiuTbDRc2h6Taa1L7d7BVEZ/srLVjVD8zlLTJlBKg9Oz6DXN7iH5WXFN No8g== 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:mime-version :content-transfer-encoding; bh=XedR4D63zUvw1J+WKjbyJOOz+/A4gC1Wz66rLRAAKFM=; b=mQxbtODfEy55PH5yXqfHLsBUrK9eraFG+vlB+TqEjeqkzoWX8atnuXTiWz7T8UgB02 WOxbarCJmx0qz7voEptNCRGQtKIlrhljik8XkTN8oeMACk3mcjUBF5E1qRfDQxjNq+yR GbxoQF7k/jF3oWyk6Z644s+PaREuek4DJFrPSvXo+xKbk509OMzzZqwpgexiT9haFK3O JwoJaiZfA/tbQmZDt0s4CCZvagm/oMACIeZpceTTEY+ql9lbm3tWGr4cieaYa4Bz7PwK jlKAp9NxLjh30Ba7/6pQ5OHjKiDtryadyAKNl0p929kLlR1lLEZY2wZbZuRxBW2/9uNV lhXA== X-Gm-Message-State: AOAM530snjvslk24mOLWvELSo1L/7/mxpPGLI4TfwanFkcHR9VJdbJo+ IlD+pBocP9cIqd6gsTNdG7KbqA== X-Received: by 2002:a17:902:b68b:b029:e6:cda9:39d with SMTP id c11-20020a170902b68bb02900e6cda9039dmr18588590pls.63.1616330539591; Sun, 21 Mar 2021 05:42:19 -0700 (PDT) Received: from localhost ([116.206.101.232]) by smtp.gmail.com with ESMTPSA id v13sm9973103pfu.54.2021.03.21.05.42.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Mar 2021 05:42:19 -0700 (PDT) From: Leo Yan To: Andy Gross , Bjorn Andersson , Rob Herring , Stephan Gerhold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Coresight ML Cc: Georgi Djakov , Leo Yan Subject: [PATCH v3] arm64: dts: msm8916: Enable CoreSight STM component Date: Sun, 21 Mar 2021 20:42:12 +0800 Message-Id: <20210321124212.4253-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Georgi Djakov Add DT binding for CoreSight System Trace Macrocell (STM) on msm8916, which can benefit the CoreSight development on DB410c. Signed-off-by: Georgi Djakov Signed-off-by: Leo Yan --- Changes from v2: * Correct for author name. Changes from v1: * alphabetically and address ordering for DT node; pad addresses with zeroes (Stephan Gerhold). arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 1 + arch/arm64/boot/dts/qcom/msm8916.dtsi | 27 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) -- 2.25.1 Acked-by: Stephan Gerhold diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 3a9538e1ec97..2165b7415add 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -410,6 +410,7 @@ &wcd_codec { &funnel0 { status = "okay"; }; &funnel1 { status = "okay"; }; &replicator { status = "okay"; }; +&stm { status = "okay"; }; &tpiu { status = "okay"; }; &smd_rpm_regulators { diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 402e891a84ab..f02b976480d5 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -489,6 +489,26 @@ snoc: interconnect@580000 { <&rpmcc RPM_SMD_SNOC_A_CLK>; }; + stm: stm@802000 { + compatible = "arm,coresight-stm", "arm,primecell"; + reg = <0x00802000 0x1000>, + <0x09280000 0x180000>; + reg-names = "stm-base", "stm-stimulus-base"; + + clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>; + clock-names = "apb_pclk", "atclk"; + + status = "disabled"; + + out-ports { + port { + stm_out: endpoint { + remote-endpoint = <&funnel0_in7>; + }; + }; + }; + }; + /* System CTIs */ /* CTI 0 - TMC connections */ cti0: cti@810000 { @@ -562,6 +582,13 @@ funnel0_in4: endpoint { remote-endpoint = <&funnel1_out>; }; }; + + port@7 { + reg = <7>; + funnel0_in7: endpoint { + remote-endpoint = <&stm_out>; + }; + }; }; out-ports {