From patchwork Sat Mar 20 02:59:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 405426 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1877855jai; Fri, 19 Mar 2021 20:01:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS5ztpujA3qCwjnLulqgflk9GZ+6tc/RckfcGgzAQCmWMuFm7C9DwBePTQQTB0Aa6xJ3sr X-Received: by 2002:aa7:c0c7:: with SMTP id j7mr13265908edp.298.1616209264434; Fri, 19 Mar 2021 20:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616209264; cv=none; d=google.com; s=arc-20160816; b=lVqcnmPmh4RmMqQoGvwhXmJzwwag58al8dKo8XJlEyTQl6jQ99PJCP1xjQNz9gbQxx 36SSMIiqN0uyMN7fVWfkrspMee+l8PNTHs6IFVhin63nADZVkjU+CVyiB4v3+CfT+D1j zwLKZelcavpPYy/lbE5j4e0D8mqmIUss/8BCMsbXXKGI+zS8WJJX41/BxZeRkX1Hzg/z UrfZIAcCrrLCi0WejNAOYOkaCVv8+TLw0MMUmqbvVQMtJeDpmEp8nnZRrOGcJnAD+fqH dOZUcgVRX17S7GTC3v+0OviDytXSaz0EtKsOqmThEdlPYIQhKDbuYSZ2ca6BT0317rei WepA== 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=ZPX8Jj8fXngXUqa4TPBe2XO/CO/gvTfPNr7wapkl2B4=; b=Mxdm+AuA6TAP9iVnNeSG4JyI60epy9BsJGtp95ITksSU0K0utoEiWxSHa4swXWFVnM kvZmQlCr/SBRcTBXcViNNw6vQomQT5A5x45N4oP7FrZMBjdE9SlEoCJ6Wtx8g3er9vv0 XlyghhSF0d+FOFvn4yq4TFzm7oyA8M8vQdo2MP7Abw+OkOIAcXxswzIm2+x4lyoX0mN9 dXOhEGOtTLXTiVL1lrPMwJvrt+BZdCNqRS52VKO2ZZYZ8+DrAAnarRDte7+mpTbCPOTp yidEXLyRdtWaLHCtfa3cXbf8b9VX5gKo8I1ouoVleW9GbrInTkkYYLN/qereANWDEsD/ 95UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lHOc/t66"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 b26si5782410eds.574.2021.03.19.20.01.03; Fri, 19 Mar 2021 20:01:04 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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="lHOc/t66"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S229723AbhCTDAa (ORCPT + 6 others); Fri, 19 Mar 2021 23:00:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbhCTC76 (ORCPT ); Fri, 19 Mar 2021 22:59:58 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90ACFC061761 for ; Fri, 19 Mar 2021 19:59:58 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id x7-20020a17090a2b07b02900c0ea793940so7604046pjc.2 for ; Fri, 19 Mar 2021 19:59:58 -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=ZPX8Jj8fXngXUqa4TPBe2XO/CO/gvTfPNr7wapkl2B4=; b=lHOc/t666YqhwXFeJcHR5aNB2iLuox3AoHa7xXCuRFwk/ns4qd4uiQDpI3hYmWCGpl OdCHM/fWyvVuTAgjBvWLjbwxnpq5gH2XX3wT91crEv8+0QcWO9jplPYf1tBVbOF9NVIf reP8JuFiWFc8CphffLEv36+jgPNq8TO9M/sZE4nl0TUlp8Qbek07nfEQtp6XWN7Ig2LP anUTLl9ZKi9BA2zax1LOJ8ra89/TbkVRkFMYlpqImYiAQ6rRgNOnwSNBQcWP9lLlLajo c1dFf+IHcR8k9nf+tRlKjdOrh+YMLOVs6U79bG1rf/DyUXAzCCXMhHSBzhLVXkZlgCW0 NAcg== 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=ZPX8Jj8fXngXUqa4TPBe2XO/CO/gvTfPNr7wapkl2B4=; b=Vmpn16H7aCZ2BrUfPSlMM7053qGWQC+lDjAtep64dIkHVad0YKDgo8J1gh2iSEDa/h swmLEddz+YxCINYWmlxsgixPNjVIJx50SMt9ZpK9g2/WynaaKRg9w88UNLHBKLwW7T9A XYvm1kE3L3qVyS7ZM3Odpz2h/t8zKGiAhyXM5a3T1BErqnhBtJ4Kb7Pcov9uMs3lZYZL mv1c+QVcU88zVcuzOWO1xoeBamjVJ+GXu/tQBEPhdzOikUYzEnq7du/ucoVvTlQWgSK7 fAOrUBfX/qf95tzxSMZvOK8DuN4Hn6xm6kSU5fmZANrVs2hoke7x6Wyz3uqAr+MkyXEI 4ziA== X-Gm-Message-State: AOAM531s2NKGEvwg2ruFETelk2qxsK9hq/mC5jW6ylhGCYNnffVbEBH8 fxh4ETQhegdroDurcuUN2GQE+g== X-Received: by 2002:a17:90a:d907:: with SMTP id c7mr1500517pjv.45.1616209197935; Fri, 19 Mar 2021 19:59:57 -0700 (PDT) Received: from localhost ([116.206.101.232]) by smtp.gmail.com with ESMTPSA id e1sm7005000pfd.72.2021.03.19.19.59.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 19:59:57 -0700 (PDT) From: Leo Yan To: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Coresight ML Cc: Georgi Djakov , Leo Yan Subject: [PATCH] arm64: dts: msm8916: Enable CoreSight STM component Date: Sat, 20 Mar 2021 10:59:42 +0800 Message-Id: <20210320025942.487916-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- 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 diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 3a9538e1ec97..dd87e5d739ab 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -406,6 +406,7 @@ &wcd_codec { &etm1 { status = "okay"; }; &etm2 { status = "okay"; }; &etm3 { status = "okay"; }; +&stm { status = "okay"; }; &etr { status = "okay"; }; &funnel0 { status = "okay"; }; &funnel1 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 402e891a84ab..892f1772e53c 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -562,6 +562,13 @@ funnel0_in4: endpoint { remote-endpoint = <&funnel1_out>; }; }; + + port@7 { + reg = <7>; + funnel0_in7: endpoint { + remote-endpoint = <&stm_out>; + }; + }; }; out-ports { @@ -882,6 +889,26 @@ etm3_out: endpoint { }; }; + stm: stm@802000 { + compatible = "arm,coresight-stm", "arm,primecell"; + reg = <0x802000 0x1000>, + <0x9280000 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>; + }; + }; + }; + }; + msmgpio: pinctrl@1000000 { compatible = "qcom,msm8916-pinctrl"; reg = <0x01000000 0x300000>;