|
@@ -33,9 +33,40 @@
|
|
|
};
|
|
|
};
|
|
|
|
|
|
- pwm-fan {
|
|
|
+ fan0: pwm-fan {
|
|
|
compatible = "pwm-fan";
|
|
|
pwms = <&pwm 0 10000 0>;
|
|
|
+ cooling-min-state = <0>;
|
|
|
+ cooling-max-state = <3>;
|
|
|
+ #cooling-cells = <2>;
|
|
|
+ cooling-levels = <0 102 170 230>;
|
|
|
+ };
|
|
|
+
|
|
|
+ thermal-zones {
|
|
|
+ cpu_thermal: cpu-thermal {
|
|
|
+ cooling-maps {
|
|
|
+ map0 {
|
|
|
+ trip = <&cpu_alert1>;
|
|
|
+ cooling-device = <&cpu0 7 7>;
|
|
|
+ };
|
|
|
+ map1 {
|
|
|
+ trip = <&cpu_alert2>;
|
|
|
+ cooling-device = <&cpu0 13 13>;
|
|
|
+ };
|
|
|
+ map2 {
|
|
|
+ trip = <&cpu_alert0>;
|
|
|
+ cooling-device = <&fan0 0 1>;
|
|
|
+ };
|
|
|
+ map3 {
|
|
|
+ trip = <&cpu_alert1>;
|
|
|
+ cooling-device = <&fan0 1 2>;
|
|
|
+ };
|
|
|
+ map4 {
|
|
|
+ trip = <&cpu_alert2>;
|
|
|
+ cooling-device = <&fan0 2 3>;
|
|
|
+ };
|
|
|
+ };
|
|
|
+ };
|
|
|
};
|
|
|
};
|
|
|
|