arm64: dts: ls1043a: add more thermal zone support
authorYuantian Tang <andy.tang@nxp.com>
Mon, 29 Jun 2020 07:45:19 +0000 (15:45 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 13 Jul 2020 02:17:14 +0000 (10:17 +0800)
There are 5 thermal zones in ls1043a soc. Add the
rest thermal zone nodes to enable them.

Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi

index 55ceae7a8b3df72cd2e14a6bb01d886ffe259287..aaf79924159c94ef97c102e2205aadb782a974a3 100644 (file)
        };
 
        thermal-zones {
-               cpu_thermal: cpu-thermal {
+               ddr-controller {
                        polling-delay-passive = <1000>;
                        polling-delay = <5000>;
+                       thermal-sensors = <&tmu 0>;
 
+                       trips {
+                               ddr-ctrler-alert {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+
+                               ddr-ctrler-crit {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               serdes {
+                       polling-delay-passive = <1000>;
+                       polling-delay = <5000>;
+                       thermal-sensors = <&tmu 1>;
+
+                       trips {
+                               serdes-alert {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+
+                               serdes-crit {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               fman {
+                       polling-delay-passive = <1000>;
+                       polling-delay = <5000>;
+                       thermal-sensors = <&tmu 2>;
+
+                       trips {
+                               fman-alert {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+
+                               fman-crit {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               core-cluster {
+                       polling-delay-passive = <1000>;
+                       polling-delay = <5000>;
                        thermal-sensors = <&tmu 3>;
 
                        trips {
-                               cpu_alert: cpu-alert {
+                               core_cluster_alert: core-cluster-alert {
                                        temperature = <85000>;
                                        hysteresis = <2000>;
                                        type = "passive";
                                };
-                               cpu_crit: cpu-crit {
+
+                               core_cluster_crit: core-cluster-crit {
                                        temperature = <95000>;
                                        hysteresis = <2000>;
                                        type = "critical";
 
                        cooling-maps {
                                map0 {
-                                       trip = <&cpu_alert>;
+                                       trip = <&core_cluster_alert>;
                                        cooling-device =
                                                <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
                                                <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
                                };
                        };
                };
+
+               sec {
+                       polling-delay-passive = <1000>;
+                       polling-delay = <5000>;
+                       thermal-sensors = <&tmu 4>;
+
+                       trips {
+                               sec-alert {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+
+                               sec-crit {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
        };
 
        timer {