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 C478E36C0CF for ; Mon, 6 Jul 2026 18:47:11 +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 (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 666FF412981482 for ; Mon, 6 Jul 2026 18:47:10 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-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f89kgtjhg-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-f199.google.com with SMTP id af79cd13be357-92e623b0e95so280814185a.3 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=FY7+x1SGZWrhEY99BxR7VPFu6RnSmrcONXns38MiDzQh01Gl2psDL5gmDjC0wOQwTr T/QAVg8LsnhrsInz70CKlfkIYrWD/6Vr64eEh/8jhtB3cm3qEQuNfmtbAYZMQgiwjSW/ Atf3Y4zZYylt1Lto3imUHYXH98FrKolIELKMf0qbXjySD4rOBUwNA6i8SkxBoEINQy8m WU2KtgolWAiBv1GKuGZFSreFSvrkQrPVMwYuU2GWOxSLnRaZDyB4UFazCUIVAbDNZo5R WFXl86eJvBR2/EWvnxQYEaMp3lfsMa4SkJQ9ehPd11+wC3byjMRi1poJncAwlaxxtBNg 8THQ== X-Forwarded-Encrypted: i=1; AHgh+Rp+m8fnqP/vAROme/jctaTBCr83jOXzAnDrQjk3csy1Qgdhfoh5kRKWMrX9SjNkwLjX6PSDrOs4jKW2lkY=@vger.kernel.org X-Gm-Message-State: AOJu0YzJMy/+S0TGI7lD/GD+FjstHZlWVUOvZEo2JCJBJM0sF1Mf9QND fydlNSZ0B68NtEyBawY/rDPfM36MN007vFERKEltXsKOkZWFpQoZGiB7lfAd7Y3z6f9EONk7ETD b/5cQm3CwxXJ2MXD8fiNXiounQStiqNJIpLedb3F4mEPjKI0dOGQuBqKZF1P5MuFGZCs= X-Gm-Gg: AfdE7cnd9LB96gv63eEEMz7IP0jpcYuXzwRg6FJF0NP2DiACVzNyLYxZORZrUyXNW42 dfiiPPErVYWeUCDD4H/6zgRrZ3TgHNMXXky8eZOGbYUM97WyJVZ6/7zyKNL3u3qCFbVDcrO7my8 dyc0dPjhd0fxI1iUFFbHlPgOsZJSilZ4caZyjKy7J5YujtWueMVsFZMMdYfiIzeXK3f5PEZHbHs 9U6wCvsl1tBqIwgM2DHwNjz8M66OpkOdpCTxihM4bFMxgNGKlMAdS2ldVH6n9yoOPNo/5g4RDDI qGCmdSC7OFn0bdtFjt3FTYvhov9+Qte0SROurcxB4WFfWWwmI1f9r7u4GMKxIF055QaWSnsgbsO YGO2qZU9YhncR+iySo/5v0IXw4SWiWJCfc35Ak1fVnoMLhA== X-Received: by 2002:a05:620a:28cf:b0:92e:5d76:743b with SMTP id af79cd13be357-92ebb600d64mr243761885a.56.1783363629507; 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-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-GUID: QvZ_V9LXVUXYdhN2que1ik0K6kr4h4Lc X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA2MDE4OSBTYWx0ZWRfX3UCJDHReGTB7 rlokvnlg6e2kRqz/TiMMV+2npUS/L1HNKuVN2zBykGa6nNJGhlyMKy3MgBUTNip4u26h7nbfvW6 5BaUYsLO8K8/PLsh8vyewhu9tEXxLkrd0++8Zz75fhD/3GatFzNvHCFKkPH4K6e15XOfIHm8tDh khXbY3tFI+mwA4GCmWVMo9uE339gwk+h9nwDgL/Ix/BZd9TjLPXAFuX5RfPuEWDzftMQMgtoTPK NhQpK1gdu8/FfNMFLlYiqCEZuUo31yahr4Lb04SoSA23ZP4mO6bl8lIY6bT4N7kxx+rnBmsAvdx Fh9IidzLghJbKve8d1rX3DdH/9qu2n37+NnpUGQCd/3g8UFWFJ9o54bgZGuDeJFwzzcLn+bsXyf QQBtNh6FrUdfQVFzX0EIeDZDIpODdt7Ad+SD/LcqcIKDo6P194s0FuZsFW4pqnAO1d5kSlSa9Su zMEBRV/65bcSl4ZmxRQ== X-Proofpoint-ORIG-GUID: QvZ_V9LXVUXYdhN2que1ik0K6kr4h4Lc X-Proofpoint-Spam-Info: AW1haW4tMjYwNzA2MDE4OSBTYWx0ZWRfX47MiqtMRmjOE Ub4j2lWbnUETRInAky5Up8+1GcJOPHY55eyzd7qKfUgbX23nPiWR5eykNOxmISnEnObX691FWr1 P7KAG/YiA2Gil65MJRGEkTrPbxRMfC4= X-Authority-Analysis: v=2.4 cv=c6Sbhx9l c=1 sm=1 tr=0 ts=6a4bf82e cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=Jz99LMs1rTwwAPREzXgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW: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-06_02,2026-07-06_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 clxscore=1015 adultscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 impostorscore=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