]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx8mp: add idle cooling devices to cpu core
authorMartin Kepplinger-Novaković <martink@posteo.de>
Mon, 13 Oct 2025 06:59:19 +0000 (06:59 +0000)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Oct 2025 05:54:48 +0000 (13:54 +0800)
The thermal framework can use the cpu-idle-states as
described for imx8mp as an alternative or in parallel to
cpufreq.

Add the DT node to the cpu so the cooling devices will be present
and the thermal zone descriptions can use them.

Signed-off-by: Martin Kepplinger-Novaković <martink@posteo.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp.dtsi

index a3de6604e29f25f21155c547990e34ff3e62a1e6..9b59f53952d53713ec309344e3f3a91925a4d634 100644 (file)
                        operating-points-v2 = <&a53_opp_table>;
                        #cooling-cells = <2>;
                        cpu-idle-states = <&cpu_pd_wait>;
+
+                       cpu0_therm: thermal-idle {
+                               #cooling-cells = <2>;
+                               duration-us = <10000>;
+                               exit-latency-us = <700>;
+                       };
                };
 
                A53_1: cpu@1 {
                        operating-points-v2 = <&a53_opp_table>;
                        #cooling-cells = <2>;
                        cpu-idle-states = <&cpu_pd_wait>;
+
+                       cpu1_therm: thermal-idle {
+                               #cooling-cells = <2>;
+                               duration-us = <10000>;
+                               exit-latency-us = <700>;
+                       };
                };
 
                A53_2: cpu@2 {
                        operating-points-v2 = <&a53_opp_table>;
                        #cooling-cells = <2>;
                        cpu-idle-states = <&cpu_pd_wait>;
+
+                       cpu2_therm: thermal-idle {
+                               #cooling-cells = <2>;
+                               duration-us = <10000>;
+                               exit-latency-us = <700>;
+                       };
                };
 
                A53_3: cpu@3 {
                        operating-points-v2 = <&a53_opp_table>;
                        #cooling-cells = <2>;
                        cpu-idle-states = <&cpu_pd_wait>;
+
+                       cpu3_therm: thermal-idle {
+                               #cooling-cells = <2>;
+                               duration-us = <10000>;
+                               exit-latency-us = <700>;
+                       };
                };
 
                A53_L2: l2-cache0 {