From mboxrd@z Thu Jan 1 00:00:00 1970 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 612FF3ABD90 for ; Wed, 14 Oct 2026 19:35:39 +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=1792006540; cv=none; b=OTfFue0nHgJASvVS9bney3G9OibogKU98ByorgaFALYA2gQLOrTnSZAwYtCcyF4XzV7V5Uoy1yv8Megvy3UlWrfkRVI1wkzWgVzcmnhTVa5R4qZUmpEJoMxHL1nDo2VTnm5ZQ217aS8KNVACM5XAGwQLAcPEcpcRah3DEBf3jsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792006540; c=relaxed/simple; bh=Ui1dR+HW9r3TrNBMCqytOQtnZxBQ72d+7Ju5LMdSVwU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=qBvaHw1ZQs7pq+4VqQ8KSBuBnusToamNu31VxiqHqrZLw3tGVE3ItluvhsXRb0aFqekTt9uWFp2UbiPTFM4zKzLpb31hEzatE0o6G3POiHJ8T+phNGvwNH8laQ270e+EWvKAFCet+uTFZaMouLwefWyYKu5NLhNhGY1VX6jqOwk= 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=BagkBRP3; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=KfD2Nv9K; 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="BagkBRP3"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="KfD2Nv9K" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EHRCuZ842056 for ; Wed, 14 Oct 2026 19:35:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=nvdpGxbjJs8cHdfNMlq4bw 73ybRY9Ryx4fghjxFv41Q=; b=BagkBRP3zD25QElnbLcfT+Z9lad94TaiDKfXsM eRvmqCyJPpCqat1oKwgCeT6iazSLQEIvbiTA6mEu1RqAIaCbGFSXAdcywG3DZSGe 8OjnLuQFnMPKCnajNNyyhjKMvbtUHjnYCgvTYCUiTP78VDLfRWBtliTW3iXBq+QX M2e8y0DuEl4ib4baBTAAXtWTl5FWMhzUkOD1cf0fqIXjjhzlowk45lLmR0sjrQCc itwPdQLGDJJ554o+3hK5ir7FARbEISK5r1mrSE1Q7vbB9EYGUCViIMQdOsob8PXc ueLC+5aSjCJKLpVYznRZQgUytMAmtX7s469Fyb1AToBwoV0w== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hae4wrfm9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 19:35:38 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-53514fbd4a3so15308951cf.3 for ; Wed, 14 Oct 2026 12:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792006537; x=1792611337; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=nvdpGxbjJs8cHdfNMlq4bw73ybRY9Ryx4fghjxFv41Q=; b=KfD2Nv9KNU/ViG79zU38ApKAJ0vsOy2i0LdMPWdW+d84a1T6SnOFscJOHuttlMJQNw DU8PlbfruoH+IAjZLUSBecvOL8wZHYXmaBVenMksNJOBhrhsJXKOekrtwC6Ld8Wq81Mt qWNyUkiUfA9/jeXME8kIlos2BB0VBRab5nquq4NA6dwN/JLOG+yMPIGSFreba9t2tNZI lKG18iHrjcoVb5pJR+oAI1GBDkSPclskQmmYIza5SAr9WJ3t9u+BHgRB3PYKaTI9H/qV LZ+IXCYgMKZdNyj1GJHaOy2rNq+qW4wmxniUxCfIJY+lQBeuAcrGGMv2NNu0xDww8GGg m8jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792006537; x=1792611337; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=nvdpGxbjJs8cHdfNMlq4bw73ybRY9Ryx4fghjxFv41Q=; b=CDr8CIgkzbdCKwACTzKPy9oC/rzNOnQSSi0e9+R4E+1d1+kKizqlcSeak/Z0OJoOBg qZHq6SXFDKHbcJC/dJ3pd7LOp6R1cxKUEXLZiQKPWFQGgnFbgHV9QomrVeMpK/rz7Mlw YxQ0XKoE87zRZsxvtmK8nfWvSvPsYI7HldRklngONVOeGstnNmUmYNOEpUT8piPBAC2B twrGnYLduCD30TIZEvzRvfPatfUEmbC7Gfk9Fo38FN2wTJv869WzUl80DNCYpEJTkbyP aBstSn8riUXuZ+LcRhpqcfK6zrAdhlIwirnLjyy8wWsHl8YvkOAAqYGdvOBAodOU9e7G Hn9w== X-Forwarded-Encrypted: i=1; AKwUvBzA9TkXbI2SKvRiPgOeEvx5agiKd6lF+QktvuBQP/PRkrlfshtmI41Yd431P3Jl+TsB8g/SVjpnYtAj@vger.kernel.org X-Gm-Message-State: AFq9FYIV+pf4MmQ4SR4Yz6peCkZhWnbJMtTCGvtSrftCd1/1tHAo6wge hNQAbvVSDVCFVfvAcUA9Ot3UGimR/QPWQTrWDmaLj9TbSSruVXwYQKhckXPfMnEf0OULZ+r3lly g1ZxoydtylyDgT03+g7gd3Wdzkmj85s9kV/8TKIB9qothJCSWsNM0s30T6XKhATBrnCXMItt/ X-Gm-Gg: AYBFou14+d/AJzOd4IhWOP8iUs+CUDF213KRaDng8KjMiBdeYmYuEOSqdokKg9WMbfx dYWxuVNJ5YmOhy6QVb8minF8/hKM2GVQ5KGsoxAoUvxP58iGJZ26br0RD6m1wwlMRBBLsl+z1i5 4c6PlUgl+fxBZWfN85WD44zL1cQJTV9OkfQCYuLL8woINnA0ptFnuJtM33sO58w+R/TWpnvwPWd QaxgDN6k9qBOqmy/250x0m+48bxBZxbDtx3TDlbx9pJ6E2Zhlnbph2qyXPRfWeRG/COuma0FZLE SOUULDb//ytf/qB3C/tAV1G/XBM5fLZK/oWpedXCz2FNo6N4PPlXXpaeoxjd7WUUxWKLEUcCnBh Wq3KMcCHK8hAGJKpkqkE7rLuajYjF01CxiA== X-Received: by 2002:a05:620a:171e:b0:93b:d7a3:45d0 with SMTP id af79cd13be357-93ebd293de6mr2532693285a.57.1792006537511; Wed, 14 Oct 2026 12:35:37 -0700 (PDT) X-Received: by 2002:a05:620a:171e:b0:93b:d7a3:45d0 with SMTP id af79cd13be357-93ebd293de6mr2532688885a.57.1792006536928; Wed, 14 Oct 2026 12:35:36 -0700 (PDT) Received: from juillet.box.freepro.com ([2a05:6e02:1041:c10:73ef:dc06:a718:ba8f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a1beb77054sm4055445e9.1.2026.10.14.12.35.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 12:35:36 -0700 (PDT) From: Daniel Lezcano To: andersson@kernel.org, konradybcio@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, johannes.goede@oss.qualcomm.com, conor+dt@kernel.org, stephan.gerhold@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] arm64: dts: qcom: x1e78100-thinkpad-t14s: Add thermal zones for PMICs Date: Wed, 14 Oct 2026 21:35:24 +0200 Message-ID: <20261014193524.5590-1-daniel.lezcano@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA3OCBTYWx0ZWRfX6J1YMYrOdsAi FsaszXpwqO/6RBP8oBAUXJEKnwUhN95fmOCPy98ALa6aDB9qf/EMoW/TQbLI0WO1YUY68DSv+0Z 9QNCh3i3fh24VgUuBWFrrgzcFkuxnTQ= X-Proofpoint-ORIG-GUID: rc7AULeNcgzARYfoRKwPUH2dtkSaN0fo X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA3OCBTYWx0ZWRfX6qdZKearFD+X q/QZNxnr1XbBatsP2p1Lsy/k0UZnog7rcTYBViAfoXepIjpakrhrSyXCiKutTFEwhzkQZaQYJG8 lpnEw+rEZSqGwG+X/EEEErDIzE7WBuwR1hgm6P43DwzCP0bxLBsY8sQWhMv+Lew72BLYjVdPmnK tfYTxWdflGq++1WM26ZxoCwYGq6MOColPVMsty9TNPuz9DOWssvE6Gm3oRiEtx141OnAvJYXKOU ED9iM7U+86Y2d2wFH7ZPM9Ero7FOjhUcYb3JgnYSjZi6GTnCNtb8dQEjtzfUw72KFIh0aD+Expt 445eH79m9CX0EyetHnbHvWQkE7RIqmCKKsI6HxPtQfIkDgI7H1BZMW3APcOyLqTSJ4/WCsVPFoY w9oC2MFE0ovc2c6ND0YMV1lE10un4bv4Q5aYaEqiyLtNEjxnWbmXRHwo0K3fORSVD50nUr8iVVL h5S9ugFtDQbc2TQ6BYA== X-Authority-Analysis: v=2.4 cv=E8BYNqdl c=1 sm=1 tr=0 ts=6acfd98a cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=GDTQnYEY10f_UI-1qQQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=a_PwQJl-kcHnX1M80qC6:22 X-Proofpoint-GUID: rc7AULeNcgzARYfoRKwPUH2dtkSaN0fo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 suspectscore=0 malwarescore=0 spamscore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140078 Add thermal zones for the ThinkPad T14s and describe the board temperature sensors exposed through the PMK8550 VADC. Add a passive thermal zone for the keyboard area, which is the main thermal constraint under sustained load. The EC reports a thermal alert at 57.85°C, so use this value as the passive trip point and allow the thermal framework to throttle all CPUs and the GPU when the threshold is reached. Use a 1000 m°C hysteresis and a 500 ms passive polling interval. An earlier approach used staged CPU cluster throttling in an attempt to start thermal mitigation before reaching the target temperature. Testing did not show a significant improvement compared to throttling all CPUs at the EC thermal alert threshold. It also introduced a latency imbalance between the different CPU clusters, which could negatively affect workloads depending on where tasks are scheduled. A more optimal solution would require a significantly more complex, system-wide approach, accounting for the workload distribution and the available power and thermal headroom across the CPU clusters and other devices. Such an approach would also require kernel mechanisms which are not currently available. Keep the thermal policy simple here and use a single passive trip, which at least ensures that the system is actively mitigated before reaching temperatures that could ultimately lead to a thermal shutdown. The mitigation temperature is derived from the platform behaviour when using the balanced power profile available under Windows. A separate change will adjust this trip point dynamically according to events reported by the embedded controller. Name the trip "keyboard-ec-alert" so that the EC driver can identify the corresponding trip point in the device tree. Also add a 73°C critical trip to shut the system down if the keyboard temperature reaches an unsafe level. Add a thermal zone for the back cover with a 73°C critical shutdown trip. Describe the SoC, SMB, SDX, east and west board temperature sensors as monitoring-only thermal zones. Thermal camera measurements were also used to compare the reported temperatures with the physical temperature of the chassis. The measured values appear to primarily represent temperatures inside the enclosure rather than the user-contact surface temperature. No unsafe external surface temperature was observed during these tests, although this should not be considered a substitute for formal platform thermal qualification. Finally, enable ADC thermal monitoring on the corresponding PMK8550 VADC channels used by these thermal zones. Signed-off-by: Daniel Lezcano --- .../qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi index 75ad74bcb042..2d0a434d2248 100644 --- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi @@ -502,6 +502,81 @@ platform { }; }; }; + + thermal-zones { + backcover-thermal { + critical-action = "shutdown"; + thermal-sensors = <&pmk8550_vadc ADC5_GEN3_AMUX1_THM_100K_PU(1)>; + + trips { + backcover-critical { + temperature = <73000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + east-thermal { + thermal-sensors = <&pmk8550_vadc ADC5_GEN3_AMUX4_THM_100K_PU(1)>; + }; + + keyboard-thermal { + critical-action = "shutdown"; + polling-delay-passive = <500>; + + thermal-sensors = <&pmk8550_vadc ADC5_GEN3_AMUX2_GPIO_100K_PU(1)>; + + trips { + keyboard_ec_alert: keyboard-ec-alert { + temperature = <57850>; + hysteresis = <1000>; + type = "passive"; + }; + + keyboard-critical { + temperature = <73000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&keyboard_ec_alert>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu8 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu9 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu10 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu11 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + sdx-thermal { + thermal-sensors = <&pmk8550_vadc ADC5_GEN3_AMUX3_THM_100K_PU(1)>; + }; + + smb-thermal { + thermal-sensors = <&pmk8550_vadc ADC5_GEN3_AMUX2_THM_100K_PU(1)>; + }; + + soc-thermal { + thermal-sensors = <&pmk8550_vadc ADC5_GEN3_AMUX1_GPIO_100K_PU(1)>; + }; + + west-thermal { + thermal-sensors = <&pmk8550_vadc ADC5_GEN3_AMUX5_THM_100K_PU(1)>; + }; + }; }; &apps_rsc { @@ -1285,6 +1360,36 @@ usb0_pwr_1p15_reg_en: usb0-pwr-1p15-reg-en-state { }; }; +&pmk8550_vadc { + channel@144 { + qcom,adc-tm; + }; + + channel@145 { + qcom,adc-tm; + }; + + channel@146 { + qcom,adc-tm; + }; + + channel@147 { + qcom,adc-tm; + }; + + channel@148 { + qcom,adc-tm; + }; + + channel@14a { + qcom,adc-tm; + }; + + channel@14b { + qcom,adc-tm; + }; +}; + &qupv3_0 { status = "okay"; }; -- 2.53.0