mvebu: LS421DE: fix the thermal zones
[openwrt/openwrt.git] / target / linux / mvebu / files / arch / arm / boot / dts / armada-370-buffalo-ls421de.dts
index dee271541e3acee3e355e902c1b98087fd84c41d..57f1acf5f1eaffada69946713e986b3d21a631dc 100644 (file)
        };
 
        thermal-zones {
-               chassis-thermal {
+               hdd-thermal {
                        polling-delay = <20000>;
                        polling-delay-passive = <2000>;
 
-                       thermal-sensors = <&hdd0_temp>, <&hdd1_temp>;
-                       coefficients = <1 1>;
+                       thermal-sensors = <&hdd0_temp>; /* only one drivetemp sensor is supported */
 
                        trips {
-                               chassis_alert1: chassis-alert1 {
+                               hdd_alert1: trip1 {
                                        temperature = <36000>;
                                        hysteresis = <2000>;
                                        type = "active";
                                };
-                               chassis_alert2: chassis-alert2 {
-                                       temperature = <46000>;
+                               hdd_alert2: trip2 {
+                                       temperature = <44000>;
                                        hysteresis = <2000>;
                                        type = "active";
                                };
-                               chassis_alert3: chassis-alert3 {
-                                       temperature = <56000>;
+                               hdd_alert3: trip3 {
+                                       temperature = <52000>;
                                        hysteresis = <2000>;
                                        type = "passive";
                                };
-                               chassis_crit: chassis-crit {
-                                       temperature = <66000>;
+                               hdd_crit: trip4 {
+                                       temperature = <60000>;
                                        hysteresis = <2000>;
                                        type = "critical";
                                };
 
                        cooling-maps {
                                map1 {
-                                       trip = <&chassis_alert1>;
+                                       trip = <&hdd_alert1>;
                                        cooling-device = <&system_fan THERMAL_NO_LIMIT 1>;
                                };
                                map2 {
-                                       trip = <&chassis_alert2>;
+                                       trip = <&hdd_alert2>;
                                        cooling-device = <&system_fan 2 2>;
                                };
                                map3 {
-                                       trip = <&chassis_alert3>;
+                                       trip = <&hdd_alert3>;
                                        cooling-device = <&system_fan 3 THERMAL_NO_LIMIT>;
                                };
                        };
                };
+
+               ethphy-thermal {
+                       polling-delay = <20000>;
+                       polling-delay-passive = <2000>;
+
+                       thermal-sensors = <&ethphy0>;
+
+                       trips {
+                               ethphy_alert1: trip1 {
+                                       temperature = <65000>;
+                                       hysteresis = <4000>;
+                                       type = "passive";
+                               };
+
+                               ethphy_crit: trip2 {
+                                       temperature = <100000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+
+                       cooling-maps {
+                               map1 {
+                                       trip = <&ethphy_alert1>;
+                                       cooling-device = <&system_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+
+                       };
+               };
        };
 
        gpio_keys {
                marvell,reg-init = <0x3 0x10 0x1 0x1991>, /* LED function */
                                   <0x3 0x11 0x1 0x4401>, /* LED polarity */
                                   <0x3 0x12 0x1 0x4905>; /* LED timer */
+               #thermal-sensor-cells = <0>;
        };
 };