]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: imx8qm-mek: add pmic thermal-zones
authorFrank Li <Frank.Li@nxp.com>
Tue, 28 Oct 2025 20:30:46 +0000 (16:30 -0400)
committerShawn Guo <shawnguo@kernel.org>
Sun, 16 Nov 2025 09:45:53 +0000 (17:45 +0800)
Add pmic thermal-zones.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8qm-mek.dts

index 10ee5c05b308217bd0a9e45f310c02b9b41ce703..c11789be0ef9bdd7f4b0d805fd966ac314e05f61 100644 (file)
        status = "okay";
 };
 
+&thermal_zones {
+       pmic-thermal {
+               polling-delay-passive = <250>;
+               polling-delay = <2000>;
+               thermal-sensors = <&tsens IMX_SC_R_PMIC_0>;
+
+               trips {
+                       pmic_alert0: trip0 {
+                               temperature = <110000>;
+                               hysteresis = <2000>;
+                               type = "passive";
+                       };
+
+                       pmic_crit0: trip1 {
+                               temperature = <125000>;
+                               hysteresis = <2000>;
+                               type = "critical";
+                       };
+               };
+
+               cooling-maps {
+                       map0 {
+                               trip = <&pmic_alert0>;
+                               cooling-device = <&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                                <&A53_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                                <&A53_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                                <&A53_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       };
+               };
+       };
+};
+
 &iomuxc {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_hog>;