From nobody Tue Feb 10 07:39:47 2026 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 5E83D35E543 for ; Tue, 27 Jan 2026 15:58:08 +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=1769529492; cv=none; b=Kvlmb3f6bpFGKMNQl+TsNK3rhtv4psaWcCzDlyLHQG+xFBc/aNJvJXb77ZV1trFQ3hGVWlEJGgpItNu9o06r9zsjH2pq3/uoJEzFX1XC4SOYpBsvrmJWbox6A95x2CrujLvk2RaemTvjNYiXihm70qbL5hu7bKoThqrjm9a5t/E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769529492; c=relaxed/simple; bh=75Hv2ud2YpxXHB3QLKMzr5BAhjhniJy//FaHGuH283c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=rLjGw6rrN3rZ+yALzcbWPeaZWVoFyEOmqSb/6PkcNg7Phl3a0bNDSGUsFot1tpNKgLio6CbKaL4KRCvR6pbjUDV/cDj/jIwsrSi97G9WTRo71KXdMlNi4zneM3a1eOu9neh7Z/zyrCGZzrLeS3uCqXWDouTuezSkZDtpJ8QxH54= 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=MCQnY1Ov; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=HIKMkPAb; 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="MCQnY1Ov"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="HIKMkPAb" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 60RA8r9W3857955 for ; Tue, 27 Jan 2026 15:58:07 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= x7DhjQ0phVpxDU6sKo7qBxnzRhjAFpM0+5pWd1KBa2Y=; b=MCQnY1OvOIuLXyHW 30F1Zx2EyvfiSzuyK9yi6yzsxDRmgGrUeg6sPhJRFLjJNpaRwJ6/aO3gLxz0Py5W lasreqt+mzqH0xREHSmMM8YlFT90TPm274Ws2/PP/IeFeQ8EOFVoLXqY/Y1CXKAM 2xLEYUB1zgtbwG9U6PtdkPFFELV4cyifHvoHZdIfAzC+jV96V1fZUV5YPv/ezG+C TL+K7/KW7oqKThWseLr52/Yxasw+Gk3/RWxfnO8mC08zVlYvpl+4ebfS+yCpDKdn LESrxuV5nWkHUrGGAGGwqbkBQorGXTx271cXpOJjtdP9BVW0kYU2CE0Cu/5s2Vr8 YG9Ahg== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bxffs3adg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 27 Jan 2026 15:58:07 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-822f926eff5so2368008b3a.1 for ; Tue, 27 Jan 2026 07:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1769529486; x=1770134286; 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=x7DhjQ0phVpxDU6sKo7qBxnzRhjAFpM0+5pWd1KBa2Y=; b=HIKMkPAbIwgMBst1s43c6hIFhPtDJnyxlsCzVR6KW5IrJKOdNQHQQdGt0A5wdzRNOY 3131wiuB0vnfDYqGRcWIJemS3mWw2pqNTqn8QRwzc71dn9IaVf7hMuar6EljVZD8InoU Paa2lDtumS1bC4fwT7t+y+oiwhGbgOE8MxhafDnWcfaIXdJ/7mV0gzwEFaY0FmOJI5U8 mTN/+bKpIDBtU55F3wEn8VQRkDftzT+vNe/Dsle7wGN3Va8sdHaPaAOf7MmLmQR9nkOI VbwHYRswzlXvAsqXMba36WOtyckMY3ZKlgThCqNOpBGDv9dZ0KGrYPWMp4dstGEvfIoZ UuXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769529486; x=1770134286; 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=x7DhjQ0phVpxDU6sKo7qBxnzRhjAFpM0+5pWd1KBa2Y=; b=pQLAFs8ndVClX675UkivEJFnRb859WbOjKGrg6xymhzzMcxnn/TFcGGL4U8kitZ2Ak tFFJ9Cur05D/ve77a9vdZ92fLrvc/IzEU4qOgoMKynqfsdR4wo/yXkALZA5jSvNMkwjR OpVtgAKrgG8B9TqdSuWZn8rdISPUsdRdgWmQG3u1Gu+PM0qpO3Hq+69apQln4LlIDY+o r5uBw2xeZRnmOWbIdWc3+bXl7kq2tbhTXCZescjeLPWs55jKbe7JzOA/LTuR2suvAF6d VRx8Oyq6guKmNeBWPQRTL2rTDsEE5nHWngO4Nf9Iq2jGz/J+75M2eyulSAZsn2F8Z9aD LPIw== X-Forwarded-Encrypted: i=1; AJvYcCWLTX2bcAQuGcfD1Bjh9yADuMKfRxciCwZEASZukb/8S7Ff/NLtzDDDm3rTowOIc89TPOV2bNvntjd6IiU=@vger.kernel.org X-Gm-Message-State: AOJu0YwxVbP97icPYjoYfsyPne9mopPgISuzvW1lJSrpCegLYzwC6tmQ 0Lpvn+AErvYePGzv0NHgmuEzSlfMo+3+LrxFYXhiFptceJJ0KRS/Gb9P15K8yBJ8OBn20JPRK66 59OEkex0lo8RqkpHiZt6rHs2pNYgk+a8hNUTYk+quiXUKMdNFvgD4qvUUpiDKtOeUP64= X-Gm-Gg: AZuq6aJcHGtap+flYDpljPjx3oNZo6JFhlaNPH8yMdAp3aMvkgvmKj023LkcchZmwte b1fgOY5azJRCfvb3epBQuTqfTuyrV0oNFaryALJUbzP2cAdCfahgTh/Vg/V6QDRTaxr0T6sdfMw fegbkisXTYL25oDCdUtt4UAaBmquMzm38eADcHgEswxNy0cYN8MtKREubPyb+g+IvPTp3xoNh2k fs4cNdxbJg1ku5e2yVSF92rd7lJHL5Gpd1PoZinEp+of3R7hfTNMRsef6mgC5UH3BWQwEAKwJ2Y 5s3a4YWrc+o1tlloJoHWUyoLo79RgIv6SGfzZTB96iWuMueHB9r8ofsIg1ZBkY8w0aQ1Vv9uZ+B uhHjdTQMx6RbpywavyVSO9vd78qFljxtdDlAsXz0= X-Received: by 2002:a17:903:1a90:b0:2a1:10f6:3c1 with SMTP id d9443c01a7336-2a870d719ffmr25767625ad.26.1769529485849; Tue, 27 Jan 2026 07:58:05 -0800 (PST) X-Received: by 2002:a17:903:1a90:b0:2a1:10f6:3c1 with SMTP id d9443c01a7336-2a870d719ffmr25767395ad.26.1769529485130; Tue, 27 Jan 2026 07:58:05 -0800 (PST) Received: from hu-gkohli-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a802ede745sm120577465ad.44.2026.01.27.07.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jan 2026 07:58:04 -0800 (PST) From: Gaurav Kohli To: andersson@kernel.org, mathieu.poirier@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com, konradybcio@kernel.org, mani@kernel.org, casey.connolly@linaro.org, amit.kucheria@oss.qualcomm.com Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, gaurav.kohli@oss.qualcomm.com, manaf.pallikunhi@oss.qualcomm.com Subject: [PATCH v2 5/8] arm64: dts: qcom: lemans: Enable CDSP cooling Date: Tue, 27 Jan 2026 21:27:19 +0530 Message-Id: <20260127155722.2797783-6-gaurav.kohli@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260127155722.2797783-1-gaurav.kohli@oss.qualcomm.com> References: <20260127155722.2797783-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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: SiB9qtSOrWKDxuHskZ9_uPqdS2tklD7a X-Authority-Analysis: v=2.4 cv=YpcChoYX c=1 sm=1 tr=0 ts=6978e08f cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=_rgrqTzvvZAetH2WXeAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 X-Proofpoint-ORIG-GUID: SiB9qtSOrWKDxuHskZ9_uPqdS2tklD7a X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTI3MDEzMCBTYWx0ZWRfXwOhv7mzxEHA+ 5UWsb6JbM1bXpZs9SA+zYSOGvf0Q3bQc7fUH2gDwYCkeKC/YlBUOjRsLAYKyh1F2bfnWRJfnW1y DemIwK6cS7e53Xm+E8mXIdKTLZVQNjKLfU+hW9MTK8XBjCnHVUciGfPR/NMw12/8BjJS2BfuqO+ i+n2D/QXWdq6mXGpVgDeIbQ6vMAO2L3Sn5SwA3pbbN+lUxDsoFm+CiIC7nGVX2UHBivLIt19Avd 5EkI/D4YTbNg5UcmTWKvh01YFYDsyR6KcblIkMqJkVe9b0EPL92KUdyBRWjiANDVi6UPXhp8i3S HQ+ZWBU8ayfppsyQCzIKs4nMf+f584sQRBs+TOGgNZW65Nrq9gOPvIrUcOVjxquw06aVE/zyjM0 levme6Nlh0hEWa+/1pek5lXonwrxHcuDG3lv4+aO6bSJ316c2P/lx/vUHv6wgtITH4qhYNCItjy uXJQ1Zwvd8YvYsUq+GA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-01-27_03,2026-01-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 phishscore=0 impostorscore=0 suspectscore=0 spamscore=0 malwarescore=0 bulkscore=0 adultscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2601270130 Unlike the CPU, the CDSP does not throttle its speed automatically when it reaches high temperatures in Lemans. Set up CDSP cooling by throttling the cdsp when it reaches 105=C2=B0C. Signed-off-by: Gaurav Kohli --- arch/arm64/boot/dts/qcom/lemans.dtsi | 138 ++++++++++++++++++++++++--- 1 file changed, 126 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/lemans.dtsi b/arch/arm64/boot/dts/qco= m/lemans.dtsi index 808827b83553..c747dd534caa 100644 --- a/arch/arm64/boot/dts/qcom/lemans.dtsi +++ b/arch/arm64/boot/dts/qcom/lemans.dtsi @@ -7281,6 +7281,15 @@ compute-cb@11 { }; }; }; + + cooling { + compatible =3D "qcom,qmi-cooling-cdsp"; + + cdsp_tmd0: cdsp-tmd0 { + label =3D "cdsp_sw"; + #cooling-cells =3D <2>; + }; + }; }; =20 nspb_noc: interconnect@2a0c0000 { @@ -7444,6 +7453,15 @@ compute-cb@13 { }; }; }; + + cooling { + compatible =3D "qcom,qmi-cooling-cdsp1"; + + cdsp_tmd1: cdsp-tmd1 { + label =3D "cdsp_sw"; + #cooling-cells =3D <2>; + }; + }; }; =20 remoteproc_adsp: remoteproc@30000000 { @@ -8168,7 +8186,7 @@ nsp-0-0-0-thermal { thermal-sensors =3D <&tsens2 5>; =20 trips { - trip-point0 { + nsp_0_0_0_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8180,6 +8198,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_0_0_0_alert0>; + cooling-device =3D <&cdsp_tmd0 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 nsp-0-1-0-thermal { @@ -8188,7 +8214,7 @@ nsp-0-1-0-thermal { thermal-sensors =3D <&tsens2 6>; =20 trips { - trip-point0 { + nsp_0_1_0_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8200,6 +8226,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_0_1_0_alert0>; + cooling-device =3D <&cdsp_tmd0 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 nsp-0-2-0-thermal { @@ -8208,7 +8242,7 @@ nsp-0-2-0-thermal { thermal-sensors =3D <&tsens2 7>; =20 trips { - trip-point0 { + nsp_0_2_0_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8220,6 +8254,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_0_2_0_alert0>; + cooling-device =3D <&cdsp_tmd0 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 nsp-1-0-0-thermal { @@ -8228,7 +8270,7 @@ nsp-1-0-0-thermal { thermal-sensors =3D <&tsens2 8>; =20 trips { - trip-point0 { + nsp_1_0_0_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8240,6 +8282,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_1_0_0_alert0>; + cooling-device =3D <&cdsp_tmd1 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 nsp-1-1-0-thermal { @@ -8248,7 +8298,7 @@ nsp-1-1-0-thermal { thermal-sensors =3D <&tsens2 9>; =20 trips { - trip-point0 { + nsp_1_1_0_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8260,6 +8310,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_1_1_0_alert0>; + cooling-device =3D <&cdsp_tmd1 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 nsp-1-2-0-thermal { @@ -8268,7 +8326,7 @@ nsp-1-2-0-thermal { thermal-sensors =3D <&tsens2 10>; =20 trips { - trip-point0 { + nsp_1_2_0_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8280,6 +8338,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_1_2_0_alert0>; + cooling-device =3D <&cdsp_tmd1 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 ddrss-0-thermal { @@ -8422,7 +8488,7 @@ nsp-0-0-1-thermal { thermal-sensors =3D <&tsens3 5>; =20 trips { - trip-point0 { + nsp_0_0_1_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8434,6 +8500,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_0_0_1_alert0>; + cooling-device =3D <&cdsp_tmd0 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 nsp-0-1-1-thermal { @@ -8442,7 +8516,7 @@ nsp-0-1-1-thermal { thermal-sensors =3D <&tsens3 6>; =20 trips { - trip-point0 { + nsp_0_1_1_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8454,6 +8528,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_0_1_1_alert0>; + cooling-device =3D <&cdsp_tmd0 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 nsp-0-2-1-thermal { @@ -8462,7 +8544,7 @@ nsp-0-2-1-thermal { thermal-sensors =3D <&tsens3 7>; =20 trips { - trip-point0 { + nsp_0_2_1_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8474,6 +8556,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_0_2_1_alert0>; + cooling-device =3D <&cdsp_tmd0 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 nsp-1-0-1-thermal { @@ -8482,7 +8572,7 @@ nsp-1-0-1-thermal { thermal-sensors =3D <&tsens3 8>; =20 trips { - trip-point0 { + nsp_1_0_1_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8494,6 +8584,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_1_0_1_alert0>; + cooling-device =3D <&cdsp_tmd1 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 nsp-1-1-1-thermal { @@ -8502,7 +8600,7 @@ nsp-1-1-1-thermal { thermal-sensors =3D <&tsens3 9>; =20 trips { - trip-point0 { + nsp_1_1_1_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8514,6 +8612,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_1_1_1_alert0>; + cooling-device =3D <&cdsp_tmd1 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 nsp-1-2-1-thermal { @@ -8522,7 +8628,7 @@ nsp-1-2-1-thermal { thermal-sensors =3D <&tsens3 10>; =20 trips { - trip-point0 { + nsp_1_2_1_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -8534,6 +8640,14 @@ trip-point1 { type =3D "passive"; }; }; + + cooling-maps { + map0 { + trip =3D <&nsp_1_2_1_alert0>; + cooling-device =3D <&cdsp_tmd1 + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; =20 ddrss-1-thermal { --=20 2.34.1