]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: qcom: ipq5332: Add thermal zone nodes
authorPraveenkumar I <quic_ipkumar@quicinc.com>
Mon, 10 Feb 2025 12:04:34 +0000 (17:34 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 24 Feb 2025 04:48:51 +0000 (22:48 -0600)
This patch adds thermal zone nodes for sensors present in
IPQ5332.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com>
Link: https://lore.kernel.org/r/20250210120436.821684-5-quic_mmanikan@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/ipq5332.dtsi

index cb3657bb8aee6a045201ea3c37d699cf00c95821..69dda757925d310845f700b60a35e84385c0d500 100644 (file)
                };
        };
 
+       thermal-zones {
+               rfa-0-thermal {
+                       thermal-sensors = <&tsens 11>;
+
+                       trips {
+                               rfa-0-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               rfa-1-thermal {
+                       thermal-sensors = <&tsens 12>;
+
+                       trips {
+                               rfa-1-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               misc-thermal {
+                       thermal-sensors = <&tsens 13>;
+
+                       trips {
+                               misc-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-top-thermal {
+                       polling-delay-passive = <100>;
+                       thermal-sensors = <&tsens 14>;
+
+                       trips {
+                               cpu-top-critical {
+                                       temperature = <115000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+
+                               cpu-passive {
+                                       temperature = <105000>;
+                                       hysteresis = <1000>;
+                                       type = "passive";
+                               };
+                       };
+               };
+
+               top-glue-thermal {
+                       thermal-sensors = <&tsens 15>;
+
+                       trips {
+                               top-glue-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
+
        timer {
                compatible = "arm,armv8-timer";
                interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,