]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
arm64: dts: qcom: pm8994: Add thermal-zones for temp alarm
authorKonrad Dybcio <konradybcio@gmail.com>
Mon, 5 Oct 2020 15:03:03 +0000 (17:03 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 11 Nov 2020 04:54:15 +0000 (22:54 -0600)
This will shut down the platform in case the PMIC overheats.

Signed-off-by: Konrad Dybcio <konradybcio@gmail.com>
Link: https://lore.kernel.org/r/20201005150313.149754-4-konradybcio@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/pm8994.dtsi

index 7825208b0d8b1efaef882ba974c28b52102ff961..9ab5657f7d23124f0a88e9b1d5d3dddb41e2b963 100644 (file)
@@ -4,6 +4,30 @@
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/spmi/spmi.h>
 
+/ {
+       thermal-zones {
+               pm8994 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <1000>;
+
+                       thermal-sensors = <&pm8994_temp>;
+
+                       trips {
+                               pm8994_alert0: pm8994-alert0 {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               pm8994_crit: pm8994-crit {
+                                       temperature = <125000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
+};
+
 &spmi_bus {
 
        pmic@0 {