Skip to content

Commit 84e72ea

Browse files
mlehtimaandersson
authored andcommitted
ARM: dts: qcom: pm8841: Add thermal zone config
Add thermal zone for the PMIC thermal sensor. Temperatures are based on downstream values, except for critical trip point where 140°C is used instead of 145°C due to limitations without a configured ADC. 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-3-matti.lehtimaki@gmail.com
1 parent 1b118df commit 84e72ea

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

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

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,37 @@
22
#include <dt-bindings/interrupt-controller/irq.h>
33
#include <dt-bindings/spmi/spmi.h>
44

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

738
pm8841_0: pm8841@4 {
@@ -20,7 +51,7 @@
2051
#interrupt-cells = <2>;
2152
};
2253

23-
temp-alarm@2400 {
54+
pm8841_temp: temp-alarm@2400 {
2455
compatible = "qcom,spmi-temp-alarm";
2556
reg = <0x2400>;
2657
interrupts = <4 0x24 0 IRQ_TYPE_EDGE_RISING>;

0 commit comments

Comments
 (0)