From patchwork Sun Dec 10 07:26:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mao Jinlong X-Patchwork-Id: 176297 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp6401796vqy; Sat, 9 Dec 2023 23:27:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPcIMzhULwyqhj4Ieue7hGzrOGyFZDacJCoMsq2xrg9tjwAjvRZr1iZzvgQbU6yLNhUlX9 X-Received: by 2002:a05:6870:bb0a:b0:1fb:75a:6d18 with SMTP id nw10-20020a056870bb0a00b001fb075a6d18mr3177401oab.63.1702193238657; Sat, 09 Dec 2023 23:27:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702193238; cv=none; d=google.com; s=arc-20160816; b=UT4vI8XMhhRrSXbtIEznVDj6VEev9eE/yH3z9kmgcUuuSs/nPw1XHfWj9xiUJx3PKs 6ZO7EFGEoa81WNWasOj04bxJTJmNjd8pubmMdvjuc/CMeSqUFb24RbXv2C+58SEI4q2l 0UW41FlfLVk4jjA+rS1ZvRQPezXlMJpNoX4TNTjZtf0sZspFg6cYE0WYGwqMnIhPzDD/ ZM5pge/Pa8XnRA0nnQ1bL5NzdNbKHfbK6EPhCiOXPbP5E/Rfvg1mg+tizAO0S8OR0sxG kKfU6SVKcJhm8dSg+80guF0lDopLWE4YdRw26725zRYWoLsr/Odao+yYynEM8lUhR7zh LK7g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/z4BxeFGp7oYbJB1dgXCRImmUz9pRo/IBvMZtOGegYU=; fh=xKN1yDKVjknX+FNBABkF/JPX5DZp8w5Et6vXxo7nef8=; b=JB9oMiPcgigJ+rtOXfcuvlhHhl7RYWWjONdwrq40kkXUbx+Tuxx3OCVjb0L6+xlm4M OZtgZemN1UgtZt0myv7D6PNGszIElTZXfQFVp9ARhhVat3nxzSMHyu7RkgZ20UBZk2jB ESVrIrXtSvwD4dwYfoomvMbkrM6MLv5lZvTLLa56AFnkROn1OJAOq3JY78+OjIs/16ox EBf+o7yvko79fRYXIjIkK/Q3y+zTAPls+S6i5nB0bPY2lxsWvCpQamt/nXNizx+MhyzW /DR8pcgEX3fAD0XvhhTSD0WGw6xUSzM3NAFC7LuQMunUaAzQbjpqZ9p/C1zkF5aFamJj icag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WdT+Jsv1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 12-20020a63164c000000b005be1955657esi4155413pgw.127.2023.12.09.23.27.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 23:27:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WdT+Jsv1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 71D45805ECC0; Sat, 9 Dec 2023 23:27:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231801AbjLJH1G (ORCPT + 99 others); Sun, 10 Dec 2023 02:27:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjLJH0q (ORCPT ); Sun, 10 Dec 2023 02:26:46 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0073DFC; Sat, 9 Dec 2023 23:26:52 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BA7N7Wb019858; Sun, 10 Dec 2023 07:26:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=/z4BxeFGp7oYbJB1dgXCRImmUz9pRo/IBvMZtOGegYU=; b=Wd T+Jsv1cxM2xXHDg4W3HbaVCXJ5qUPXKMfkU0CIqCFhhvzplnjdfHOq0XxNBbdJJQ brZqMt1KMW7+99BUnrJ46WX2EEmOuKmbVD1vXdoyqdP7dMPHXAEDh4hlcEfQBCGn Nw+LW4h0w0DamRVrjyEa7vHQZSZI2ph7QOcDhuiTDC0AEapu77VEr86WuWYYs23Z YriMW6uJGhnHt4ne1jtP4DKZjJuR4UkY7shQ/D6moW8NkCu6JBdAh1UOresppA2d iaqK9O0hY7H+NXuwlqMkKLXeJQuMvkZqFiAX4xDwinyhnJHO4nTZ8Duw6DA5jtxM qkLW5jMtpYwRwyt5ibkw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uvney13k0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 10 Dec 2023 07:26:46 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BA7Qjn0002357 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 10 Dec 2023 07:26:45 GMT Received: from hu-jinlmao-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Sat, 9 Dec 2023 23:26:44 -0800 From: Mao Jinlong To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Mao Jinlong , , , , Tingwei Zhang , Yuanfang Zhang , "Tao Zhang" , Krzysztof Kozlowski Subject: [PATCH v4 1/4] dt-bindings: arm: Add remote etm dt-binding Date: Sat, 9 Dec 2023 23:26:28 -0800 Message-ID: <20231210072633.4243-2-quic_jinlmao@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231210072633.4243-1-quic_jinlmao@quicinc.com> References: <20231210072633.4243-1-quic_jinlmao@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: s12YTqd626WDzbIqJs2T7wI9U5pvYY-w X-Proofpoint-ORIG-GUID: s12YTqd626WDzbIqJs2T7wI9U5pvYY-w X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 impostorscore=0 mlxlogscore=721 mlxscore=0 phishscore=0 spamscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312100063 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 09 Dec 2023 23:27:17 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784878977608335723 X-GMAIL-MSGID: 1784878977608335723 Remote ETM(Embedded Trace Macrocell) is to capture information of the executed processor instructions of remote processors like modem. Add new coresight-remote-etm.yaml file describing the bindings required to define coresight remote etm in the device trees. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Mao Jinlong --- .../arm/qcom,coresight-remote-etm.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml b/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml new file mode 100644 index 000000000000..4fd5752978cd --- /dev/null +++ b/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/qcom,coresight-remote-etm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Coresight Remote ETM(Embedded Trace Macrocell) + +maintainers: + - Jinlong Mao + - Tao Zhang + +description: + Support for ETM trace collection on remote processor using coresight + framework. Enabling this will allow turning on ETM tracing on remote + processor like modem processor via sysfs and collecting the trace + via coresight TMC sinks. + +properties: + compatible: + const: qcom,coresight-remote-etm + + out-ports: + $ref: /schemas/graph.yaml#/properties/ports + additionalProperties: false + + properties: + port: + description: Output connection to the CoreSight Trace bus. + $ref: /schemas/graph.yaml#/properties/port + +required: + - compatible + - out-ports + +additionalProperties: false + +examples: + - | + etm { + compatible = "qcom,coresight-remote-etm"; + + out-ports { + port { + modem_etm0_out_funnel_modem: endpoint { + remote-endpoint = <&funnel_modem_in_modem_etm0>; + }; + }; + }; + }; +...