]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: imx95: add anamix temperature thermal zone and cooling node
authorPeng Fan <peng.fan@nxp.com>
Sat, 12 Oct 2024 11:19:11 +0000 (19:19 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 22 Oct 2024 01:31:13 +0000 (09:31 +0800)
i.MX95 has two on-chip temperature sensors, one is inside anamix block.
This is to add the anamix temperature thermal zone and its cooling
device.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx95.dtsi

index a96bf8e6a1a29f06741cdf5ac20e414ce71b5c03..ae8e09203ef431d8869fdce79df9f31a3e55971c 100644 (file)
                                };
                        };
                };
+
+               ana-thermal {
+                       polling-delay-passive = <250>;
+                       polling-delay = <2000>;
+                       thermal-sensors = <&scmi_sensor 0>;
+                       trips {
+                               ana_alert: trip0 {
+                                       temperature = <105000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+
+                               ana_crit0: trip1 {
+                                       temperature = <125000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&ana_alert>;
+                                       cooling-device =
+                                               <&A55_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                               <&A55_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                               <&A55_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                               <&A55_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                               <&A55_4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                               <&A55_5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+               };
        };
 
        psci {