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 89662332638 for ; Mon, 6 Jul 2026 18:47:13 +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=1783363636; cv=none; b=tx2v9ipqubvwGTxXxacdSAFyO3LL/Nm1VteQVYfksYHD/RuYUUHQ0ZEA/m3JRtxHFd18B3e9ro8GCGWLiq1+oYrFlQ9FAZ4dy6fIYgmeOWrBF6vkbSOUbNYBjKNtX4WX4iBxeLnk+mUp+wmi/444NLjYQVFqQDCmYCc5pUatekU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783363636; c=relaxed/simple; bh=OON3yrBUBI5i3rZM45extf8vRKEwdthVDb37mRNgaew=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=mtrKQd7eK+irYzrT5crGVQZiIEjirrZhbDz+PpWE+WnbsYmFnUN3yaK4V7tQLRArKAiP6KVTgn7cxXQHj6k4EW13kmeJ9OTUDA6rFLb6Id5sLLHrQeQf4FS0Jjp10QYpogwsTEnNGU+YtAtpKygzojncfkscz8ggJhiPQufD+hE= 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=NoxLhzZW; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=UuU8CIMJ; 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="NoxLhzZW"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="UuU8CIMJ" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 666FF5VY825893 for ; Mon, 6 Jul 2026 18:47:11 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=m/XFmTzGyIFMHErJ6/N1l2 U6wTYZjIQ2iUo/yEmDvQo=; b=NoxLhzZWpOQbgzSzi72hUJg4e1d+Tfa84aaw9D Mw2+dD0GWhxf+gHO6JrmHZocJLJG7tDHogeBouSiBReb+vb+u6KsNw45H53UtLl8 H2DQnBbUngXLBTJVdTMkMajYgTQW7CErmO4vX5wvkqqE7H/4t+VfTT+1SdRUGX+Y XZ/eoacZdOEwQ1RRHaC7qy4uYkwg35Hr81z0KeMCov28IeTgS8/gLKtwP+Tcg9Qf e4kT7BNhIJ34Y/2Bb7tzYkXyLQGFaoAjVMCewMLj4FLXxpNqavLmlk4ujZSNn7cC 8AgGIr6iBg1BgnMy4rrwhhwH7tsT3nAHZ9x+6iDObdC1aHtg== 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 4f88t8arn7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 06 Jul 2026 18:47:10 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-92e53b8a302so317981385a.1 for ; Mon, 06 Jul 2026 11:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783363630; x=1783968430; 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=m/XFmTzGyIFMHErJ6/N1l2U6wTYZjIQ2iUo/yEmDvQo=; b=UuU8CIMJnOIhlY+eddRCKQ0u1Tgl1fPFbSR3x9PiBdW8kAKS6Xt0GVk3m1MCgz2P2i bmYGHmm2fgcE7+jPCNHzYeh9gF1E7dzG5obtk50pOqyLq1NIWYUneBKmDUm2MiC5RoTI UNGUp32YHAC50JVS//3Ji4KwM3CF46P+dHSqTCxOrnca+Vt+dbj6nqdb4UP89RDekFZp b1QF7pnaeNCSfpEHuc4l//0un6Achl9mfth4aGn8qparifXaRkLYvX4FZTJpG9+3K491 4boD8lZhh8yaTqH+dPoB+086I3iILTK12cDMU3sh8jpr2r9YK0yJdTsyukYB6L7Fe+aI 6ksg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783363630; x=1783968430; 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=m/XFmTzGyIFMHErJ6/N1l2U6wTYZjIQ2iUo/yEmDvQo=; b=XJQHaIHSFrUvvpQ939VTmfow1eVh6RQPlL4hKrXyzandDRoUilhF2Qcb5qkJg0W875 ywfEDSxzsDXSxUKCKucuIG/aGX/I0lMd2IJXt3WWPXG3p5cPVQYFG6vYeX8VwPFReEpY yIXDvomP+K20kyZV/EX7bRQgmvmE8fz4EAgkdpwSodVPV347FxPKfU2/3ZnEAiv7sP6B QGUBxyC3xVlRnVAnQg9KDvUD3VV+CtVFN8d+HKziEGskPd4QYDg0AAK32Ck7GW7Bc0A4 ftreLxoY0wreMYPYuk19J0eWE/7BtGgX+rRzYnbqqw9d890z903CaI9MGSoMxwSqcUZb C/0w== X-Forwarded-Encrypted: i=1; AHgh+RpfEwSKPgz/G1WIoIPvd3fJKbS5BxzB5x66mjqyIJlZ3rTpLLvfkZWkfwmOVPEj6H/Zzh1NhAKdVUd/ZMhJ@vger.kernel.org X-Gm-Message-State: AOJu0Yz/X/fh9Jtt6eehuFouIsYhFgGon+cFtCezyI5pkcOALQ2TOcZL 570pE0RSzLBJhAz7XWVb/SAhY9nkCY1RtNf03tVy5EUrUDDJ8M0C28GIBWV4K+YoVeBBNu92MpC t2S7whgSnXiUgrgqSFquMPoZhlCRFVO8pJmcdVYEW+ar2dxgitHqkwnTJuGXKOPBm7bbP X-Gm-Gg: AfdE7clAd73/7qBNCeGLvfOLk0S4Q26/BIj34Tku8gn7H+I3PggqMNskwajD1s4/cVD oYb3/XLRkUnTnU79wSmkkGkUzbWNYIfAVyldp4sBTED+P9qrTyIVrfXz+XdFqh5KOP0EvMwkpbJ yTK8j4VcqIk/gnYCt1rxJWpNaKhYnR5pnS8ZwBZoQRv65r+aL2X8aC0alxvP3GIhvtycwpvXqIS O31jycUA3geNDqo6ioOURmvwlZNlcSCi6mSPekD3Uw3xwHI/50LhNRwhomG8Ch/HmavMx5JExz1 4bQ968rKpBDuk//79V7zW57rndlUL/WeKMIcw8vRJsAoYuicFDjrcb5NkROY1EITiROigCAqNXQ a7gyl3vqxK9utJPUrnSYDfHlprSVA18p4hS6cnle4S1wLjA== X-Received: by 2002:a05:620a:28cf:b0:92e:5d76:743b with SMTP id af79cd13be357-92ebb600d64mr243761185a.56.1783363629502; Mon, 06 Jul 2026 11:47:09 -0700 (PDT) X-Received: by 2002:a05:620a:28cf:b0:92e:5d76:743b with SMTP id af79cd13be357-92ebb600d64mr243756685a.56.1783363629086; Mon, 06 Jul 2026 11:47:09 -0700 (PDT) Received: from juillet.box.freepro.com ([2a05:6e02:1041:c10:b077:843a:5587:be05]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493e0078d56sm3858625e9.8.2026.07.06.11.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2026 11:47:07 -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 v5 0/3] Lenovo ThinkPad T14s EC thermal monitoring and thermal zone integration Date: Mon, 6 Jul 2026 20:46:45 +0200 Message-ID: <20260706184648.35613-1-daniel.lezcano@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-arm-msm@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: AW1haW4tMjYwNzA2MDE4OSBTYWx0ZWRfXzzMGKfxUgED8 JgDeJkzRuRGCJqfF3QBsoZ7uLw86czs92MtoP5YTyRXoWZjp1EMB++lRoZShd/7pwBZ7gSR8dFa GxWYRqoMae/QzO8h4J+rlFOFCuzhMFA= X-Proofpoint-GUID: SoBd_ZLG7TjdpevxvU9SGlS-w1b9j5B1 X-Authority-Analysis: v=2.4 cv=C6zZDwP+ c=1 sm=1 tr=0 ts=6a4bf82e cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=Jz99LMs1rTwwAPREzXgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-ORIG-GUID: SoBd_ZLG7TjdpevxvU9SGlS-w1b9j5B1 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA2MDE4OSBTYWx0ZWRfX9ABy8cV/prut zTIuiDCsNppNcBQCdv322m8lfuA8rVIxPqjJzofQIw9s3LkG+0P2bvrB0zrlhbAERYoK8X+KKCE EBS2bLdu3omJ3twxg7Relj5paGs9I6X6St1wbOqG1E47QdgsriZFBejS9xV2rW3OfxX45+2MrA5 qG+ibpbH3kdR22s82W7GTddJJhlYaAOQRL0BkiUUkIg/jMd887J3GD7sugzrgObVfPF7uqd0BYV ISDMcvg6n86zVBcqIYmhJYaXDJfTEgX5fC/JVJ/HGzvBWcj9oYuV0POx4o7RmdagqRp5sQR2j20 /exyfApHF0VLQ4pV+oPebz+c+jkh10B/WULXSeLESpqFJoG8kdRCp+sWPqNBP03zBn7p2e23pRP tn2jTBG1Gd0kuwP1q+2wZTmW+xno4hR8ZjSz2jGQMBLIabpAFLz9tzo0I9WGm/XW4i7/Cn6sixe cRmrQvuM+na85uQKryA== 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-06_02,2026-07-06_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 clxscore=1015 spamscore=0 adultscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607060189 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: 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 tags 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 | 5 + .../qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 67 ++++++++- drivers/platform/arm64/Kconfig | 1 + drivers/platform/arm64/lenovo-thinkpad-t14s.c | 131 ++++++++++++++++++ 4 files changed, 203 insertions(+), 1 deletion(-) -- 2.53.0