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 C6B6A37F8C3 for ; Fri, 3 Jul 2026 10:14:17 +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=1783073659; cv=none; b=bH9ymPUZi3B/MaSOjrGIRD/xCOyux8/j5ebltmiKnb3VYM294zAadMfVb9MpzpQhwE8dSW+wxWDKN8v5Z1WmsSFQ2FUf+OKQDS9Iz+txc0GWzTm00jlhbzFiyJys04qbpizd+USf84HMdhOqkk77+QMhrJPPB5IdF2NbdqG8yhY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783073659; c=relaxed/simple; bh=OG4yzh9m5tXYU7JzloUdXPR26V6HBgZzOX6TH+TU2F0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HQFAJzUbXOtSz7ayRLvplc+DliWtEt+NcvvOfWawsVp0/crMHpZuEuiDF+Ao52i/4c6kBTuIG8TQl/UIGAmGKEsrKwN9la3EIt8AY+66x7YZX8yMeXi7vDbYxSrQgEBjnDO79GIoFcfP8oxchucfG3BjAQRv72+45YfzRRncuBI= 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=c/snRQ3s; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=V1va09do; 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="c/snRQ3s"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="V1va09do" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6636gvG93144211 for ; Fri, 3 Jul 2026 10:14:17 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= //3AgTE/yNQNqtCsn90+XdpffeOaj61Ucj8VYvhONes=; b=c/snRQ3sHra2mRRR bWBzcIEQ8j6mV72//Koy6uD2Ju1x5jrO1iAnaQrWhvcJ+3rbjIPMJJJnPJflFecM ZTEZpYiJsyX3VJoJZvVpWHdOhQT4bXAc7L34/hrL+mfME/fWMJZRrNvGVSnXcpPi leadoaz6z9KhD9wJLc5CDtXDj39GuFX74hTIEyH5jzmip9BWoZXAIZ4I8ZP+mh6D XK/vOpL15JCfXqpp47VwFsn5QlfUU5/ax5JFUTac7jm24pZp+cmTL3tiwnqnckct CysxPec5rjZWP+bVVV21kgUiljUX0W6mtLBAOAFB0xTEVg+OFRuz9E7LJPiqpJgi PlVT4A== Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f682brs3h-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 03 Jul 2026 10:14:16 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-8478e9c4bd2so491046b3a.1 for ; Fri, 03 Jul 2026 03:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783073656; x=1783678456; 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=//3AgTE/yNQNqtCsn90+XdpffeOaj61Ucj8VYvhONes=; b=V1va09doKOyDgwZoqhIfZMYo9N1KOmnLazew4C0kEtD1IdqTISOwxYrPCIX5F3KiTv QH3dUhXdmvKu+FA3xPBokNxpKzMGJtyoQe1s6l5bA85uszfUnwPn3KsZk9cYS50U7/Fs KmicSVRbiLVzIIiOG5npJSr/By5D/napWyFzWLIoHAkb7BfPh9VUehG8q5hhUeEBUuBv 6m1uq8l3iAIZ0WIVIZsx/GBfZE7d1H94v/E0EV0cIGXzauvX9cF+yIh6ABOVThPH6bQN /g44yRbS4BjYJGWK4DbBFyZnmEE6DO8MXSvWKMiAu5vQarUeWWj2gfEkU9diWVRPMmxy 8T2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783073656; x=1783678456; 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=//3AgTE/yNQNqtCsn90+XdpffeOaj61Ucj8VYvhONes=; b=QW1rJaj/iK4wGPxzWjSSkpHCBQAJ+ilZ4lc0ho865O5+yfuLnPmJzYy0nlP1xGGRY/ a0K6PZ+tCIL/14u9K0DTUaxDMjHBtWhtPRczvWROImE2wiQaBxVDLaUoEfZlRSHK6mz7 p6ylCLhOG6wdl520FdTaf3QzMuhg2rU6LjxHkKaLhszHJJxbG1vSfyTkGJyLX++RNAY/ YBIdrirZrC/kUfQfI0PR6vmS/XVjk14qQ0LQRFGWh4/eeQStuiHK75ia3byWUV97lWt4 Jdqnj10Q3XPft9hYPVRLPnhYy2QpfweIrwHvPgBwCf+bG3bX+CZ4Su6t7hXzrIXRss4M 0I9w== X-Forwarded-Encrypted: i=1; AFNElJ9jI1umZqlPK5YWEqBBJKvGut93iv6kGqv/UYzCRY3M+AtKuAAoGeh9zY+PnlpbI524dF3vit8Lwc3j3tE=@vger.kernel.org X-Gm-Message-State: AOJu0YyftPm/z7MoB2W5GYXg6ELETUhXec7526IvPXfARSh3zhoHWxTG 7uIsP4QD4I0nq4TZJrSzrwujcPYbg8HudUGbmc3AL9ypJqt5Hj3cAnatrj18JXErKeXeIpIOh1b MUtKjwVuXGs6wb7In06p9k+YP6BNSyF3hgpj7BHRAIo/v8RLryWUDLJMa28kEqyYp0z4= X-Gm-Gg: AfdE7ckMeWwGCri6jAV3a74PFymt88gjjTOqgKFpgfO+HrLo9rk5sTqCQcFKMUKQUeo VActEaDFzf1hAQ6E7xXO1NFQ4+Skn6XUMrBLV2NMpGsiBTZByX7LBXWT3s6h0bANGlskcpw1MWL RzwnI3a1wNt2phf8EiwbGqf2pf4cpTEgKXdZTAe2kO1Cv1A4iujFTtOYK6wQXVdCVJu+AsjPEgG X2maoGXPPlsNA/ncvTgekQ0dClxOmtQzQICsig258GTE3MDsEP4l3WUQToxlalkLzN6TSS3zHsJ FztggUpVpMp72PSK4+f1TqeEoSUPXe+1uD+TI5ps1y4CFqorvzq03aDB3nW97lR3pRCC9qqwkgz 6gpDpFGUpRm6BJswp69KOML3Ssr2VdyMwVGwKmXg0sQ== X-Received: by 2002:a05:6a00:b53:b0:847:759e:f61c with SMTP id d2e1a72fcca58-847c519357emr9585750b3a.47.1783073656236; Fri, 03 Jul 2026 03:14:16 -0700 (PDT) X-Received: by 2002:a05:6a00:b53:b0:847:759e:f61c with SMTP id d2e1a72fcca58-847c519357emr9585712b3a.47.1783073655667; Fri, 03 Jul 2026 03:14:15 -0700 (PDT) Received: from [10.217.199.117] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847cb6e42a3sm2824907b3a.12.2026.07.03.03.14.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jul 2026 03:14:15 -0700 (PDT) Message-ID: <54885628-ad41-49a8-8b39-33035753ac5b@oss.qualcomm.com> Date: Fri, 3 Jul 2026 15:44:08 +0530 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 v4 01/10] dt-bindings: firmware: qcom: tmd: add TMD device type constants To: Krzysztof Kozlowski Cc: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Lezcano , Amit Kucheria , Manivannan Sadhasivam , Konrad Dybcio , Kees Cook , "Gustavo A. R. Silva" , cros-qcom-dts-watchers@chromium.org, 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 References: <20260703-qmi-tmd-v4-0-3882189c1f83@oss.qualcomm.com> <20260703-qmi-tmd-v4-1-3882189c1f83@oss.qualcomm.com> <20260703-humorous-blue-agama-4b668a@quoll> Content-Language: en-US From: Gaurav Kohli In-Reply-To: <20260703-humorous-blue-agama-4b668a@quoll> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDA5OCBTYWx0ZWRfX4mqy+woSlKLL JS5p/lBRhSQh8C+XNjJ6uHJACMhWZb5+wXP2fqCS8LjFXGQnbYhnO1WOTFVTiqVyOeLSdXGad0s jDe/C+Zr68KfJQ95P3+ZsbhDnmnnSqMwmn+SWElVvnK43ty8kL31bLP1eSuDPVuQnoz5AUOk5ph yhHN/51k2h7HGa/a7iPyW+Wu/yvCPxHxNhJ9FfD/Z+HcktezNC5cCwbA6vGaSk7j+oRken3QZFe GRnNPa8wG+rtYpBbP7scNT8aj5KPbsAsaQF6fIhrJO46Ixbiq9uCbRTEX9mXch17YSK12EjneNf nH+HIHSFCvuKh0ziuz5mVHISP2CyrMYkYyHzu6WActcnM5RJd3bJ3vFv9WpBGkYVd6qzFIa23t5 TCsPNQPeJD4AyuqJVF17AWDTdFR1TLmISqnAVeSq3b2Ov68Krapa+WJ28BnchY+/+l+8HjjTdxF YUICnNH92oH408I/sWA== X-Proofpoint-ORIG-GUID: 8vw9IBU4xmUL1UCw4_Z5os1pia3CqaqT X-Authority-Analysis: v=2.4 cv=cc3iaHDM c=1 sm=1 tr=0 ts=6a478b78 cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=FDCMAMj9kxRoxUuqswEA:9 a=QEXdDO2ut3YA:10 a=zc0IvFSfCIW2DFIPzwfm:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDA5OCBTYWx0ZWRfX7z1NJR2C1np2 bBTTf176tfacPnk7iwZNttjnYY5/TDIL1UDImIMKIDtAwx9XCDlt5quV9/b2uhxpYazJgFJ26kX X2bwLkrkznqAK1rG7rB9hfz07RG5/ws= X-Proofpoint-GUID: 8vw9IBU4xmUL1UCw4_Z5os1pia3CqaqT 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_02,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 adultscore=0 bulkscore=0 priorityscore=1501 phishscore=0 spamscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030098 On 7/3/2026 1:17 PM, Krzysztof Kozlowski wrote: > On Fri, Jul 03, 2026 at 10:33:04AM +0530, Gaurav Kohli wrote: >> Add Device Tree binding constants for Qualcomm Thermal Mitigation >> Device (TMD) types used by remoteproc-backed thermal cooling devices. >> >> Qualcomm remote processors expose thermal mitigation endpoints >> through QMI. These endpoints can be registered with the thermal >> framework via the `#cooling-cells` property on the remoteproc node. >> >> The QMI TMD protocol identifies devices using string names (for example, >> "pa", "modem", and "cdsp_sw"), while the DT cooling-device binding with >> `#cooling-cells = <3>` requires numeric device id in the form: >> >> <&phandle device_id min_state max_state> >> >> Define common TMD device index constants shared across currently >> supported platforms. If a future target requires a different mapping, >> additional target-specific constants can be introduced while preserving >> existing DT ABI. >> >> Signed-off-by: Gaurav Kohli >> --- >> MAINTAINERS | 1 + >> include/dt-bindings/firmware/qcom,qmi-tmd.h | 20 ++++++++++++++++++++ > > As explained many times: Header file is not a separate commit. You need > binding using this. thanks for review, will club this with binding patch. > >> 2 files changed, 21 insertions(+) >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index 57656ec0e9d5..ffd85fd1dd80 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -3410,6 +3410,7 @@ F: drivers/firmware/qcom/ >> F: drivers/soc/qcom/ >> F: drivers/watchdog/gunyah_wdt.c >> F: include/dt-bindings/arm/qcom,ids.h >> +F: include/dt-bindings/firmware/qcom,qmi-tmd.h >> F: include/dt-bindings/firmware/qcom,scm.h >> F: include/dt-bindings/soc/qcom* >> F: include/linux/firmware/qcom >> diff --git a/include/dt-bindings/firmware/qcom,qmi-tmd.h b/include/dt-bindings/firmware/qcom,qmi-tmd.h >> new file mode 100644 >> index 000000000000..73efecef0f3c >> --- /dev/null >> +++ b/include/dt-bindings/firmware/qcom,qmi-tmd.h >> @@ -0,0 +1,20 @@ >> +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ >> +/* >> + * Qualcomm QMI TMD (Thermal Mitigation Device) cooling device indices >> + * >> + * These indices are used in device tree cooling-maps to reference >> + * specific TMD devices provided by remote processors via QMI. >> + * >> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. >> + */ >> +#ifndef _DT_BINDINGS_FIRMWARE_QCOM_QMI_TMD_H >> +#define _DT_BINDINGS_FIRMWARE_QCOM_QMI_TMD_H >> + >> +/* CDSP thermal mitigation device id */ >> +#define QCOM_CDSP_TMD_CDSP_SW 0 > > QCOM_TMD_CDSP > >> + >> +/* Modem thermal mitigation device id */ >> +#define QCOM_MODEM_TMD_PA 0 > > QCOM_TMD_MODEM_PA > >> +#define QCOM_MODEM_TMD_MODEM 1 > > QCOM_TMD_MODEM Ack, will update like this QMI_TMD_. > > Best regards, > Krzysztof >