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 F146B3E5594 for ; Wed, 24 Jun 2026 21:08:45 +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=1782335328; cv=none; b=q/w+qWikJ1OtxyUunN9AaT03/PdpJ5h0b4KSsU+cFu3s2gZHPIdpmh2fwrZzGC93/moN8qJxjfcLTyl2aP9Y9qIHfbP0898H8esvq6LgQzOaTxOOOKtqOMobhz9axk6z7GraSwr/4C+ws4cFwcvO0qgEwLhnTVQAB+RnCo27Phw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782335328; c=relaxed/simple; bh=Pjwum7Mu37SGUsunaTWf37R6DFsb2jzx4XAajClW+OQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i5WI8660ECp0dQJ2E6PPa2fyTG6sZ3/LlUr/dgjnkJzhYrvKzounPk7T2oX845Ce9l6LYSyu2VseKMelPxbeTbkYAIolikyFFHYzRwnWxcPzTlzLxt+j5jfmjYx9X164HrqDSlyL97PdTTx3xjYlJ+PxhE5fDVSzmKqjPjas62g= 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=S0sSUk6Z; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Xt/+3sIA; 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="S0sSUk6Z"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Xt/+3sIA" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65OJjLun4119726 for ; Wed, 24 Jun 2026 21:08:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=NF98u5m0GQQqjMpcochC97YunhtCfm5cQBU 9SMM1MoA=; b=S0sSUk6ZPVpbTTVHkgCEqN6NrMf86QEsRvckN6CEFqZGTWSY7bE SatDPG1P2jUm4JortNy62OspvSrafgfp3ojHAVsdS3yrf1YHhlNg/37a/J6FVkBW ald8d97dEZg02qXft2Z0Aw+qoCAOSFP23TEndFxtQhCd5AZbPTVcZtbcmVM/+/5l ailHfBe35IQfwLf/KL/JU0kx8iHGfp9oSQ1uUFsJ/7n4QZ2ebanJ3sXwgO29RzlE kDZs8sxRjBYCMXd/HGtJk+WmlujnXxhrvKQswQrIKUXi2GiJZjGnBKe2WetBNmcp nDOoD3d7FPbycoelp7536s7jStneujENitA== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f0apq36v1-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 24 Jun 2026 21:08:44 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-9157f1be083so185732185a.3 for ; Wed, 24 Jun 2026 14:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782335324; x=1782940124; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NF98u5m0GQQqjMpcochC97YunhtCfm5cQBU9SMM1MoA=; b=Xt/+3sIADniznDJADTMCIyylipdPmXItDJA0ivWXmTM709Rz2OZipDKJHoMTSu9vj1 v5di1pbaVraQQaWaYzBPV3fjjhlyf9YoghcoP+QVo8RefRQ9jNDf91KGwyQ8ZteJY+BB Ydzvzz7lMtzN228Y8OEQrO3x7iEVKojgIvup2xEOFrz4GwXbZEnuHoQnUBqCS/t82nFG SyTXeLcPvkWL6hC4GWTZnQBEoJvPp+06H2H5PVcX9tFqJEyte7tnoOJmEkj5vtjA9/gV SH77Ehgk4ub3UdJ9F6UyqkWeivugDFu2nC8zaVK65GEnn1ZdVLr9Ts7WF3KAHXul2yhm a3Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782335324; x=1782940124; h=content-transfer-encoding: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; bh=NF98u5m0GQQqjMpcochC97YunhtCfm5cQBU9SMM1MoA=; b=gbsAth+1G+/MNisqjrzFN5ZMI9TdzCGBqL+VnfPdBFFOtlR4VJS0SuXP11SunYK3iP Ad2z7Pf9JwAJLJNXiqUYV5s66fTI5aZELpMP0Ewe/EuF4V4czTPKjkoZUnwFocUXvK9n tE6qz7WnBqu7YyCyOQrS5wOXNCtLl0nog13xB/f1fQY4jMeHoAcjJZT3nsTbTbSB2ML4 u4cGz6k9pv4RD9+ZK19ZY56+dlm4Os9gaDqS/FTeI9J8aOegizFzawo3V62GKtAJAj13 uTZJ8cCyGrGGi5xe5AuFG9+rLsqlaFjeiNobrczmLgp0kCs0Uzwn3JWI127tGumXegsY h/Og== X-Forwarded-Encrypted: i=1; AFNElJ/68gGXAUjloexX1WyaJpFl72rwTXAh/1HA395BeHXKyMuQoabH0TGU27X7pDljXqx6LwZ56hFCmVzR2fs=@vger.kernel.org X-Gm-Message-State: AOJu0YyAOdPC31oZn29ALsw6zwy7gVOzTTDbAZEU1L3CFM6gDBa53GoR 9B6GncQHa1e1ax8r4MRhXfWgu3g5ZFVnZnalCGEEg8wkxgK6UbZA8ij4CeH5e8eFJTsI7QZiiEx JdQF0zOifE0lYvzqS0LJmjP0DtZ9xF4ynNSq6B46Tvu4qeyFrBQgO6APd4u8olmT/sgA= X-Gm-Gg: AfdE7ck0X6JX1w7+tM5m75Hiyuo8eo0ENZaSfk+yYZO7/keEJKBehs51wXBdXjuY3/M 2NBqhZzTbRzgg54PBLNpUAkDz/aFz0ptrZJO10N+NblwTBzR64Ck+CKKVc6d+sYIdbnOLxOs0NY jenh+491fANMfAFDhMvIWr5tAYO/6fG+ujtVBctJBlzsGvQcaz9wr5rW7SbhONPFGSHObyMG3Yw SNRqyxjqszalF3uB/9YjNrAunayj0SKm0ZYQAE5PxB0Qc2+K1tqNBKR+v1cZzSL7UXgU/gImhNV mDvNRcHmpkFG0HftBdLVQTF1yqmTteNxKrrdHzAiYGx4WTEBf2JYvYq8sXBCH1eZ6a+UVyDzPU0 Rfq7Z4x0OtAFg2t7tEldAKleCNtKLEFoT42yomUPEYxZr5g== X-Received: by 2002:a05:620a:170e:b0:8cf:c106:faca with SMTP id af79cd13be357-921d29f8690mr3323305785a.36.1782335324231; Wed, 24 Jun 2026 14:08:44 -0700 (PDT) X-Received: by 2002:a05:620a:170e:b0:8cf:c106:faca with SMTP id af79cd13be357-921d29f8690mr3323299885a.36.1782335323714; Wed, 24 Jun 2026 14:08:43 -0700 (PDT) Received: from juillet.box.freepro.com ([2a05:6e02:1041:c10:91ef:5c1f:e854:38f1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-46c1e840efdsm9455767f8f.5.2026.06.24.14.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2026 14:08:43 -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 Subject: [PATCH v1 0/3] Lenovo ThinkPad T14s EC thermal monitoring and thermal zone integration Date: Wed, 24 Jun 2026 23:08:22 +0200 Message-ID: <20260624210825.264454-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-Transfer-Encoding: 8bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNjI0MDE3NyBTYWx0ZWRfX0DIYTK5fA7Fi FQLMBWOjddZtyl1GurPNV+wSOHO1kbAbq/Gxu+lkoT4olfSBIkMGeuQmtX/U+S9EMsbdAXmb6gZ KWEn2Os5gZ05PM2hFddl95GYyrEplDQ= X-Proofpoint-GUID: MWpwwv2JIlrRY0C-NmQ8D6bUmVIT1UOy X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjI0MDE3NyBTYWx0ZWRfX/+2w4gh7JCOg f/JjFkPwgrKFwXZZpHgOneHsvPZ3DQ4+UXWANZY2JtbrAH2AK8gS9G7IMQ/jX7AsBn76OzK7LlK mGiGcLNff3fDrkVLeg3XzgT+w8utJzzLzS0XMUuBl75qucua8Ww9RSFXQgBlpNwj+/oKEIYjB78 9gJUysMURpzgZ/d5IKo8R3q/GfEK/EoLnDyFfJL106q4M6VZnAM7OMoV7RJ8M6ouyU2D4KKs87R 28q9HhhgvFSTjbjzIkRzLyzleNZxvVPblfdVxFh0Fud9gTnwVsL9u24tC/Mk5BSF7IwJyTZB2Pe fNPklcqEWxnBaq/vU9CyJLRuwAJoQc8cTCMTcJH+SH+ZPOOGmQO4JMK7J+NDBIpl3+GJzIPplq4 Ceesjn7LKTY6hV9ITP4tnU10FA4XmQ== X-Authority-Analysis: v=2.4 cv=NpbhtcdJ c=1 sm=1 tr=0 ts=6a3c475c cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=xqWC_Br6kY4A:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=kbYhDkqKViOJv1L1JOIA:9 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-ORIG-GUID: MWpwwv2JIlrRY0C-NmQ8D6bUmVIT1UOy 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-06-24_04,2026-06-24_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 bulkscore=0 spamscore=0 suspectscore=0 phishscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606240177 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, as well as fan speed information. 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 and fan RPM reporting. The second patch wires EC thermal notifications into the hwmon event framework, allowing userspace to receive alarm notifications when the EC reports thermal zone state changes. The last 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. With the latest patch, this series fixes thermal issues happening on this platform where a kernel compilation leads to a system reboot. Tested on a Lenovo ThinkPad T14s Gen 6 (Snapdragon X Elite). Thanks, Daniel Daniel Lezcano (3): drivers/platform: lenovo-t14s-ec: Add hwmon support for temperatures and fan speed platform: arm64: thinkpad-t14s-ec: Wire EC thermal events to hwmon arm64: dts: qcom: x1e78100-t14s: Add thermal zones for keyboard skin and charging sensors .../qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 68 +++++- drivers/platform/arm64/lenovo-thinkpad-t14s.c | 193 +++++++++++++++++- 2 files changed, 255 insertions(+), 6 deletions(-) -- 2.53.0