ARM: dts: imx6dl: Add trip points to thermal zones on several devices
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 30 May 2023 12:03:37 +0000 (14:03 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 4 Jun 2023 13:07:10 +0000 (21:07 +0800)
Kernel v6.3-rc1 prints errors due to missing trip points in thermal
zones. These errors indicate a lack of critical temperature threshold
settings, causing warnings at boot. To silence these errors, this patch
introduces trip points into the thermal zones of several imx6dl based
devices.

The following devices are updated:
- plym2m
- prtvt7
- victgo
- vicut1

These devices are automotive grade and expected to operate up to 105C.
An exception is the plym2m, an industrial grade device, which is
certified to work up to 85C.

The added trip points act as alert thresholds but do not trigger any
actions except warnings. This behavior is by design, as these devices
should maintain their performance until the end, without any thermal
throttling.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-plym2m.dts
arch/arm/boot/dts/imx6dl-prtvt7.dts
arch/arm/boot/dts/imx6dl-victgo.dts
arch/arm/boot/dts/imx6qdl-vicut1.dtsi

index e3c10483f33bdc96c80d2de1255b7a7e749cb260..dfa8110b1d97b14eae30159acc6daf74ae482eb7 100644 (file)
                        polling-delay = <20000>;
                        polling-delay-passive = <0>;
                        thermal-sensors = <&tsens0>;
+
+                       trips {
+                               alert {
+                                       temperature = <85000>; /* millicelsius */
+                                       hysteresis = <2000>; /* millicelsius */
+                                       type = "passive";
+                               };
+                       };
                };
 
                touch-thermal0 {
                        polling-delay = <20000>;
                        polling-delay-passive = <0>;
                        thermal-sensors = <&touch_temp0>;
+
+                       trips {
+                               alert {
+                                       temperature = <85000>; /* millicelsius */
+                                       hysteresis = <2000>; /* millicelsius */
+                                       type = "passive";
+                               };
+                       };
                };
 
                touch-thermal1 {
                        polling-delay = <20000>;
                        polling-delay-passive = <0>;
                        thermal-sensors = <&touch_temp1>;
+
+                       trips {
+                               alert {
+                                       temperature = <85000>; /* millicelsius */
+                                       hysteresis = <2000>; /* millicelsius */
+                                       type = "passive";
+                               };
+                       };
                };
        };
 
index 45bc6e3245f6a6da43af3b7f87f61b641b45cdf3..568e98cb62aaf50db483edfac731b2d36b99397e 100644 (file)
                        polling-delay = <20000>;
                        polling-delay-passive = <0>;
                        thermal-sensors = <&tsens0>;
+
+                       trips {
+                               alert {
+                                       temperature = <105000>; /* millicelsius */
+                                       hysteresis = <2000>; /* millicelsius */
+                                       type = "passive";
+                               };
+                       };
                };
 
                touch-thermal0 {
                        polling-delay = <20000>;
                        polling-delay-passive = <0>;
                        thermal-sensors = <&touch_temp0>;
+
+                       trips {
+                               alert {
+                                       temperature = <105000>; /* millicelsius */
+                                       hysteresis = <2000>; /* millicelsius */
+                                       type = "passive";
+                               };
+                       };
                };
 
                touch-thermal1 {
                        polling-delay = <20000>;
                        polling-delay-passive = <0>;
                        thermal-sensors = <&touch_temp1>;
+
+                       trips {
+                               alert {
+                                       temperature = <105000>; /* millicelsius */
+                                       hysteresis = <2000>; /* millicelsius */
+                                       type = "passive";
+                               };
+                       };
                };
        };
 
index 23274be08e61ffb3e3b75205e050c637a9578e6d..4875afadb63005d101c4501b70f64761d732b86f 100644 (file)
                        polling-delay = <20000>;
                        polling-delay-passive = <0>;
                        thermal-sensors = <&tsens0>;
+
+                       trips {
+                               alert {
+                                       temperature = <105000>; /* millicelsius */
+                                       hysteresis = <2000>; /* millicelsius */
+                                       type = "passive";
+                               };
+                       };
                };
 
                touch-thermal0 {
                        polling-delay = <20000>;
                        polling-delay-passive = <0>;
                        thermal-sensors = <&touch_temp0>;
+
+                       trips {
+                               alert {
+                                       temperature = <105000>; /* millicelsius */
+                                       hysteresis = <2000>; /* millicelsius */
+                                       type = "passive";
+                               };
+                       };
                };
 
                touch-thermal1 {
                        polling-delay = <20000>;
                        polling-delay-passive = <0>;
                        thermal-sensors = <&touch_temp1>;
+
+                       trips {
+                               alert {
+                                       temperature = <105000>; /* millicelsius */
+                                       hysteresis = <2000>; /* millicelsius */
+                                       type = "passive";
+                               };
+                       };
                };
        };
 
index 74017ae5a67a09c32fc65d3d0f2c8f7f84d919cb..ca9c20e90bcf3c0d327e754877ad0dafdd4be045 100644 (file)
                        polling-delay = <20000>;
                        polling-delay-passive = <0>;
                        thermal-sensors = <&tsens0>;
+
+                       trips {
+                               alert {
+                                       temperature = <105000>; /* millicelsius */
+                                       hysteresis = <2000>; /* millicelsius */
+                                       type = "passive";
+                               };
+                       };
                };
        };
 };