]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: colibri-imx8x: Add PMIC thermal zone
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Sun, 1 Sep 2024 15:57:16 +0000 (17:57 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 4 Sep 2024 09:36:23 +0000 (17:36 +0800)
Add PMIC thermal zones.

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8dx-colibri.dtsi
arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi

index 66b0fcc6687df3f16fe395019f43608efa1e0398..4d1ad052c5b661a06bb6076c180dbc951ff7d491 100644 (file)
@@ -9,3 +9,14 @@
 / {
        model = "Toradex Colibri iMX8DX Module";
 };
+
+&thermal_zones {
+       pmic-thermal {
+               cooling-maps {
+                       map0 {
+                               cooling-device = <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                                <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       };
+               };
+       };
+};
index 60cf4e4000525b30a34878bc5f0f33043bb0a234..bc1577b5f1ea59b948227d7780f1cb82cb5689d5 100644 (file)
@@ -88,8 +88,6 @@
        vref-supply = <&reg_module_vref_1v8>;
 };
 
-/* TODO Cooling maps for DX */
-
 &cpu_alert0 {
        hysteresis = <2000>;
        temperature = <90000>;
        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 {
+                       pmic_cooling_map0: map0 {
+                               trip = <&pmic_alert0>;
+                               cooling-device = <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                                <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                                <&A35_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                                <&A35_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       };
+               };
+       };
+};
+
 &usbotg1 {
        adp-disable;
        disable-over-current;