From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B73E358367 for ; Fri, 3 Jul 2026 05:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783055051; cv=none; b=L2T5m4fv4yPJrmWegAdCh+t4Pc0Eop0y2c8jYti8QHY2KHhS8KsgdM3QOysqO/y6uvX87tTrrErOPmgHpzFe2QRm+PI3hWPRu3SU8TBj9mnh1v9fny1wIze/T8FVdDvrTmW5GxGLLBb+2H9BajRnzkT108cR98n9xOJsdD4DIho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783055051; c=relaxed/simple; bh=AHfQqxqvUWEpKg7THeGPiYVTmEIZJi6on0qcJOPK+0M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=f18HiMGx+lmFScQlQafZRKCmy2sKKXqq+xKQLodhmg6EpS2FKGvxXy3Cwo7lwrGLM1OmS2U2XhjuK0l8D2cr6AhBUfSnwJd82T/fdnhd58K3wn3q+m4lXWGMZnomK83Uf3IqXvwzfAP4aE0UPM+h3PY0HsE712xtlKRTx3Aj4+M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=b2nQYXfU; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Zus1RwLY; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="b2nQYXfU"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Zus1RwLY" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66342iha2687174 for ; Fri, 3 Jul 2026 05:03:56 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= mMrBdqNXSo2PZU6K/xNM4G+bRIzioC1tVR0BqX8fGXQ=; b=b2nQYXfUm2eGaYpi VZ8gZEPjRadBwTJIrJgb/q1hux53hTu6YV0UkHgy0+2XOdXiVxRrOM7Hlrun+0OT cYpBW62VsoI4QwlmGaIQLZbynAXl9cE3RNlfgfsMBlptECgHgldYCHSAPvWDvEdG sph6Aj+0ng3UfOXzIvrF8OMprBI5vGANv19ypXQpxMhd0oTJD+Nw3yvhFdWVhQ3G JNcWzR+ZY4u5/TQuZAlDjlhOzIlrDIjAUyNIBEZyYonX+/fDIwx2KQlNtU78vPkY Te2XDCzw9afm8PxJDdSUx57HF7OxiH7wzdSyBF+Lr+oSZ4L72Nvw06KC+OAhRNT5 QLju+Q== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f648n0hr3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 03 Jul 2026 05:03:56 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-c8895156101so334127a12.1 for ; Thu, 02 Jul 2026 22:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783055035; x=1783659835; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mMrBdqNXSo2PZU6K/xNM4G+bRIzioC1tVR0BqX8fGXQ=; b=Zus1RwLYPx1s9tviEY+z2iTPv9tz+rR93s8XXFG76xqpbd65qCqSsDQ25u9em9ecbc qirgFt3NEF07vEeNz+CVQ/IMb+CUBvDkPIBqQI6niyTJMDazwVIIigJGsrT06Idxs91c 4mIqYyQQ1NzVmlfxSBWZMI5nf8nn+WQxmXh58WlTMxiT9nRuBSWk+/b+/msKXIr1+3Ka zvrz4TILqLGYdJt9sLhP13PuqfndPrFK0VndvO9RzQ++wiSu6gzQ0ccq9Xz1dSKSZ9PP HVNMYtP39s3rdcDq18lxnTl/BqU7c/jZVdjb87RB6jLIOaiCmhyTEOm9JO7V8V21sOs1 yo/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783055035; x=1783659835; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=mMrBdqNXSo2PZU6K/xNM4G+bRIzioC1tVR0BqX8fGXQ=; b=hsfmKZ4ka+7pPMgKtlzBjl3E6s2dnFdjHkyKoJAkK9+VqCQAIUh6SgXvwTd7GfjsWm 7Xa0JJ8VKOZJ5uD767TieRVZhV9Lh254eUkWusY/esfz8YVT9ZfJWjPfCVPEnbzN769K G6R5X3OgPB0qZXKy+xDhoOS5YK1Bxyvc/eWfSzLekqhoMMC44VOalkko+LAPpnMpjb56 DQC/W0Sm9sfYHdS4dxBvDMMjig70m8HUnzd4FVtbTDgdBRnZfJWzwDGw/hDe0orpG6m/ GOGfMRup4DpIUCQjzl4ZEqGsIl5NUAOahZgbAHDRZZVeJhEgs3kG4C7x+IMyHROR9Y6O IKoQ== X-Forwarded-Encrypted: i=1; AFNElJ/TdiCX3eAJa1rHa8Ks1EZn7caK6d5Et5BFp6GSFYvM26OJTpkU/of61/kmI1G1r8l3yCpGv561yOY+@vger.kernel.org X-Gm-Message-State: AOJu0Yzn3rmuvR0Hjd92lX7FbTbcevZIlY8+T/Q1uYKlnUFywReh4zm1 uagsKOVEB43aWrtVNGxAE2Wjl+vpbnCOU+f19T4Wo6CGEw+LaAs80XzyTzJlz5qyyNOJK4iYYcU Ec67UzJiA6A3W9Db6WdQEHuszfWmZ0DPp3YcjTtgH/2rZ50EHIbeq+gevhHWAMwFp X-Gm-Gg: AfdE7cmaFdEHBntsvQRT0bWz7ukyjbHvi7CLJdW1UaMn72PpP5lY107cmWy/RlC8GZJ BC+Rtl348LC0yeSD+MiT7xMqLp2nM6lf5llxagDCpYk/NklWu3mBzFaRJEFMPTD8bFqaWUZu5kZ 8czeFrGBkYY2ixN4qShbGxu644rl30bGxs32VaGVnSHTuTP8M+SxCBIV5TmliF23xqVA5MyRGFJ Vwpwe7UGAoLXXr73MTod85OhoVDQkvCC6tasql2R3UylO7pL1Yt8LahqHlaVRRAEMYwCUoXqvTy BXhB6AGzDOzkNG0j7rvIXozVBD+mtFrHAHWPOLUFVgHVbL/4/UE7Yeaw1ORDl7BFhmCXnEjG0AQ dO+Phrf/SItJomL0Ho9wTm+6x4Mnl3j5zYo+ZSfqB X-Received: by 2002:a05:6a20:7486:b0:3b4:65ac:e2e6 with SMTP id adf61e73a8af0-3bfed362212mr10430091637.36.1783055035285; Thu, 02 Jul 2026 22:03:55 -0700 (PDT) X-Received: by 2002:a05:6a20:7486:b0:3b4:65ac:e2e6 with SMTP id adf61e73a8af0-3bfed362212mr10430053637.36.1783055034786; Thu, 02 Jul 2026 22:03:54 -0700 (PDT) Received: from hu-gkohli-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30f0bbd2362sm16771941eec.20.2026.07.02.22.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 22:03:54 -0700 (PDT) From: Gaurav Kohli Date: Fri, 03 Jul 2026 10:33:05 +0530 Subject: [PATCH v4 02/10] dt-bindings: remoteproc: qcom,pas: add #cooling-cells property Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260703-qmi-tmd-v4-2-3882189c1f83@oss.qualcomm.com> References: <20260703-qmi-tmd-v4-0-3882189c1f83@oss.qualcomm.com> In-Reply-To: <20260703-qmi-tmd-v4-0-3882189c1f83@oss.qualcomm.com> To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Lezcano , Amit Kucheria , Manivannan Sadhasivam , Konrad Dybcio , Gaurav Kohli , Kees Cook , "Gustavo A. R. Silva" , cros-qcom-dts-watchers@chromium.org Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-hardening@vger.kernel.org, Manaf Meethalavalappu Pallikunhi X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1783055015; l=2326; i=gaurav.kohli@oss.qualcomm.com; s=20260302; h=from:subject:message-id; bh=AHfQqxqvUWEpKg7THeGPiYVTmEIZJi6on0qcJOPK+0M=; b=UImge96cIdZ4CYD7PRKR4dfZ7NsDhPZlNtKO/+BLXVmJD68rxmIrTitXhlHIyHyjcpNJYfrY0 euRG1xFLIEdDTvmuyWrMOn/QY8QxhxkqjXlKR+tzdlPuLiDBY8vCCtr X-Developer-Key: i=gaurav.kohli@oss.qualcomm.com; a=ed25519; pk=IdNsqe8rWsF6dbpGHfwPEH9zM0nbOdRH72HxUT9qPak= X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDA0NSBTYWx0ZWRfXy7hEeP88WOj9 NZixgGEb0qBaFY0mDY/MsPqk6ZJPpnXD+V1+TVmmh1072pB+vb9lUD+p9hrXMsN5nPkbBYRrdVs nOpRXAdUimVYlmLaPIaC1gzWO7Q6eK4= X-Proofpoint-ORIG-GUID: ESBWgCHSdZl0zdjbKL3FRlb1ZBdX0tRK X-Authority-Analysis: v=2.4 cv=O4wJeh9W c=1 sm=1 tr=0 ts=6a4742bc cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=glLd2v_-c-plxm5TIp8A:9 a=QEXdDO2ut3YA:10 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-GUID: ESBWgCHSdZl0zdjbKL3FRlb1ZBdX0tRK X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDA0NSBTYWx0ZWRfX3oK02QSuRMkO Pm70bY8H1rK/MbqMHXHi98aLFLFb2LJj1Hb4GbgegB4s+NPfro2xaRyxAxtdNYP+lGRHhachAV4 4gD7A1xLLuVCte61NhNjr/SfkP2itgAcsDc+CaNhCJhEju6z4fP5RMTwu2am4DamwapIklxGlcD X5EZToFgNpVe8doowCBE+/g8+gGsvkejMyumGULIr84auV7JGQCwTlAM0shIc+lU613hkveshKY RuvLO3p32VFW6Fu9kcKpImMR7Fn+L0tu4z3+Jf3BMFSVxQcQLT5wo/62+TNMSGt4OdZL5I4JvLm eChQCSUthN31eKg6wxG4loyH9plQlKK5W6RKKuSstEoiouZosgW2Iq9OWhhTh83iVRe+zU7eNyC tJ6QM3MYwlHJJU6S2nHhVQpAI+hwoaOMCkwVJMLttPSeHck9uyAdGCQkjMKJ3g7WbINiWz2f1KY IlKU9FtGQcqkbqYui4w== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-07-03_01,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 phishscore=0 suspectscore=0 malwarescore=0 spamscore=0 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030045 Document the optional #cooling-cells property for Qualcomm PAS remoteproc nodes so they can be used as thermal cooling devices via the QMI Thermal Mitigation Device (TMD) interface. Qualcomm remote processors expose TMD endpoints that support thermal throttling through firmware. The cooling-device specifier uses 3 cells: <&phandle device_id min_state max_state> where device_index selects the TMD endpoint (for example PA, modem, or CDSP software mitigation), with constants defined in: - dt-bindings/firmware/qcom,qmi-tmd.h Signed-off-by: Gaurav Kohli --- .../bindings/remoteproc/qcom,pas-common.yaml | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml index 4607b459131b..ef11371058c4 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml @@ -79,6 +79,14 @@ properties: channels and devices related to the ADSP. unevaluatedProperties: false + '#cooling-cells': + description: | + Cooling device with three cells: + Cell 0: Cooling device id + Cell 1: Minimum cooling state + Cell 2: Maximum cooling state + const: 3 + glink-edge: $ref: /schemas/remoteproc/qcom,glink-edge.yaml# description: @@ -95,3 +103,34 @@ required: - qcom,smem-state-names additionalProperties: true + +examples: + - | + #include + #include + + remoteproc: remoteproc { + #cooling-cells = <3>; + }; + + thermal-zones { + subsystem-thermal { + thermal-sensors = <&tsens 0>; + + trips { + alert: alert { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + }; + + cooling-maps { + map0 { + trip = <&alert>; + cooling-device = <&remoteproc QCOM_CDSP_TMD_CDSP_SW + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; -- 2.34.1