diff options
author | Konrad Dybcio <konradybcio@gmail.com> | 2020-10-05 18:03:03 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2020-11-11 07:54:15 +0300 |
commit | 0763f58540419874ebeb25eb9869638666d62ed4 (patch) | |
tree | 429364b178f5d63d459b238c17aff5b1194dcbdd /arch/arm64/boot/dts/qcom/pm8994.dtsi | |
parent | 4778b2f1a3f0c97caa184a695b308b874cb2d3cd (diff) | |
download | linux-0763f58540419874ebeb25eb9869638666d62ed4.tar.xz |
arm64: dts: qcom: pm8994: Add thermal-zones for temp alarm
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>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/pm8994.dtsi')
-rw-r--r-- | arch/arm64/boot/dts/qcom/pm8994.dtsi | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index 7825208b0d8b..9ab5657f7d23 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -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 { |