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 1CBBA2C1594 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 (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66UGWfO12556046 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 4fr8169fhn-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-81aea53d559so3052177b3.0 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=pwD/qS1SquosAcVL9hsyJQg1ocsyPIcemBWeIWxMlu62+bShY5KpgauuWYli/uV4z4 6oSlJBwUsaOLgzmIBDTTPqzjg3cdJTR62fWsyUwq3VWTcd9pchZk3NUQbZc+arbMzfsp mP2/sTVl7uckw4eu5jYToioazmKJwNqW0Xmkz+DAXUW2mRKTj9KPOUqrWq4527NcwrOm 8sgrU554qjHqgPDqmYvCOMZt//AM3TzGibSseeFbx0CNtk5+C7DxsdPAPFhl2G1GEmHc cZGRA06N8vtDQ+DAjwcJGbyc4k6YBmjXJ4Vfi92Ak5Ve+tgSgnqoyUVpnzeBtJXAH+SF CQDQ== X-Forwarded-Encrypted: i=1; AHgh+RrkVsdpzqQ1pNGcaYIFMdcU3WRzS+q2UqOo2EMtdRVc91QGaCNXEyzYPMHFFB9y6s8qU7C/Ozs01g==@vger.kernel.org X-Gm-Message-State: AOJu0YwdSRyLr1yalBfhWuWzlfdN8LEyEpWa4ZyeKGgWU/UG7r8SVyxL Mlx8kJa7X7rlpc75CJxjZPA140pqCaQvnwX97Jwy4IBtbdTc6w8owMiRWlh5Sp0yQnU3uxpNQ9y 7lfccrqMHZ7Fj9UuNW8HFYH5YELCq4P0o91xS3Nsyj0i3XzDY7n+sSN5Yj1WEmA== X-Gm-Gg: AR+sD11E4Mc1ICUNE0teUQzDyYk9ff8hfnAZNTDy+cjy58fH1IaTJSy8Q7VHCbrctZB wuD1RLR52Wmc5ZfLytpZOub88v++gXdFXY2pR6xfWuxoKSZapEf7idhP0bXgt5aGNvOryRjHNiC /2iuNEkUtavtFTxT8gsEUJUx+oCbDYfqPgV4ccJjfKQejoUXiAtPHY4+NoxZOAc4UfzMXiSrYnh WcYPkZyDVIyZEeSoSo/i2qqMaIjtkxh2Co3JlJMCz0gswtREoARCVf4wdhBPCfmby/tI/qXqPpF x7YlCgQjep8U8ElC/imWvMO5Kv+M4Ro1ZzJEK8W4jjSyaUCOaMf7zj3DHaEbEDpFv2TYlapNLYl 1VnipZkGFFFTiT9Tsq367hwbsBvr7R45uFgQH+9l8Ir09gz1lMsvu2MSuYtWayjJ/ X-Received: by 2002:a05:690c:6210:b0:81d:6af3:b9b8 with SMTP id 00721157ae682-81fb8aec869mr25686517b3.60.1785436383430; 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-pm@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: AW1haW4tMjYwNzMwMDEzNyBTYWx0ZWRfX/1RxNB1J41Nw TcrexFsnUwXphLV1vs1XUqIMrtgcNidxa5ztuWkIb3DPfhPgUa61vZBq42oDzDDLbKqzvuXghCk csz8MgZEdPhgAYiU+37CEmTsvSW7NFyUAaupNNnu7SZDXxpcPMra+56+ZIyZPHdtZnlVaiYtePG 0SghOkIkxGhZZlRyeZo5HA9NicWz2DL+BhkUpPuLmbcNomARR5SGaw5hD50DVrTcckkL3iQ6teP o05TeFhdDJPgHp20sIpAP4KvYRjObs/tvvkqyPAqlJFFSpnw66dQ/HfV+DyR3KHcqOCyZcHMgCk s/oCSYbkPhQKhbIkO43CtiNfFIYy9rBOzVg5cB5XfoaEOtYZZVTSonLHI4yKImLY5GEjw/ZTQ6y 0JOaV9YsoIGQgc7z54B0AnpnpudxSrlboFR/8scbH2z7/1OKf+xAbp9JJJRWZnyekJ50yB5pvrb qs9WpfIzMBWLd+ZQm3g== X-Authority-Analysis: v=2.4 cv=LIlWhpW9 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=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=YquD-R9NUEwuMsMzHaIA:9 a=QEXdDO2ut3YA:10 a=kA6IBgd4cpdPkAWqgNAz:22 X-Proofpoint-ORIG-GUID: HRgWePQm7jGID0vchJVt1dLkxEAjC45S X-Proofpoint-Spam-Info: AW1haW4tMjYwNzMwMDEzNyBTYWx0ZWRfX5v4PUt8e2KxR PFRbFSwYVzx8vhfKW2fij5+83296kDYYKDJh38zGhZQHL+qtDbm4hL5dp7TbJbCZl2fst2ifTON O0VJdZdinHQDih0A707EK0Ko8Dj1W6c= X-Proofpoint-GUID: HRgWePQm7jGID0vchJVt1dLkxEAjC45S 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 spamscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 malwarescore=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 */ >