[PATCH 3/3] arm64: dts: qcom: glymur: Add EC thermal zones
From: Anvesh Jain P
Date: Mon Sep 28 2026 - 02:37:49 EST
Add support for back cover, keyboard, and SoC thermal zones through
temperature sensors hosted on the EC for Glymur and Mahua CRDs.
Signed-off-by: Anvesh Jain P <anvesh.p@xxxxxxxxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 45 +++++++++++++++++++++++++++++++-
1 file changed, 44 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
index e27c697e3170..571c98124a40 100644
--- a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
+++ b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
@@ -594,10 +594,12 @@ &i2c9 {
status = "okay";
- embedded-controller@76 {
+ ec: embedded-controller@76 {
compatible = "qcom,glymur-crd-ec", "qcom,hamoa-crd-ec";
reg = <0x76>;
+ #thermal-sensor-cells = <1>;
+
interrupts-extended = <&tlmm 66 IRQ_TYPE_EDGE_FALLING>;
pinctrl-0 = <&ec_int_n_default>;
@@ -955,6 +957,47 @@ right_tweeter: speaker@0,1 {
};
};
+&thermal_zones {
+ ec-back-cover {
+ polling-delay = <10000>;
+ thermal-sensors = <&ec 2>;
+
+ trips {
+ trip-point0 {
+ temperature = <90000>;
+ hysteresis = <5000>;
+ type = "hot";
+ };
+ };
+ };
+
+ ec-keyboard {
+ polling-delay = <10000>;
+ thermal-sensors = <&ec 1>;
+
+ trips {
+ trip-point0 {
+ temperature = <90000>;
+ hysteresis = <5000>;
+ type = "hot";
+ };
+ };
+ };
+
+ ec-soc {
+ polling-delay = <10000>;
+ thermal-sensors = <&ec 0>;
+
+ trips {
+ trip-point0 {
+ temperature = <90000>;
+ hysteresis = <5000>;
+ type = "hot";
+ };
+ };
+ };
+};
+
&remoteproc_soccp {
firmware-name = "qcom/glymur/soccp.mbn",
"qcom/glymur/soccp_dtb.mbn";
--
2.34.1