Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp136410rdb; Tue, 5 Dec 2023 00:29:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDKmikD784bt9/gGy2d8ld/yka8Rmmfd6EQc4k+qLnpteO3+uEILT8tKhyfzswME0eEWBE X-Received: by 2002:a17:90b:4a82:b0:286:b2ca:4bc3 with SMTP id lp2-20020a17090b4a8200b00286b2ca4bc3mr907794pjb.32.1701764990458; Tue, 05 Dec 2023 00:29:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701764990; cv=none; d=google.com; s=arc-20160816; b=fBONs18PI/e0sy3TnOlnI0As3sMqXKbf1mSwaqjH4wSLBCgXQhVUB2m1etz3xyJrrV Rq6fAqlSfwe9grZ43EIng/DmsLg+OOCYkz6Ne7JxUbZFOILqRnugkKSnfpSrkRLUsn7E LBzYaEbF0f6/jfErNkLsmfLTQRrRutYfNqGOwUiE+dL6qy84oemTaXtQH4tqqzPqgfF5 KJdrfbF7GrE8cPGjkFIW0cDH8gy8C2bMO7Lo/BW0RXMEGaE/trmHh+kbf8nV6V57Ejhv N3QkOv/fvlYGrLEGvtsUoaXa+otrVj7tO3doKDRjFwDNubUZQ3Qzjw9xcLZ2F6zy4Kul iRww== 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=4+jFZk3wOHriTAMwHwz1K9rKLnBzZeujgPEFVzfEoEc=; fh=MygUNZBKnbpPGGcbCKyN4KGYKr5495f7YoOHGRsWT18=; b=fIYY/Jytkyzxkv5nnoJcT0dtBn/V7AbApm1nxMit+6+TB5CvyHBMPkzfwnhkmA5SD5 /SqAP8+pTcuHYuLBSuDMsqZcro63KfI9s9+yjPfas4rYXUx9NtDDGFrzjGuwXmQl0nki TTPyxbfQ+nCgCjGsFeAX9tXwGB+pFFkmI8BSwNHaPrm8yG0QEyD7BW9MH+b4/An5JPhK QOxsnShNfbQV8oZrwIk3Z5fkQFc+m5LM6ZBIALPv8QtXT9RdYytIeS5CN9Oy/1xWIUtF /Rwq/gBm9JZRwV3vZC+zue1iJSlmCPwy690onTZrgs023pEcuTFCyBD0K7glrsyloxU9 3sLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="av1GxG/u"; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x20-20020a17090ab01400b002865781c521si5580071pjq.95.2023.12.05.00.29.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 00:29:50 -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="av1GxG/u"; 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 2A5A18040EA9; Tue, 5 Dec 2023 00:29:49 -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 S1344771AbjLEI3e (ORCPT + 99 others); Tue, 5 Dec 2023 03:29:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbjLEI3b (ORCPT ); Tue, 5 Dec 2023 03:29:31 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D136AD3; Tue, 5 Dec 2023 00:29:37 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B589DvT025762; Tue, 5 Dec 2023 08:29:34 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=4+jFZk3wOHriTAMwHwz1K9rKLnBzZeujgPEFVzfEoEc=; b=av1GxG/uF7+tpLH3L022Nk/xn66XUxHzxQZoZ7yY5lJ8Z60NBx6pQcIX/FENzL4zy+OZ pdNpDiOWKD+4RWvj/BBZWc9OF1w4MYxzh86IgVztBJRHUfVvQb9CdwMO0ejDhHyDuYBs OsntiADmGEJpmOmKQRp6HBJcNGYCQpvfCKRXWRmkqfO4jKuor3QUNyucapZAUUoXb7rz dlTNPhUnclYvBdpdac/5phcvNnUm/+cGrORi/14jU7WM5t30N0Ceh+JwnmLyGJDKfbBk ETbo/swje/1UQKPMhfu0cdwxVAyoO2/21GxOITMRPCTCH6zfYHmJ/xC0cMr3t//NlHhj xQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3usfu7a647-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Dec 2023 08:29:34 +0000 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 3B58TXZt028117 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 5 Dec 2023 08:29:33 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; Tue, 5 Dec 2023 00:29:33 -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" Subject: [PATCH v2 1/4] dt-bindings: arm: Add remote etm dt-binding Date: Tue, 5 Dec 2023 00:29:16 -0800 Message-ID: <20231205082922.32149-2-quic_jinlmao@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231205082922.32149-1-quic_jinlmao@quicinc.com> References: <20231205082922.32149-1-quic_jinlmao@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: 2vfNNuk8BaKHYhAyBYrRR1rnBo2CW9LO X-Proofpoint-ORIG-GUID: 2vfNNuk8BaKHYhAyBYrRR1rnBo2CW9LO 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-05_03,2023-12-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 adultscore=2 clxscore=1015 malwarescore=0 bulkscore=0 impostorscore=0 mlxlogscore=717 priorityscore=1501 mlxscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312050068 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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]); Tue, 05 Dec 2023 00:29:49 -0800 (PST) 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. Signed-off-by: Mao Jinlong --- .../arm/qcom,coresight-remote-etm.yaml | 60 +++++++++++++++++++ 1 file changed, 60 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..bc76cda33620 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml @@ -0,0 +1,60 @@ +# 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 + + qcom,inst-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Each kind of remote ETM has its unique instance id. The remote etm will + be enabled/disabled on remote processor based on the id send from + ap processor. + + 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 + - qcom,inst-id + - out-ports + +additionalProperties: false + +examples: + - | + modem-etm0 { + compatible = "qcom,coresight-remote-etm"; + qcom,inst-id = <2>; + + out-ports { + port { + modem_etm0_out_funnel_modem: endpoint { + remote-endpoint = <&funnel_modem_in_modem_etm0>; + }; + }; + }; + }; +... -- 2.41.0