Skip to content

Commit fa40ca0

Browse files
Bartosz Golaszewskiandersson
authored andcommitted
arm64: dts: qcom: sa8775p: pmic: add thermal zones
Add the thermal zones and associated alarm nodes for the PMICs that have them hooked up on sa8775p-ride. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230327125316.210812-12-brgl@bgdev.pl
1 parent cecff1f commit fa40ca0

1 file changed

Lines changed: 112 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,104 @@
66
#include <dt-bindings/input/input.h>
77
#include <dt-bindings/spmi/spmi.h>
88

9+
/ {
10+
thermal-zones {
11+
pmm8654au_0_thermal: pm8775-0-thermal {
12+
polling-delay-passive = <100>;
13+
polling-delay = <0>;
14+
thermal-sensors = <&pmm8654au_0_temp_alarm>;
15+
16+
trips {
17+
trip0 {
18+
temperature = <105000>;
19+
hysteresis = <0>;
20+
type = "passive";
21+
};
22+
23+
trip1 {
24+
temperature = <125000>;
25+
hysteresis = <0>;
26+
type = "critical";
27+
};
28+
};
29+
};
30+
31+
pmm8654au_1_thermal: pm8775-1-thermal {
32+
polling-delay-passive = <100>;
33+
polling-delay = <0>;
34+
thermal-sensors = <&pmm8654au_1_temp_alarm>;
35+
36+
trips {
37+
trip0 {
38+
temperature = <105000>;
39+
hysteresis = <0>;
40+
type = "passive";
41+
};
42+
43+
trip1 {
44+
temperature = <125000>;
45+
hysteresis = <0>;
46+
type = "critical";
47+
};
48+
};
49+
};
50+
51+
pmm8654au_2_thermal: pm8775-2-thermal {
52+
polling-delay-passive = <100>;
53+
polling-delay = <0>;
54+
thermal-sensors = <&pmm8654au_2_temp_alarm>;
55+
56+
trips {
57+
trip0 {
58+
temperature = <105000>;
59+
hysteresis = <0>;
60+
type = "passive";
61+
};
62+
63+
trip1 {
64+
temperature = <125000>;
65+
hysteresis = <0>;
66+
type = "critical";
67+
};
68+
};
69+
};
70+
71+
pmm8654au_3_thermal: pm8775-3-thermal {
72+
polling-delay-passive = <100>;
73+
polling-delay = <0>;
74+
thermal-sensors = <&pmm8654au_3_temp_alarm>;
75+
76+
trips {
77+
trip0 {
78+
temperature = <105000>;
79+
hysteresis = <0>;
80+
type = "passive";
81+
};
82+
83+
trip1 {
84+
temperature = <125000>;
85+
hysteresis = <0>;
86+
type = "critical";
87+
};
88+
};
89+
};
90+
};
91+
};
92+
993
&spmi_bus {
1094
pmm8654au_0: pmic@0 {
1195
compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
1296
reg = <0x0 SPMI_USID>;
1397
#address-cells = <1>;
1498
#size-cells = <0>;
1599

100+
pmm8654au_0_temp_alarm: temp-alarm@a00 {
101+
compatible = "qcom,spmi-temp-alarm";
102+
reg = <0xa00>;
103+
interrupts-extended = <&spmi_bus 0x0 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
104+
#thermal-sensor-cells = <0>;
105+
};
106+
16107
pmm8654au_0_pon: pon@1200 {
17108
compatible = "qcom,pmk8350-pon";
18109
reg = <0x1200>, <0x800>;
@@ -41,19 +132,40 @@
41132
reg = <0x2 SPMI_USID>;
42133
#address-cells = <1>;
43134
#size-cells = <0>;
135+
136+
pmm8654au_1_temp_alarm: temp-alarm@a00 {
137+
compatible = "qcom,spmi-temp-alarm";
138+
reg = <0xa00>;
139+
interrupts-extended = <&spmi_bus 0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
140+
#thermal-sensor-cells = <0>;
141+
};
44142
};
45143

46144
pmm8654au_2: pmic@4 {
47145
compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
48146
reg = <0x4 SPMI_USID>;
49147
#address-cells = <1>;
50148
#size-cells = <0>;
149+
150+
pmm8654au_2_temp_alarm: temp-alarm@a00 {
151+
compatible = "qcom,spmi-temp-alarm";
152+
reg = <0xa00>;
153+
interrupts-extended = <&spmi_bus 0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
154+
#thermal-sensor-cells = <0>;
155+
};
51156
};
52157

53158
pmm8654au_3: pmic@6 {
54159
compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
55160
reg = <0x6 SPMI_USID>;
56161
#address-cells = <1>;
57162
#size-cells = <0>;
163+
164+
pmm8654au_3_temp_alarm: temp-alarm@a00 {
165+
compatible = "qcom,spmi-temp-alarm";
166+
reg = <0xa00>;
167+
interrupts-extended = <&spmi_bus 0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
168+
#thermal-sensor-cells = <0>;
169+
};
58170
};
59171
};

0 commit comments

Comments
 (0)