Skip to content

Commit d394039

Browse files
Anson-HuangShawn Guo
authored andcommitted
arm64: dts: imx8qxp-mek: Add PMIC thermal zone support
i.MX8QXP MEK board has PMIC thermal sensor, add support for it. Signed-off-by: Anson Huang <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent bc3895b commit d394039

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

arch/arm64/boot/dts/freescale/imx8qxp-mek.dts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,39 @@
139139
status = "okay";
140140
};
141141

142+
&thermal_zones {
143+
pmic-thermal0 {
144+
polling-delay-passive = <250>;
145+
polling-delay = <2000>;
146+
thermal-sensors = <&tsens IMX_SC_R_PMIC_0>;
147+
148+
trips {
149+
pmic_alert0: trip0 {
150+
temperature = <110000>;
151+
hysteresis = <2000>;
152+
type = "passive";
153+
};
154+
155+
pmic_crit0: trip1 {
156+
temperature = <125000>;
157+
hysteresis = <2000>;
158+
type = "critical";
159+
};
160+
};
161+
162+
cooling-maps {
163+
map0 {
164+
trip = <&pmic_alert0>;
165+
cooling-device =
166+
<&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
167+
<&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
168+
<&A35_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
169+
<&A35_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
170+
};
171+
};
172+
};
173+
};
174+
142175
&usdhc1 {
143176
assigned-clocks = <&clk IMX_CONN_SDHC0_CLK>;
144177
assigned-clock-rates = <200000000>;

0 commit comments

Comments
 (0)