ARM: dts: qcom: pm8941: Add thermal zone config
authorMatti Lehtimäki <matti.lehtimaki@gmail.com>
Mon, 29 May 2023 22:15:01 +0000 (01:15 +0300)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Jun 2023 23:28:15 +0000 (16:28 -0700)
Add thermal zone for the PMIC thermal sensor.

Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230529221501.43455-4-matti.lehtimaki@gmail.com
arch/arm/boot/dts/qcom-pm8941.dtsi

index a821f03..b3e246b 100644 (file)
@@ -3,6 +3,37 @@
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/spmi/spmi.h>
 
+
+/ {
+       thermal-zones {
+               pm8941-thermal {
+                       polling-delay-passive = <100>;
+                       polling-delay = <0>;
+                       thermal-sensors = <&pm8941_temp>;
+
+                       trips {
+                               trip0 {
+                                       temperature = <105000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+
+                               trip1 {
+                                       temperature = <125000>;
+                                       hysteresis = <2000>;
+                                       type = "hot";
+                               };
+
+                               crit {
+                                       temperature = <145000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
+};
+
 &spmi_bus {
 
        pm8941_0: pm8941@0 {