arm64: dts: imx8qm: Add A72 cluster thermal zone
authorAnson Huang <Anson.Huang@nxp.com>
Thu, 31 Oct 2019 06:01:14 +0000 (14:01 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:20:29 +0000 (11:20 +0800)
Add A72 cluster thermal zone support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
arch/arm64/boot/dts/freescale/imx8qm.dtsi

index d435042..ab5abb6 100755 (executable)
@@ -48,7 +48,7 @@
                i2c1 = &i2c_rpbus_1;
        };
 
-       cpus {
+       cpus: cpus {
                #address-cells = <2>;
                #size-cells = <0>;
 
                        };
                };
 
+               cpu-thermal1 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <2000>;
+                       thermal-sensors = <&tsens IMX_SC_R_A72>;
+                       trips {
+                               cpu_alert1: trip0 {
+                                       temperature = <107000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               cpu_crit1: trip1 {
+                                       temperature = <127000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+                       cooling-maps {
+                               map0 {
+                                       trip = <&cpu_alert1>;
+                                       cooling-device =
+                                       <&A72_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+                                       <&A72_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+               };
+
                gpu-thermal0 {
                        polling-delay-passive = <250>;
                        polling-delay = <2000>;