From nobody Mon Feb 9 19:37:51 2026 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 E1EF230BF5C for ; Tue, 23 Dec 2025 12:33:46 +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=1766493228; cv=none; b=lyd5USOL7Vnzhhn7Vta+QWEA22QHtXjGKAA7Y2v8gxtHpBGuF8inYbFhchfWi3RvLPCAFrb6QU8bZxEvZSKIKOQ5NGjPxCBlhK9eNftmlMESd3EZCu0gvmKYASmA6A2iMGiJcxm13qa2xjCFPaVuQ+KZxXqkR1ll9QPou3N3bdY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766493228; c=relaxed/simple; bh=hqh0NA/7LUUbnoPyHkpb6aJUstRQUnXCGHG5seXrRKM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=alX8/Vx7+hL21KsGyR5IY3Zds4F1YSAixs7pAyFQwXcpWsgSaeZORKRlCNZQYtW9hdPN7DS/WYw8KAGAhCziV1Er1gZB9f9OL8Gd5avZBM6v17Cl+Tx8h292G+UgbLyO57Yh48P5EUPa4e2g2hx1lOvXRw3rRVftNL0lI3rjq4A= 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=OuHLIqI8; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=PlEujr5O; 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="OuHLIqI8"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="PlEujr5O" 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 5BN8YcNK2747324 for ; Tue, 23 Dec 2025 12:33:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=2QFJ4sRCSjI RUF6KSjeGSsEFmTIfdcXI/Y6g41538/s=; b=OuHLIqI8x1MWJGfhzvINflacZMx +ePD2Z8cazUOnQuWdp6HGbaZW5j+bMApb8OxsrithMkIaLsrUkwqnH8ZUmpJZVe1 lXKP1BzdOHrt8sCKWSa6KKm69vZweSovtAC5k4bXm4FAIldJcGiJ4HjRsTxdgUPb JdJhaQAuOOLiL8ZR0P686/estr8pd4B4NnVVLg/EptTVMEI7ECIbBNzC2bDuJzaV RyviJz99/Ca2HkSCsGf4Q5PJYsaijFljEX9tAiwIzLX6RyL2I17vlADIWL1LWIPg 71rYSHo1awYl1Vz9gWUnzcz2Hyk6wKww8ZxDZg2oq6yPBljw724RDoKH5cw== 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 4b7h5ct2y3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 23 Dec 2025 12:33:46 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-7b9090d9f2eso9376536b3a.0 for ; Tue, 23 Dec 2025 04:33:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1766493225; x=1767098025; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2QFJ4sRCSjIRUF6KSjeGSsEFmTIfdcXI/Y6g41538/s=; b=PlEujr5OgaonjaMvL3QBryJHvrgaMX9Xc/vahDBkKSZsXavQo3Xo2X6CNjch81z406 h+I7EGEk2cczGQWmnTwT7r/gCpa8Y7oBjFdt5COxTRwQuMLWRUey+j3sGDmFoHXYOAMy joEDZeZpsgw+YTesBqh8hUGL9hWDP2STI1POdDxQp62bq1zvHrO4VS2IV++GXyILXr25 xUP5Yh53o2yLjbCJBbv9QHFaIgxFNZyPGg8g88LmdYrw+Cg3pnVw2JpGc+C3y4DXpenQ bFOKejTSi1Db8jJGaFzcABruKuGsPOwGvXUIfc3rpZKG/c7qfGeAVSXLB3eI6+3n7HrB mLdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766493225; x=1767098025; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2QFJ4sRCSjIRUF6KSjeGSsEFmTIfdcXI/Y6g41538/s=; b=kdVqatrVzV5YY0yA7F6hkI4AnRWKArJMpiqjSYHLBSQD5TeCzSZ4rmDmSmIF0a+luJ Wz62e/mpV0lJDCTdPt84JJ1rg2uwBjDUDDQGf08nBANEMtWNy12dLoONC4V/Hp15GI/S PdyS8NeAwdVBpWKQ4fjkgH9MHLfvMkAcDJlvcQJX9A+amSnbauRQBBunWEKw23CLIlIi zFI0FRTE0BAj0zJZD0V1fUSjHq9/xnTmNYRTPpiZzsgJG3b0cJcizdNDqv3u2ZQ8cayR 1G/QynbXSD+knswdHAUYzFm/SF/Yq7Idi484z8pdafwwMQo95W5Mw7/z1pV356+tGja+ ByFg== X-Forwarded-Encrypted: i=1; AJvYcCUNkhdVx4BWhHcHVRj9cMI8kxj1RZ71yVL0wvt+lvo0l+lDK5qWZJ1ndV3lgoGbwvheAzpDHrLsQ9w6r3E=@vger.kernel.org X-Gm-Message-State: AOJu0YzqARL+MpILeCUYoMAd/bsgKTspL3jF1wyHH8KzprtiMfRZ/DRK 17KPDq2YtzZ1SraGZeWGFSHQgFU1iwSNoLf4h4NZevj3oSnFGwy66I4C2ISE/SXg3CHgpWhmCOT 1gY8ADtwHek2hfnbchmPncbRfGrCaIBL6dwbe5/WlIaTm9rmsn3f4kTx3gHrYOSUGo4s= X-Gm-Gg: AY/fxX5WYuxY9X1f6zOTAXiVe8ZNUpVAOsVySmg78eWv+eWBpova8xRx/tJgsxkDJaz ghLlkK+4Mqcc7hKBW8bzGgFylbIWVlGiFjsMwd38de58ij3uBEChBpFDa7iIIlITjts/A9U7XlE UUNNFD32oWkgVrFKg6NtgqOXQD0jzXtPxUC277RRQdyzR3P/v08Og7iWxXe6DTMXejeDyzUKqB1 dMgdQE0jeq1dqdTUX+Y4dos1uMWci7DUf65nTQ2uS+dO8xfLa3d3l9cWyoN3F6Hohy83AwZZ0q1 Wgp8sUShJM0F+4I/eMLjdDQkxqkeLBbGN+D+tPDy6pnGouLCPZzt90VBuNWy1PxOGU3LMUAc5y6 bz5MtDxu3XTv9ULXg8yj9TbFJm3S9rHl0yRy7kIo= X-Received: by 2002:a05:6a20:975a:b0:35d:53dc:cb61 with SMTP id adf61e73a8af0-37cba052f66mr542367637.24.1766493225231; Tue, 23 Dec 2025 04:33:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2xBlIuxkENGpa6zV3sK+E4w9okraYPgPzc/6GjO9cnf7MOcxTF5wmQSxsSXvR6RdkR++LLQ== X-Received: by 2002:a05:6a20:975a:b0:35d:53dc:cb61 with SMTP id adf61e73a8af0-37cba052f66mr542341637.24.1766493224673; Tue, 23 Dec 2025 04:33:44 -0800 (PST) Received: from hu-gkohli-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34e921b39dfsm12936044a91.8.2025.12.23.04.33.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Dec 2025 04:33:44 -0800 (PST) From: Gaurav Kohli To: andersson@kernel.org, mathieu.poirier@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, rafael@kernel.org, daniel.lezcano@linaro.org, rui.zhang@intel.com, lukasz.luba@arm.com, konradybcio@kernel.org, amitk@kernel.org, mani@kernel.org, casey.connolly@linaro.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Gaurav Kohli Subject: [PATCH v1 3/8] dt-bindings: thermal: Add qcom,qmi-cooling yaml bindings Date: Tue, 23 Dec 2025 18:02:22 +0530 Message-Id: <20251223123227.1317244-4-gaurav.kohli@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251223123227.1317244-1-gaurav.kohli@oss.qualcomm.com> References: <20251223123227.1317244-1-gaurav.kohli@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjIzMDEwMiBTYWx0ZWRfX+GdKWbd/aFab LcDTM3URqZ8bFDq6DO4UU9A3VvE1Uwr9mcftOwI87ecaLAMbnMNz2qyeRNRIiIdTrB/71i5PFsu SgfxJgXLmh9Ftei1dhfuuU8kY8RB+n9wvBrXAJE8Tg6M/Rjb4VWRa8uDTmqFOmMJz/mShkw1WB/ BMdn87SJAw120YLI0vU+wYQ6IIx7XbYfNi0WszvUfb9TPWFw3Osq9ES7ujtH8w//iXEjJ6REcTO WJ88vVPB4PTnTO+/PKCJIyUxt/a0MKJn/wc2yH4lU8uHP1DvfgxwrJfSX8b7gVPQ3lBaOmV0ecA t32Pomtz2EUrwbZxEa37nroELC39q82cfIoysBkoV5lMMIbG/8y/eMulIV03Sv0D7BnMbXSAyZT Rl7isF8mJGoVTuxhoVXa9vK0ohvy618OumqBHxEr/kYgS2ZW78WU0+4BPJo9htYt7VQcKyhzxqK rixmE+/Nnp13yMzIm0g== X-Proofpoint-ORIG-GUID: Yj084ZWi6yXMEh9bTfopp5o2bDY1czOC X-Authority-Analysis: v=2.4 cv=LeUxKzfi c=1 sm=1 tr=0 ts=694a8c2a cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=gEfo2CItAAAA:8 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=NXK8_YvQBftZ-6IfvBoA:9 a=zc0IvFSfCIW2DFIPzwfm:22 a=sptkURWiP4Gy88Gu7hUp:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-GUID: Yj084ZWi6yXMEh9bTfopp5o2bDY1czOC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-23_03,2025-12-22_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 impostorscore=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-2512120000 definitions=main-2512230102 Content-Type: text/plain; charset="utf-8" The cooling subnode of a remoteproc represents a client of the Thermal Mitigation Device QMI service running on it. Each subnode of the cooling node represents a single control exposed by the service. Add maintainer name also and update this binding for cdsp substem. Co-developed-by: Casey Connolly Signed-off-by: Gaurav Kohli Signed-off-by: Casey Connolly --- .../bindings/remoteproc/qcom,pas-common.yaml | 6 ++ .../bindings/thermal/qcom,qmi-cooling.yaml | 99 +++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/qcom,qmi-cool= ing.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.y= aml b/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml index 63a82e7a8bf8..bbc82253f76b 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml @@ -77,6 +77,12 @@ properties: and devices related to the ADSP. unevaluatedProperties: false =20 + cooling: + $ref: /schemas/thermal/qcom,qmi-cooling.yaml# + description: + Cooling subnode which represents the cooling devices exposed by the = Modem. + unevaluatedProperties: false + required: - clocks - clock-names diff --git a/Documentation/devicetree/bindings/thermal/qcom,qmi-cooling.yam= l b/Documentation/devicetree/bindings/thermal/qcom,qmi-cooling.yaml new file mode 100644 index 000000000000..90b46712d241 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/qcom,qmi-cooling.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2023 (c), Linaro Limited + +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/qcom,qmi-cooling.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QMI based thermal mitigation (TMD) cooling devices. + +maintainers: + - Caleb Connolly + - Gaurav Kohli + +description: + Qualcomm QMI-based TMD cooling devices are used to mitigate thermal cond= itions + across multiple remote subsystems. These devices operate based on juncti= on temperature + sensors (TSENS) associated with thermal zones for each subsystem. + + Each subnode corresponds to a control interface for a single instance of= the TMD + service running on a remote subsystem. + +definitions: + tmd: + type: object + description: | + A single Thermal Mitigation Device exposed by a remote subsystem. + properties: + label: + maxItems: 1 + "#cooling-cells": + $ref: /schemas/thermal/thermal-cooling-devices.yaml#/properties/#c= ooling-cells + phandle: true + + required: + - label + - "#cooling-cells" + + additionalProperties: false + +properties: + compatible: + enum: + - qcom,qmi-cooling-modem + - qcom,qmi-cooling-cdsp + + vdd: + $ref: "#/definitions/tmd" + description: + Modem processor temperature TMD + properties: + label: + const: modem + +required: + - compatible + +allOf: + - if: + properties: + compatible: + contains: + const: qcom,qmi-cooling-cdsp + then: + properties: + cdsp_sw: + $ref: "#/definitions/tmd" + description: + CDSP software TMD + properties: + label: + const: cdsp_sw + +unevaluatedProperties: false + +examples: + - | + remoteproc-cdsp { + cooling { + compatible =3D "qcom,qmi-cooling-cdsp"; + + cdsp_sw0: cdsp_sw { + label =3D "cdsp_sw"; + #cooling-cells =3D <2>; + }; + }; + }; + + remoteproc-cdsp1 { + cooling { + compatible =3D "qcom,qmi-cooling-cdsp1"; + + cdsp_sw1: cdsp_sw { + label =3D "cdsp_sw"; + #cooling-cells =3D <2>; + }; + }; + }; +... --=20 2.34.1