]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
arm64: dts: qcom: pm6150: Add thermal zone for PMIC on-die temperature
authorMatthias Kaehlcke <mka@chromium.org>
Thu, 3 Jun 2021 15:12:34 +0000 (08:12 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 6 Jun 2021 03:36:15 +0000 (22:36 -0500)
Add a thermal zone for the pm6150 on-die temperature. The system should
try to shut down orderly when the temperature reaches the critical trip
point at 115°C, otherwise the PMIC will perform a HW power off at 145°C.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/20210603081215.v2.1.Id4510e9e4baaa3f6c9fdd5cdf4d8606e63c262e3@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/pm6150.dtsi

index 8ab4f1f78bbf661eda4a2dcb24e55978b07776bd..8a4972e6a24c1e3efce5107adcd652ff5dcc8719 100644 (file)
@@ -7,6 +7,30 @@
 #include <dt-bindings/spmi/spmi.h>
 #include <dt-bindings/thermal/thermal.h>
 
+/ {
+       thermal-zones {
+               pm6150_thermal: pm6150-thermal {
+                       polling-delay-passive = <100>;
+                       polling-delay = <0>;
+                       thermal-sensors = <&pm6150_temp>;
+
+                       trips {
+                               pm6150_trip0: trip0 {
+                                       temperature = <95000>;
+                                       hysteresis = <0>;
+                                       type = "passive";
+                               };
+
+                               pm6150_crit: crit {
+                                       temperature = <115000>;
+                                       hysteresis = <0>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
+};
+
 &spmi_bus {
        pm6150_lsid0: pmic@0 {
                compatible = "qcom,pm6150", "qcom,spmi-pmic";