Skip to content

Commit 5ebbf98

Browse files
authored
Add files via upload
1 parent 89062c0 commit 5ebbf98

File tree

1 file changed

+31
-18
lines changed

1 file changed

+31
-18
lines changed

arch/arm/boot/dts/overlays/pwm-gpio-fan-overlay.dts

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,31 @@
33
*
44
* Optional parameters:
55
* - "fan_gpio" BCM number of the pin driving the fan, default 18 (GPIO18)
6-
* - "fan_temp0" CPU temperature at which fan is started with low speed in millicelsius, default 55000 (55 °C)
7-
* - "fan_temp1" CPU temperature at which fan is switched to medium speed in millicelsius, default 60000 (60 °C)
8-
* - "fan_temp2" CPU temperature at which fan is switched to high speed in millicelsius, default 67500 (67.5 °C)
9-
* - "fan_temp3" CPU temperature at which fan is switched to max speed in millicelsius, default 75000 (75 °C)
10-
* - "fan_temp0_hyst" Temperature hysteris at which fan is stopped in millicelsius, default 5000 (resulting in 50 °C)
11-
* - "fan_temp1_hyst" Temperature hysteris at which fan is switched back to low speed in millicelsius, default 5000 (resulting in 55 °C)
12-
* - "fan_temp2_hyst" Temperature hysteris at which fan is switched back to medium speed in millicelsius, default 5000 (resulting in 62.5 °C)
13-
* - "fan_temp3_hyst" Temperature hysteris at which fan is switched back to high speed in millicelsius, default 5000 (resulting in 70 °C)
14-
* - "fan_temp0_speed" Fan speed for low cooling state in range 0 to 255, default 114 (45% PWM duty cycle)
15-
* - "fan_temp1_speed" Fan speed for medium cooling state in range 0 to 255, default 152 (60% PWM duty cycle)
16-
* - "fan_temp2_speed" Fan speed for high cooling state in range 0 to 255, default 204 (80% PWM duty cycle)
17-
* - "fan_temp3_speed" Fan speed for max cooling state in range 0 to 255, default 255 (100% PWM duty cycle)
6+
*
7+
* - "fan_temp0" CPU temperature at which fan is started with low speed in millicelsius,
8+
* default 55000 (55 °C)
9+
* - "fan_temp1" CPU temperature at which fan is switched to medium speed in millicelsius,
10+
* default 60000 (60 °C)
11+
* - "fan_temp2" CPU temperature at which fan is switched to high speed in millicelsius,
12+
* default 67500 (67.5 °C)
13+
* - "fan_temp3" CPU temperature at which fan is switched to max speed in millicelsius,
14+
* default 75000 (75 °C)
15+
* - "fan_temp0_hyst" Temperature hysteris at which fan is stopped in millicelsius,
16+
* default 5000 (resulting in 50 °C)
17+
* - "fan_temp1_hyst" Temperature hysteris at which fan is switched back to low speed in millicelsius,
18+
* default 5000 (resulting in 55 °C)
19+
* - "fan_temp2_hyst" Temperature hysteris at which fan is switched back to medium speed in millicelsius,
20+
* default 5000 (resulting in 62.5 °C)
21+
* - "fan_temp3_hyst" Temperature hysteris at which fan is switched back to high speed in millicelsius,
22+
* default 5000 (resulting in 70 °C)
23+
* - "fan_temp0_speed" Fan speed for low cooling state in range 0 to 255,
24+
* default 114 (45% PWM duty cycle)
25+
* - "fan_temp1_speed" Fan speed for medium cooling state in range 0 to 255,
26+
* default 152 (60% PWM duty cycle)
27+
* - "fan_temp2_speed" Fan speed for high cooling state in range 0 to 255,
28+
* default 204 (80% PWM duty cycle)
29+
* - "fan_temp3_speed" Fan speed for max cooling state in range 0 to 255,
30+
* default 255 (100% PWM duty cycle)
1831
*
1932
* N.B.
2033
* - Uses the software GPIO PWM kernel module instead of the Pis hardware PWMs (PWM0/PWM1).
@@ -74,7 +87,7 @@
7487
cooling-min-state = <0>;
7588
cooling-max-state = <4>;
7689
/* PWM duty cycle values in a range from 0 to 255
77-
which correspond to thermal cooling states 0 to 4 */
90+
* which correspond to thermal cooling states 0 to 4 */
7891
cooling-levels = <0 114 152 204 255>;
7992
};
8093
};
@@ -142,16 +155,16 @@
142155
<&pwm_gpio_pins>,"brcm,pins:0";
143156
fan_temp0 = <&trip0>,"temperature:0";
144157
fan_temp0_hyst = <&trip0>,"hysteresis:0";
145-
fan_temp0_speed = <&fan0>,"cooling-levels:4";
158+
fan_temp0_speed = <&fan0>,"cooling-levels:4";
146159
fan_temp1 = <&trip1>,"temperature:0";
147160
fan_temp1_hyst = <&trip1>,"hysteresis:0";
148-
fan_temp1_speed = <&fan0>,"cooling-levels:8";
161+
fan_temp1_speed = <&fan0>,"cooling-levels:8";
149162
fan_temp2 = <&trip2>,"temperature:0";
150163
fan_temp2_hyst = <&trip2>,"hysteresis:0";
151-
fan_temp2_speed = <&fan0>,"cooling-levels:12";
164+
fan_temp2_speed = <&fan0>,"cooling-levels:12";
152165
fan_temp3 = <&trip3>,"temperature:0";
153166
fan_temp3_hyst = <&trip3>,"hysteresis:0";
154-
fan_temp3_speed = <&fan0>,"cooling-levels:16";
167+
fan_temp3_speed = <&fan0>,"cooling-levels:16";
155168
};
156-
169+
157170
};

0 commit comments

Comments
 (0)