]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx8-apalis: add thermal nodes
authorMax Krummenacher <max.krummenacher@toradex.com>
Mon, 27 Oct 2025 09:30:08 +0000 (10:30 +0100)
committerShawn Guo <shawnguo@kernel.org>
Sun, 16 Nov 2025 03:55:56 +0000 (11:55 +0800)
Add the thermal-zones and cooling-maps nodes for the PMIC device.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi
arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1.dtsi

index 6ebeade2ce727e4ca4a65b999c91b82b4d35fae1..686fce7443bbdb2d721ba19a306ea9864f5384de 100644 (file)
                spdif-out;
        };
 
+       thermal-zones {
+               pmic-thermal {
+                       polling-delay-passive = <250>;
+                       polling-delay = <2000>;
+                       thermal-sensors = <&tsens IMX_SC_R_PMIC_0>;
+
+                       cooling-maps {
+                               cooling_maps_map0: map0 {
+                                       trip = <&pmic_alert0>;
+                               };
+                       };
+
+                       trips {
+                               pmic_alert0: trip0 {
+                                       hysteresis = <2000>;
+                                       temperature = <110000>;
+                                       type = "passive";
+                               };
+
+                               pmic_crit0: trip1 {
+                                       hysteresis = <2000>;
+                                       temperature = <125000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
+
        touchscreen: touchscreen {
                compatible = "toradex,vf50-touchscreen";
                interrupt-parent = <&lsio_gpio3>;
        status = "okay";
 };
 
-/* TODO: Thermal Zones */
-
 /* TODO: Apalis USBH2, Apalis USBH3 and on-module Wi-Fi via on-module HSIC Hub */
 
 /* Apalis USBH4 */
index b1c3f331c4ed068416bffeddae4ca33acbb7a642..8a37cbe922accbde30693f415930b1c28eeb3cf3 100644 (file)
        model = "Toradex Apalis iMX8QM V1.1";
 };
 
-/* TODO: Cooling Maps */
+&cooling_maps_map0 {
+       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>,
+               <&A72_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+               <&A72_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+};