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 511692D47E9 for ; Tue, 7 Jul 2026 19:22:31 +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=1783452152; cv=none; b=rT4uWa5i1Vq6yejnD3S0RF+UEjh7mQBIWmkMmdrMJuUbvelvs+MWqJBpm4UJWuHBD76QiW+V0SgOSP+3+QT9bOaAvF36eFra/ysHe9S3BuV/CmhSjmOIwlACNfu60IIoI/XTl36sKr0K2k3flM92dgQ9Pno2ET4qG3aQiYKbR4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783452152; c=relaxed/simple; bh=+Rcs9tqTLxY6uz2CPrBVs8k8aFNAm68QFL8TI+SEKms=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=McAaGDFnrIypB96aTZIx5Py87E+B30zdZfrSq34hg5fszNorR2rfvYyMn4+mTv/1idUI9EtU4MwhutxY//oWcqOLvL7s9taGMzBZAf5MSn35LE2zyoAXxi9V1qYPPlOoT6VosZyl8rdDPiBmVNckuwkQZEpCpDOiWbscPCWlzxg= 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=hipbacNZ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=iSFwrJEQ; 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="hipbacNZ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="iSFwrJEQ" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 667J5Z2q296002 for ; Tue, 7 Jul 2026 19:22:30 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=Mt/L0C8c6aeHx2BoFJgmqf geH7twNz10xR7G3mGjzkM=; b=hipbacNZIKnbOIiuL7Ija/REMd/Qsr8oDEC4x9 Sma7nBVS6fC+E/CwoO+vJ8KyblEMZK9nY0q4c60G/n7KruCB06+qG8RlC/RgvV5c Qdk+3ZW6G4xSh/zsW7o7kd13nQx6+jqqEn5E8Aov+R+jHCDA5A+5Wr8azUO8Age6 j7V7WM4CgvIWbyH3c40usP7tp3cygG911zSAV7szQ8c6clkhDOdyS199Sw6c5NK7 WaNH0iB/YXJnSuivIdV1j2EWjMohbIkAemdcqmcLl0Eprp7ghTDPpRbMF9m+rjZZ 7lHufJaDnW9odRFKCxInYBnyAm1MJZhwCOdI1QBE2jwHdemQ== Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f8su73tec-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 07 Jul 2026 19:22:30 +0000 (GMT) Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-8fdace20927so10371956d6.2 for ; Tue, 07 Jul 2026 12:22:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783452149; x=1784056949; 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=Mt/L0C8c6aeHx2BoFJgmqfgeH7twNz10xR7G3mGjzkM=; b=iSFwrJEQJle0oM9c8ElnhY87uCAPHPChtIznxBzfBVrZY65my6KEC0KQ7f3qyI/9aQ DP4ymcukgQPGa2MCMNM7HqNkXROUIFd+vED6sgGvFDKniHqbAx8HdWfKtCf4SndHCQAV WmoiLvLmAM6qlJyNQRHF7q4FUBDzXY+FbEKib8GpKcoBoXO+JjK1bXVIIs9KNErn4KYI PBN7VnNpv4GVOz3D6pcQmEw1ez2CnzvaagMnFXlF2Pzuta8BLqpG1BG2OWcL8cES+CTT jKEFVQfY1yiv2xNksMiM3SYaRJthw5wlVegxkLv6Ke4RE2l9rRDZku3WvZWWNnc3vPqg NlSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783452149; x=1784056949; 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=Mt/L0C8c6aeHx2BoFJgmqfgeH7twNz10xR7G3mGjzkM=; b=LP9dFHY7QcwZyH+G1OOcZ4OZMgZ9YLJn+HmKHREXo4EIw2gmyBdCukSyflYPLPM+KI WV5dQsVGuWLM0N8zbDpEQOQ+I4eFHNzW/yvB2TGRrgeLnzetvCeJoZFrMaVl+3c13cu5 cYSg13BU/GQw12aerReReo0hAuQNDhF4wNdXRD/FsVDrxV9hL6ll+y2Iks4+XmHsJRRo 3ET5ez+7Mt7FiNJDd+cUVcNT2QvdDiLTPMnh13GQtj40buFx0ng9MQdeGjMFgmBUZtsU kKXx+YW7Z+bRlOk+DHBmc6t5iAkwDeXr0DLuMeBDpgWFg4Nn58enf+yooHAjwCp6WuiL FV+w== X-Forwarded-Encrypted: i=1; AHgh+RrbjlCiizxNt5Hf1Ff5xcduwB7KmdI4dpnOGeVKwcWcbW57KCjD2NDRFgvHKPUQIcOTxaItpdmze2u6WLg=@vger.kernel.org X-Gm-Message-State: AOJu0YyVMhDUSH2BL09AKXHXKnZUWPDoANK2vex+Uf97/NenLO03hHDR tq/5bmAqFeFlSm+U/Gmi6+GxTyJGb4IUoUgml/OW86+QuTApZHovZXNxWAyBuvX8SiT4cc3PE6z 0TBYRJwuRZwCYtinS32wckATxv19z77kDiIq6FEfiwj6wRew2p96y09rNivQp/3U8tVc= X-Gm-Gg: AfdE7cmjLy7eOrxZP85EJZobrlLLG5OnJmHI7mvdjxeBUDH3Q6S/gFB2bEuYLYVzcJq DntY6ce6A2cYQeho7X8kpKWLnI+LOmJZkRoHgldTTJYjo7PUli3lmldoAHf1fO3DeK2drneWN8Y 7uwgK/xaoe//57PSw9qcryPd4Iikex5M8JhR3xGWK+3gd/RmyM7fLFoSTDE/PUaYYkOKse56VzM QDHsmhcMlyLM1KjPbozGQON4ZTIEx0eHxO+pUGXBknvb0HlArFjqJ5zyctEH6ZCtvhgGGZY/Ui3 Pym/d/0Wkn8MvnP0Kp9Wx3Z+vcdwiG3hWOAV2GQ78AoNbxxH3h4R3mj76ia4qVIV/ZUTICD4q13 /PZhU0hi0tnuzvGTm8B7/Uf6O3J8SU692Q6VXqY76POQ= X-Received: by 2002:a05:622a:53c6:b0:51c:1e69:bcc8 with SMTP id d75a77b69052e-51c7479f5ecmr70653681cf.10.1783452149399; Tue, 07 Jul 2026 12:22:29 -0700 (PDT) X-Received: by 2002:a05:622a:53c6:b0:51c:1e69:bcc8 with SMTP id d75a77b69052e-51c7479f5ecmr70650781cf.10.1783452144006; Tue, 07 Jul 2026 12:22:24 -0700 (PDT) Received: from juillet.box.freepro.com ([2a05:6e02:1041:c10:8029:bbc1:63:ed84]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47aa039ae4fsm37218836f8f.18.2026.07.07.12.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 12:22:23 -0700 (PDT) From: Daniel Lezcano To: sre@kernel.org, hansg@kernel.org, ilpo.jarvinen@linux.intel.com, linux@roeck-us.net, andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: bryan.odonoghue@linaro.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, neil.armstrong@linaro.org, gaurav.kohli@oss.qualcomm.com, manaf.pallikunhi@oss.qualcomm.com, priyansh.jain@oss.qualcomm.com Subject: [PATCH v6 0/3] Lenovo ThinkPad T14s EC thermal monitoring and thermal zone integration Date: Tue, 7 Jul 2026 21:22:16 +0200 Message-ID: <20260707192219.14605-1-daniel.lezcano@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 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: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA3MDE4OSBTYWx0ZWRfX7M7x16hdAMbo SpQuiun74m3ewdudnTy8u7E8UfiJW0t3u1zqz7VI/RDjLpSW8ZVnfRC9pZezyO6uH/fvqWqH+oO DlfbPZgfoX5kKDzUCpjYR8Fxco3MbSo3GlH/G8ldHeBiCxUJX2uF/C2wgPinB6BtE7UdGA48KBO /WMfz4Ywm/WsMXHqsSZ9xGXq4p+dxQ6iXGldpRhCQDdQy6Iu7l+6E6//aPrygqlzgIAVVLSnTw9 k96NtYZ3pFW2YSyFh0CUU/xPJybgMv2ZjLx5YCEFqIJ08fO6moWhwL5gG9iSUX6DOONTKsgsMW+ 7GTyLp7PvuJWG31bAyIb7wCX3tOCxcCIUvmQ5TNrF31HdYT8hh0Osp36N3yXjjt5QbrQT7jk6on 8MyG80rUVL7adwzBw6uy8y0eEoTge+1A31wgG1vXkg9UQrEjHEDwodyJDNnDN1FOtOrT8jXYa8W +Krb4XeUQ32tlgyl2fg== X-Proofpoint-Spam-Info: AW1haW4tMjYwNzA3MDE4OSBTYWx0ZWRfX8h2hvdfDGYUA 30EDSEyPPqEqxhmVM3aHt/Oxqeeb5aGrsD9cE46sD9kLFzRRg/U2p40FcrKL1QmKw29dyTyEDm9 b0z7fWaGyQhxmB8y+TzveEYk/dHObkE= X-Proofpoint-GUID: XnW8N2AX20sWQmSIkAHH6HIhDsJWNAQQ X-Proofpoint-ORIG-GUID: XnW8N2AX20sWQmSIkAHH6HIhDsJWNAQQ X-Authority-Analysis: v=2.4 cv=HN7z0Itv c=1 sm=1 tr=0 ts=6a4d51f6 cx=c_pps a=oc9J++0uMp73DTRD5QyR2A==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=Jz99LMs1rTwwAPREzXgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iYH6xdkBrDN1Jqds4HTS:22 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-07_05,2026-07-06_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 malwarescore=0 adultscore=0 clxscore=1015 bulkscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607070189 Hi, This series extends the Lenovo ThinkPad T14s embedded controller driver with environmental monitoring capabilities and integrates the exposed sensors into the Linux thermal framework. The EC provides access to several platform temperature sensors covering the SoC, keyboard area, bottom cover, charging circuitry, QTM module and SSD. These sensors are currently used by the firmware for thermal management but are not exposed to Linux. The first patch adds hwmon support for the EC temperature sensors. The second patch exposes the EC as a thermal sensor provider in the device tree and defines thermal zones for the keyboard skin temperature and the charging circuitry temperature. This allows the generic thermal framework to react to EC-reported temperatures and apply standard Linux thermal mitigation policies. As the EC protocol is not fully decoded, the passive trip points get/set actions are missing, so it is not possible to program a threshold and receive an interrupt when crossed the way up or down. Consequently, the thermal zone related to the charging circuitry is polled every two seconds until we can set the trip points in the EC. This series fixes critical thermal issues happening on this platform where a kernel compilation, or heavy workloads, lead to a system reboot. Tested on a Lenovo ThinkPad T14s Gen 6 (Snapdragon X Elite). Please make sure scmi-cpufreq.ko is loaded before testing Thanks, Daniel --- Changelog: v6: - Added Reviewed-by tag (Dmitry Baryshkov) - Removed required property for #thermal-sensor-cells (Krzysztof Kozlowski) v5: - Added Reviewed-by tag (Ilpo Järvinen) - Added the '#thermal-sensor-cells' property DT binding (Sashiko) v4: - Added the missing HWMON_C_REGISTER_TZ attribute (Sashiko) - Fixed dependency with HWMON (Sashiko) - Added Tested-by tag (Neil Armstrong) v3: - Removed event based because trip point are not yet well supported - Added an empty line after variable declaration (Ilpo Järvinen) - Used MILLIDEGREE_PER_DEGREE from units.h (Ilpo Järvinen) - Made switch consistent (Ilpo Järvinen) v2: - Fixed patch 1 subject prefix - Removed the fan information part - Added HWMON_T_ALARM - Fixed DT change description to reflect what it does really Daniel Lezcano (3): dt-bindings: embedded-controller: Add Lenovo ThinkPad T14s thermal sensor provider support platform: arm64: lenovo-thinkpad-t14s-ec: Add hwmon support for temperatures arm64: dts: qcom: x1e78100-t14s: Add thermal zones for keyboard skin and charging sensors .../lenovo,thinkpad-t14s-ec.yaml | 4 + .../qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 67 ++++++++- drivers/platform/arm64/Kconfig | 1 + drivers/platform/arm64/lenovo-thinkpad-t14s.c | 131 ++++++++++++++++++ 4 files changed, 202 insertions(+), 1 deletion(-) -- 2.53.0