From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 1CB462C11C6 for ; Thu, 30 Jul 2026 18:33:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785436386; cv=none; b=a+KsYETue3TEf9rebaXAvwzQL48jixb6qXpCA9ylyILOJFUTb/hP8pLWQ0D/7jyvAvmieDFP18H6M6p9FSWSk4Y8N3k39D6Jt4B3/gHmzL3XOWPHcfjMAi60aLJ1hebvqZ78Xf5ePGOIR7glwV+wAZ1rIqvS0SUHBX5OVXMbWH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785436386; c=relaxed/simple; bh=9GL9zOg1tTAq0eSz/9z4Dmh04tNwFLnMOkIe2M+pKeo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=i+y9HjUYU8xOzlCwCZXDBNaH6YRNJObPNL8Z98m/GSYXIXGYoEbC8++sYX/vFzV8P2u6n+gt7Inc1J1L8qnHF8aXq9x+5z9/SFLDWRENyhkMsE8g+hfcJQv0pkIAKFUWglcFliLMANlOEX69IBd/AVPJeo+bRvhvkARrdzwufX8= 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=inHHOty4; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=eXtdYqdL; arc=none smtp.client-ip=205.220.168.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="inHHOty4"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="eXtdYqdL" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66UGWQJm1179754 for ; Thu, 30 Jul 2026 18:33:04 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= ahCtsMBdVYMxFMkXHrGydOopNEKYRJCw12sUjfq9kyk=; b=inHHOty4DMOCuK6Z RLQlI5eVa+CeBfoemThSmEdZb9GnXmrP/A5N2ZmhETtDROrtYJPhjRDB/Dv8BjZ8 SxDVuhOnyUrPuMboBG9xYmB2KrlqSs+wIEHQZ5L/YRgo3BAKavjuVXGXy+/THl+M x0JdYywKAoCU/BVqidrU9c3sF3QcbhuhlnF2ggJPP+s4g9NGSb27euj6FH/0F1fO akGpdU/bQPRrZJwqWIOKMjYwNuAFFDeBMWIbnZXwr/qSkP7T4YzhiSgLVrELjhkP 2qVAgp4L9HhMX5oR8gcKLnTYSmWcXA7/WZUWpHhIKZUYzvGG0Sf87cpaCPikwyJR hd8DLg== Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fr8n819p8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 30 Jul 2026 18:33:04 +0000 (GMT) Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-81e8a76a273so4717157b3.1 for ; Thu, 30 Jul 2026 11:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785436383; x=1786041183; 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=ahCtsMBdVYMxFMkXHrGydOopNEKYRJCw12sUjfq9kyk=; b=eXtdYqdLGDUYnI6yJQJ5YawFfj+99YBNsuS3dvXIEBGjaCbS+oKhyfTC5QgoNFCVUX F3fMPemY1QToV+jO0aIXpbVGpBMV/daKSGOftEO9/a9XY5J+uFOY5h7IX6WtpzwZoePv TFGdGiPWwUHlQgYhzL1Hi540s76i0pq0bOd2118B4hnjVfyPHAPGGeju1n3gS3GF1Hxl f88Bg22Xv3kxXOO+SaLTQdtu0N4Yfbsqy5taMmYx0xaOoNRGCZt+HQVtPkyvWC+X3qf3 LhNiWFa5noPQQJfwc/iUClz8+AFtPTCTm29K7hXwD2DnZXFWDLCtIpFh/SHiqIihAhxZ JwZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785436383; x=1786041183; 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=ahCtsMBdVYMxFMkXHrGydOopNEKYRJCw12sUjfq9kyk=; b=hn6juJ5OOLLP2gwIGYhigqtypwbBYVUx/RnTyH09uTQ09Zy3sy+nTna1UnjgqtvHZW b6VUTRyC8iLbP+VZE7KDLP38V+mpo4gd3+ncy1Z3Md9tqY7uKVm9TI4rT7/Ii2xePzxo yv0/mH9+njeMj5HmZVe3XbTaSSkKKcrJBuHN6+UxSFry5AhGN4lQLCSU3C7mpvMqKX75 osoRgjunFDuZXxnsS8ThNeTYO9KYnGpqrAkyzVcIh4tizzmVoDGiL5bC8WpjBYwl/tFX I47MkAH4zpByNFxUkTQMtqj1ImVtGYRDCTxyuh1iblxkW2fPpZ8viE1wM6KsSJwR7nug ZckA== X-Forwarded-Encrypted: i=1; AHgh+RoIr/XSnRY7z463K5ChtwVaV4QOdYDyIQoMW7LTTkxdiXGWyOaY+D1v159P/7lE4w3ZaqiOP2r7BtEIAWk=@vger.kernel.org X-Gm-Message-State: AOJu0YymFeWdPt2RWAi72us9HwrdHxZaMVX5nVDeH4hykWgaynDctsew 2IYC724skOWaLpqF6A3tiAyGqkymSXFbUpjpQwliSeI7kpguxLqU+9kujZPYvrnw+lEVeepu/29 byCwkEiaIPo4N7VU1L+hOyDeJahLDJ9ecOGwKAA8eZx+QUK+es4uG4j4t997DHC53cJ8= X-Gm-Gg: AR+sD11n/CvInUx3hooQmBIf2DHSpaKmq0cstKLgXebZ5T5bjyDArsGJ7T2Y//e7sVM N3nu9keDQAT/diUrdwdtv/TNsL0fNm1YiwdjMIKxG+JaiSBrUTUrOvd6hxSIlsbeEn7d3k2gid2 SJLr40DgpqSETyKS93q90gyG0w2ZYWL8SAqRGqy1ReTv4rX4sHVajzJvyr10KtH+Nw3Mraso1bA RVGTXcqDNtSqoa5BXB7XDRDvpXWi6kJcDOWCvTER4A5c5Bu1MyHf2aGaFvisjz6Qlyhsod6XVv3 gF++wVQj42wwpYvwB3RK4pU6/KeQJ1LIpQWqhFB9NrD0SE37DLmpeOMsWF3ORTeeRl4xuLoouXN 13FT0pD+oh98Im5rgKM+QE7LLE2fSDGMuXTtM+RsrV+3lWIm8fCYx8wXIri2uu5SR X-Received: by 2002:a05:690c:6210:b0:81d:6af3:b9b8 with SMTP id 00721157ae682-81fb8aec869mr25686547b3.60.1785436383432; Thu, 30 Jul 2026 11:33:03 -0700 (PDT) X-Received: by 2002:a05:690c:6210:b0:81d:6af3:b9b8 with SMTP id 00721157ae682-81fb8aec869mr25686187b3.60.1785436383000; Thu, 30 Jul 2026 11:33:03 -0700 (PDT) Received: from ?IPV6:2a01:cde0:108:24ed:2206:62e9:bbc4:c360? ([2a01:cde0:108:24ed:2206:62e9:bbc4:c360]) by smtp.gmail.com with ESMTPSA id 00721157ae682-81fb8a882f8sm15241967b3.23.2026.07.30.11.32.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jul 2026 11:33:02 -0700 (PDT) Message-ID: <78ed74b8-a810-4253-af7d-65bddd223fd7@oss.qualcomm.com> Date: Thu, 30 Jul 2026 20:32:58 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 1/9] dt-bindings: remoteproc: qcom,pas: add #cooling-cells property To: Gaurav Kohli , Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Amit Kucheria , Konrad Dybcio , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Manivannan Sadhasivam , 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.pallikunhi@oss.qualcomm.com References: <20260727-b4-qmi-tmd-v6-0-973cd3a226af@oss.qualcomm.com> <20260727-b4-qmi-tmd-v6-1-973cd3a226af@oss.qualcomm.com> Content-Language: en-US From: Daniel Lezcano In-Reply-To: <20260727-b4-qmi-tmd-v6-1-973cd3a226af@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzMwMDEzNyBTYWx0ZWRfXxNTVRrf4hJ2E FeSCFmX8HKIJQR/Bjt2zqbIfb1xd07iXJ/BTxH6XV8skui0Aps0LVUOhP8Ak7wBausJh+1Wq0R8 iZnLME8oW50fHx7eJYVUK7L/ObDMWNQqk3kL5N2RnYHUOdfgJk6ffsFwJRFaycCN1pqrP0CPzJk tWuTYi9gvwdAbHuqde/O5hBuTVVGb2Np34FY6iB1lr7FhKlKZlU21ze0riarzk/H5PAy4GXQeuJ lX3AF0fp+mSfGhuUFA//trRFBOv+PJlkM5nVoDEr/hirerhBjbUvWJ6ZldVIg6TmUZqdJ4pp62p ks5rToXBilddOxlILjlSekQTZG1cH4BvqW7f207OfIulfXbjXnZ+5ZVcvKcdTMNeXLo8HdFYVw7 9tVTmJYC7Dzy6xeVlAYx7NyOFG8nK1lz4XMwiQkyfY1AHuFvyOSaECTcq9GFpgz6HnIZbk4yGOw zCiV+rKbydGonKQIVpw== X-Authority-Analysis: v=2.4 cv=DNq/JSNb c=1 sm=1 tr=0 ts=6a6b98e0 cx=c_pps a=72HoHk1woDtn7btP4rdmlg==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8 a=YquD-R9NUEwuMsMzHaIA:9 a=QEXdDO2ut3YA:10 a=kA6IBgd4cpdPkAWqgNAz:22 X-Proofpoint-ORIG-GUID: wR__LeFVmHz2LUoGgs1zp9hdUSiz6rzx X-Proofpoint-Spam-Info: AW1haW4tMjYwNzMwMDEzNyBTYWx0ZWRfX8Udb0PgpVh+z oczuy9EX3JIwIz54LfYH0F4INu0WYy2aCzVcZC0c1qewjhIorYn+UgQt/5ZNfl2D352Y8ebv2CQ Xkg8ge/I0GtLFybLuOtALZdSSPY0WZk= X-Proofpoint-GUID: wR__LeFVmHz2LUoGgs1zp9hdUSiz6rzx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-30_05,2026-07-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 priorityscore=1501 suspectscore=0 clxscore=1015 impostorscore=0 bulkscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607300137 Hi Gaurav, On 7/27/26 16:22, Gaurav Kohli wrote: > 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_id selects the TMD endpoint (for example PA, modem, or > CDSP software mitigation), with constants defined in: > include/dt-bindings/thermal/qcom,pas.h > > Example usage in a thermal zone: > > cooling-maps { > map0 { > trip = <&cpu_alert>; > cooling-device = <&remoteproc_cdsp > QCOM_TMD_CDSP_SW > 0 THERMAL_NO_LIMIT>; > }; > }; > > Signed-off-by: Gaurav Kohli > --- > .../bindings/remoteproc/qcom,pas-common.yaml | 9 +++++++++ > MAINTAINERS | 1 + > include/dt-bindings/thermal/qcom,pas.h | 20 ++++++++++++++++++++ > 3 files changed, 30 insertions(+) > > diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml > index 11faf655f530..f75cab6b4ed9 100644 > --- a/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml > +++ b/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml > @@ -77,6 +77,15 @@ properties: > channels and devices related to the ADSP. > unevaluatedProperties: false > > + '#cooling-cells': > + description: | > + Cooling device with three cells: > + Cell 0: Cooling device id as defined in > + include/dt-bindings/thermal/qcom,pas.h > + Cell 1: Minimum cooling state > + Cell 2: Maximum cooling state > + const: 3 I'm not sure it is necessary to re-explain what is the property format as it is already described in thermal-cooling-devices.yaml Other than that: Acked-by: Daniel Lezcano > glink-edge: > $ref: /schemas/remoteproc/qcom,glink-edge.yaml# > description: > diff --git a/MAINTAINERS b/MAINTAINERS > index dcffe9fc54f6..3f1e2bbf7099 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -3423,6 +3423,7 @@ F: drivers/watchdog/gunyah_wdt.c > F: include/dt-bindings/arm/qcom,ids.h > F: include/dt-bindings/firmware/qcom,scm.h > F: include/dt-bindings/soc/qcom* > +F: include/dt-bindings/thermal/qcom,pas.h > F: include/linux/firmware/qcom > F: include/linux/soc/qcom/ > F: include/soc/qcom/ > diff --git a/include/dt-bindings/thermal/qcom,pas.h b/include/dt-bindings/thermal/qcom,pas.h > new file mode 100644 > index 000000000000..f603bddef9a8 > --- /dev/null > +++ b/include/dt-bindings/thermal/qcom,pas.h > @@ -0,0 +1,20 @@ > +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ > +/* > + * Qualcomm PAS remoteproc cooling device indices > + * > + * These indices are used in device tree cooling-maps to reference > + * specific TMD devices provided by PAS-managed remote processors via QMI. > + * > + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. > + */ > +#ifndef _DT_BINDINGS_THERMAL_QCOM_PAS_H > +#define _DT_BINDINGS_THERMAL_QCOM_PAS_H > + > +/* CDSP thermal mitigation device id */ > +#define QCOM_TMD_CDSP_SW 0 > + > +/* Modem thermal mitigation device id */ > +#define QCOM_TMD_PA 0 > +#define QCOM_TMD_MODEM 1 > + > +#endif /* _DT_BINDINGS_THERMAL_QCOM_PAS_H */ >