Skip to content

Commit 637cc97

Browse files
mlehtimaandersson
authored andcommitted
ARM: dts: qcom: pm8941: Add thermal zone config
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
1 parent 84e72ea commit 637cc97

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

arch/arm/boot/dts/qcom-pm8941.dtsi

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,37 @@
33
#include <dt-bindings/interrupt-controller/irq.h>
44
#include <dt-bindings/spmi/spmi.h>
55

6+
7+
/ {
8+
thermal-zones {
9+
pm8941-thermal {
10+
polling-delay-passive = <100>;
11+
polling-delay = <0>;
12+
thermal-sensors = <&pm8941_temp>;
13+
14+
trips {
15+
trip0 {
16+
temperature = <105000>;
17+
hysteresis = <2000>;
18+
type = "passive";
19+
};
20+
21+
trip1 {
22+
temperature = <125000>;
23+
hysteresis = <2000>;
24+
type = "hot";
25+
};
26+
27+
crit {
28+
temperature = <145000>;
29+
hysteresis = <2000>;
30+
type = "critical";
31+
};
32+
};
33+
};
34+
};
35+
};
36+
637
&spmi_bus {
738

839
pm8941_0: pm8941@0 {

0 commit comments

Comments
 (0)