From patchwork Tue Nov 7 06:09:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mao Jinlong X-Patchwork-Id: 162278 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp42308vqo; Mon, 6 Nov 2023 22:11:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtOyCh93UgIQ8zsilUS2wxJYP78WSRoztJ0d7ME2oZo2JsSGX+sczCOlbIdUCYBmT0ydfc X-Received: by 2002:a05:6359:2eb0:b0:168:e306:ff72 with SMTP id rp48-20020a0563592eb000b00168e306ff72mr27571770rwb.8.1699337503504; Mon, 06 Nov 2023 22:11:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699337503; cv=none; d=google.com; s=arc-20160816; b=TrzsNvSBO8RgFY965eihhwvHUFawUHQYwNB1BfeunbvVBbBk6iUcKFP7ZYRmkt7PNe b0Vs/gL9DnFqqPwTzWbQLjaxROvxDG68n8j9QT4CMAw7vQz5QKaPwJhG8TM8FDDGQq8m yz+DrMKbKgtZ8ywwcpcJzrVUGqehraZ76/Sy4Mah2CQPuJb0UG+/gpSGsL/iT3EgCwIR FoYIzP3mkIr3HJnsytP87ExVtGu5XXomr1YRvj8nr7/AjED6sSh5Bvpwx3b8Ze7Ylack W8+mHR7HGpOFFrgs/ejBIDZLuFGYiuBiaGBIjNtbMw01z1KVWoZFvIohkUrj4IoETwk+ Cqsg== 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=PWY6YRKU0IXTGM891QJ0ZVdPq5v+3dJUoTHNiXEumQc=; fh=EAMKooV1XaZP1lHZnXND1HPIgQQL3X6c20KkMk7S4cA=; b=ah/2tDqWyA+XfV1aW3Lc9e5Rm/OI7TWbiE4KBl0V5+tTwGLgCiA0a6llL8YZukRO+/ oRWASRgdkta3EQDKKXQHsLxEmnobXNE9WKxTSYKlzHShofJ2mqt0H0WjANAY2VNeMbQS SrLwzy9YolXQCxuIRwSB71lwb1KlIOTFO91fTiacslws0r8mXhZSzy5o2/eqe/CMMslL I2BLRkwJb5XZ1hTO1aQTdmACrGsUIkCDnZxbGdXKppb+NMDVnYWY+isg5ndGvqYt60/N MYbBYc5vV19y3lDyVMAxK0Vnr45oA9oLRVBwx3yFmoRA/IA6XiN9VLhpFoF3NZtRtd2r CM0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kHRosIPe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id n190-20020a6340c7000000b00563f72935e3si1321361pga.608.2023.11.06.22.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 22:11:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kHRosIPe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id A709680789FC; Mon, 6 Nov 2023 22:10:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232596AbjKGGKP (ORCPT + 33 others); Tue, 7 Nov 2023 01:10:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbjKGGKL (ORCPT ); Tue, 7 Nov 2023 01:10:11 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA8E114; Mon, 6 Nov 2023 22:10:07 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A75d8vw031673; Tue, 7 Nov 2023 06:09:53 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=PWY6YRKU0IXTGM891QJ0ZVdPq5v+3dJUoTHNiXEumQc=; b=kHRosIPezjln5uVjYGmk/TgVk7F/xLci5chBTySTA/3nQtYWKeLDo6JLi9p8dMVjzJa0 J3O7DeZ4UhDuz90F7qRf2osLJIQKwTrSFrbsjv/uJZiJovcGVXNZjKDNvw/wF5tyO6UR VJUYWU7AIJEEx1vgwKyJuabTdnXbJdhAvLI+VTH9lj/I234flt36o6j2F8ayvQvMbxRm otphDqa1lMXKHOyYo1Gw3TqZnk0ekZKDwk8TMchuadc7UJeJqK8urJutgJL8sTOOoSUT PShoDsexKs/ij7qzNpPQqBkrxssvBu/s7nLOYkf4P+WMQ+5a+uBzRdXC/Y6VuQ4w/7XK Xg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u72r29nas-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Nov 2023 06:09:53 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3A769qwB025512 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 7 Nov 2023 06:09:52 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.39; Mon, 6 Nov 2023 22:09:51 -0800 From: Mao Jinlong To: Suzuki K Poulose , Mike Leach , James Clark , "Alexander Shishkin" , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley CC: Mao Jinlong , , , , , , Yuanfang Zhang , Tao Zhang Subject: [PATCH v1 2/2] dt-bindings: arm: Add remote etm driver Date: Mon, 6 Nov 2023 22:09:35 -0800 Message-ID: <20231107060939.13449-3-quic_jinlmao@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231107060939.13449-1-quic_jinlmao@quicinc.com> References: <20231107060939.13449-1-quic_jinlmao@quicinc.com> MIME-Version: 1.0 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: J787pD3w99Bjv3VsOX3KgS6hvR0STSAG X-Proofpoint-ORIG-GUID: J787pD3w99Bjv3VsOX3KgS6hvR0STSAG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-06_15,2023-11-02_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 clxscore=1015 phishscore=0 priorityscore=1501 mlxscore=0 spamscore=0 mlxlogscore=883 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311070048 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Mon, 06 Nov 2023 22:10:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781884522215728775 X-GMAIL-MSGID: 1781884522215728775 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 | 59 +++++++++++++++++++ 1 file changed, 59 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..04bb57b48d96 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml @@ -0,0 +1,59 @@ +# 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 + +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 via sysfs and collecting the trace via TMC sinks. + +properties: + compatible: + items: + - const: qcom,coresight-remote-etm + + qcom,inst-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Instance id of 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 + - qcom,inst-id + - out-ports + +unevaluatedProperties: 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>; + }; + }; + }; + }; +...