From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795413683; b=Grf/mqB88ANKUsmaU+xuMPWA7IsoRg1BDbRiYxWwzZzhN2kcprb7hVDWVmzOr5vDXeUP tD80Nqy0ZZHR/Xoccu/dMspNbVoegd9WliJTp7tKFf9+mkeQsLCPx/rEbRfHCieQkIlCb kmTqGBaanutezV8YwhfANPB2cmOln5mxn0KJ1RaNlov6ngoYD2bV+Mn9cNM6RWWA9SA78 Bc5LdJiIwqPemhNJhxvKQY9vsuuivQQ8atYSFGfifbDwuNjbzxhpj/gwyhQwmYMjJtFaT NmZ6Kk/Cj4ToIGHkad3obW5i9nNLhSsCBDIrBIlHk4dh+i+V6d81mj2CLQlGIAgLQ2Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795413683; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-Spam-Details-Enc: X-Authority-Analysis:X-Proofpoint-Spam-Info:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=z6xMM+SJMdqhpJSgog3XdQq/Hd6xOFzXoUOLDwQEggk=; b=V7XRM1JD9bV43e9e812ZmeAD9MVSaph4XWeAIitG2mENrQR0RRUhVucf0eLV9kVHl8vS 2r6JnxSkQOmWGtg2FpF3kamXar2DIhYbEa6FWrmhDy06Us4XajjMDOOPBlQ1zBr48xiRC K6TRNbuD8lJF439Ew6oa/tkGQm8SUcBWCLE5EmFut3VbLmKUWKVQt7JO+mfuozT2ozQUq gI+fCEMhZRs5tSUOi97zdlQLgumJ6J+A4BG429ra3akD9uKGhLxlF6hIBlzU4hgMlULN8 oQjezY9e+dK7xhpkKI6vvvVT3+1w1Pa3Fie5p42/wjp75cGXEZQVaEZ0Hcy3HsaiaVg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=XY3RLwAd; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ZUYtlpQI; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 671F0606A31E for ; Mon, 23 Nov 2026 06:01:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 671F0606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=XY3RLwAd; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ZUYtlpQI Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AN51URJ980238 for ; Mon, 23 Nov 2026 06:01:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= z6xMM+SJMdqhpJSgog3XdQq/Hd6xOFzXoUOLDwQEggk=; b=XY3RLwAdMNJLfOoQ 33PUtc4h41WLDZBNOHlBUAW5DD/OCUG8oUOuE9bhRti4z1EG+tQL+WALKvOVTFnG 5IsWyzs406U5JUR+cLkupOaEmv2c1fwoCkD1jRke5NfPIfXeR7XQ+t2dIgMv9p7/ o/sCeDU57fUf3asVmJyhB3uk0qRzSiuYB4+1cE8SLRFuUV8Bsx1UwojHvxbGLV8S rQXLspbDKX3BghQX1rVUN2R2PhqgHdbfA2Mw8Mmdd+BQABkK31QW3V4aKHz2qsXt xoKBSgrGsa3Xr79Evj8/qfel5UW0akjGP8k2CDPrGRwf/PSo58SjpohAtKPS0Iiz qXba7w== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j32mgdg5t-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 23 Nov 2026 06:01:22 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3b0c7ab2427so2237300a91.1 for ; Sun, 22 Nov 2026 22:01:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795413681; x=1796018481; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=z6xMM+SJMdqhpJSgog3XdQq/Hd6xOFzXoUOLDwQEggk=; b=ZUYtlpQIRO968iMCf4w/j1FSgNQaOCR64fmaDUsz/8FdrQJyUtPe1w556E5FTDFSXq rToQCOijUa+v2egSiEWiRmHm3bK0X77L5jz4koBQVJRjDyKg9s89VllQz14kRpWC7uuq oOhm/0blNqPA4mc9stH1zI/5Mp7E5kr8BBBUzR0w1MbASyvdqU9CCGPzyraC/+KTNkXP kfRcGpjqRMc9jCHDkxKYaw/fvN9feeIGKXfL/N1B8JM8Ekwezjj2l0gCV8OenAgpOq3m B0xo+bzjzYKmbmWrzwuA9/CrvwmXN2cDPf4fSXiab9mMNmak7ybmypBU62ZvlfdnGlHH o45g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795413681; x=1796018481; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=z6xMM+SJMdqhpJSgog3XdQq/Hd6xOFzXoUOLDwQEggk=; b=QOwxMP3XvMAWUXllgvI5G6CV1mMoVLYHlz7YFdnd2bjuMhKnlLvIWOn2OuCv/0Sjxk F1Fg0EH8SSkgJEO98r0mQ8hKQ2WyPJbCp7pRptIhOgz9XYAm3s+YFALuY3szpVWE8x9A 0I+kEX2ZlQs3SxxkoSqetZOZ5I4kUzn4PUQQnfQgeDJPfkalvifxtjtqTArfoDQKFNcd iPLzw31GQv7bW9AJ6TH/8PJ9dqDYxLat1BviIyf9HAjTKiiJ9xf/tgva//30IkFgut2C G3nkntuZL/32gns0t+Drdl505CFQwg+MPr/Kzr7+9MwD4MTdUnDmHw9GGzur0N8i8ZDz leqA== X-Forwarded-Encrypted: i=1; AL+hErGw7d1sH4DLRcxPE1iQD3R94LtDu5sn2FHh3ADy6MieUkBRG5j0pw+VaZgXndkeZYxTv7HX547/jzB/@vger.kernel.org X-Gm-Message-State: APuU4Z/+5QdcM1BLdBLz/WMw0noHagYufBXusEzcB2hYXBazXwLHg6YD Aqbhsv97BeRXStBKAwjmRLSj2lr0NWXr23OnoOhAERBsDd6kOtP4NpFL8qEpaqzPnbpnjvnxwX+ KJNE+BhUn8PCaQqZK8TzC76oOaiQLUjXZ1asg+LmBUlYf3oA+usud9vbWVMPOSTOu X-Gm-Gg: AZFdTZfWhguXbzR++26nOZmHpODkIQiFXqTRDMm7T6C+EPklJwa/1z88wrsfhm0zLMk +nTp0G86v3UkPYp717RHCzzlnnAJV+UKhc4gVMka6GYRcSMpt0pGmvK54HaowbkYIfC/JEjakZN pFf0ZE5VwiaDpUcbqnB7J0KKPxa3ut93tzh1e9YyoG3e6+zWb7CbK9wIM3zngmsK7Qi0gpuosLm 1LkTKSglxCIAzFaE/x1+dseUQwuAMeSGc7SaQkp/x7YTwDRKEkjB8LBVJKaLyKHNcy4BJqqsobT 5h+UDXSJbRahH1WWVPNZAl8NO8KuIImn4t9PmxhLFIslXwwk8eSvCoOEVUdWV0/jAD02tPKRPKV Y7o+EaM2HzoZT8jOHC4uwrvPrYWSPZFYIMS1PC82QLw6fL84rGMDH4xJX0Mw++VTKFexYhQ== X-Received: by 2002:a17:90b:4a48:b0:3b4:1884:984c with SMTP id 98e67ed59e1d1-3b41c7b573amr9780741a91.6.1795413680928; Sun, 22 Nov 2026 22:01:20 -0800 (PST) X-Received: by 2002:a17:90b:4a48:b0:3b4:1884:984c with SMTP id 98e67ed59e1d1-3b41c7b573amr9780713a91.6.1795413680447; Sun, 22 Nov 2026 22:01:20 -0800 (PST) Received: from [10.64.68.243] ([114.94.8.21]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b41adcfe16sm16426806a91.17.2026.11.22.22.01.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Nov 2026 22:01:19 -0800 (PST) Message-ID: <20276ae3-9b8c-46b4-9ddf-ffb39bfc3b0f@oss.qualcomm.com> Date: Mon, 23 Nov 2026 14:01:12 +0800 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 3/6] dt-bindings: arm: qcom: add QDCP STM source To: Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , Tingwei Zhang , Maxime Coquelin , Alexandre Torgue , Alexander Shishkin Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com References: <20261119-introduce-qcom-qecp-feature-v1-0-b1a730d2c57a@oss.qualcomm.com> <20261119-introduce-qcom-qecp-feature-v1-3-b1a730d2c57a@oss.qualcomm.com> <30c74f5e-cd18-445a-964b-b839fc077b25@kernel.org> Content-Language: en-US From: Jie Gan In-Reply-To: <30c74f5e-cd18-445a-964b-b839fc077b25@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTIzMDAyMyBTYWx0ZWRfXxu7bVFFN8Q2O gqxnH7ajKcIpjdGxZ4GbFSRvWPCdu5zW/yJB131CjZB/9C57JHwxLn0skG9qnr1vn1frH2lcRR3 eKRhHThRkYC2Lsw0krckemWqH7F+/yNey24yeQRDHYko9kKfIVdAp1GuEXwPDORAyYSpiyS6cPi PZ5hwwYT6W7R7KzrppQYBBwXucghuulgpWePx/2k2Dyj8klYQDp7tnY2f41bJsx/AvG8Fl3D41t x5sRIT4cOmJZ0RTryzsJ0qMxPgiFf9FRT8ZdbVeiDz4SSErA0v8v7JzfemZkErCGcDax9YEdRoq kTaBEXPz6k/qsdGLB24k7oWb46/ml4NQSWHuu+i9AbcYgdx0rdE9vvDaQ00syGryOWtA6bGS5Iq 49Ro2uCXzRvdJ0KhWpH2TJpJReOVTcw01rHOxcQZ9mnEx4ij3yps4+X0JR4FjR9c1o6RT1KDX/Z 77mFS9FchLOU1Tl/nfQ== X-Authority-Analysis: v=2.4 cv=OM+yTiaB c=1 sm=1 tr=0 ts=6b03d6b2 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=Uz3yg00KUFJ2y2WijEJ4bw==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=q_CrVRYiZK5X_reCBHkA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTIzMDAyMyBTYWx0ZWRfX+XfNtsTdoSrh rDFKGPEtwZAaR4omp9asdCuuDJmv8UApsUDgDar+jpGMQLNwcWC6gzr13JHA2LOJGpA1w6vdSHF ok9Kzjwh1YG+y8JvJl9xXvtdhZaB0cM= X-Proofpoint-GUID: eAhH5GcGCxMooREv3IuoeE_It882XWrA X-Proofpoint-ORIG-GUID: eAhH5GcGCxMooREv3IuoeE_It882XWrA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-23_01,2026-11-22_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 adultscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611230023 On 11/19/2026 10:02 PM, Krzysztof Kozlowski wrote: > On 19/11/2026 10:01, Jie Gan wrote: >> Document the Qualcomm QDCP-backed CoreSight STM (System Trace Macrocell) >> source, for platforms where the STM control registers are owned by >> Qualcomm Embedded Co-Processor (QECP) firmware instead of the >> application processor (AP). >> >> The node describes only the STM stimulus aperture, the MMIO region the >> AP writes trace data to. Firmware controls the STM through the Qualcomm >> Debug Control Protocol (QDCP) provider referenced by the qcom,qdcp >> phandle. Firmware also controls the block's clocks and power, so the >> binding has no clocks or power-domains properties. >> >> The output port must have an endpoint so the source can be connected to >> a trace sink. >> >> Signed-off-by: Jie Gan >> --- >> .../bindings/arm/qcom,coresight-stm-qdcp.yaml | 111 +++++++++++++++++++++ >> 1 file changed, 111 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-stm-qdcp.yaml b/Documentation/devicetree/bindings/arm/qcom,coresight-stm-qdcp.yaml >> new file mode 100644 >> index 000000000000..f365ce2450ad >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/arm/qcom,coresight-stm-qdcp.yaml >> @@ -0,0 +1,111 @@ >> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/arm/qcom,coresight-stm-qdcp.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Qualcomm QDCP-backed CoreSight STM source >> + >> +maintainers: >> + - Jie Gan >> + >> +description: | >> + The System Trace Macrocell (STM) is a CoreSight trace source designed for >> + high-bandwidth trace of software instrumentation, made up of memory-mapped >> + writes to the STM stimulus aperture. >> + >> + On Qualcomm platforms where the STM control registers are owned by QECP >> + firmware, this binding describes an STM whose stimulus aperture is mapped by >> + the application processor for data writes, while enabling and disabling the >> + trace path is delegated to firmware over the Qualcomm Debug Control Protocol >> + (QDCP). It references a QDCP provider through the "qcom,qdcp" phandle rather >> + than exposing the STM programming registers directly. >> + >> +select: >> + properties: >> + compatible: >> + contains: >> + const: qcom,coresight-stm-qdcp >> + required: >> + - compatible >> + >> +properties: >> + $nodename: >> + pattern: "^stm(@[0-9a-f]+)$" > > That's RFC, so maybe you do not expect review. Explain in cover letter > as the most important part what do you expect from us. Acked. I should focus on introduce the design idea in coverletter for RFC. Thanks, Jie > > Anyway, drop, I do not see how is this conforming to DT spec. > > >> + >> + compatible: >> + const: qcom,coresight-stm-qdcp >> + >> + reg: >> + maxItems: 1 >> + >> + reg-names: >> + items: >> + - const: stm-stimulus-base >> + >> + qcom,qdcp: >> + $ref: /schemas/types.yaml#/definitions/phandle >> + description: >> + Phandle to the specific "connection-N" child node of the QDCP >> + provider (see qcom,qdcp.yaml) that owns this STM's control registers >> + and services the firmware enable/disable transactions. This must >> + reference the connection child node directly, not the top-level >> + QDCP provider node itself. > > No, the QDCP is just part of this device. > > >> + >> + qcom,qdcp-source-id: >> + $ref: /schemas/types.yaml#/definitions/uint64 >> + description: >> + QECP firmware source identifier for this STM, used to address it in QDCP >> + transactions. > > Drop, we don't allow instance IDs. > > Best regards, > Krzysztof