|
3 | 3 | * |
4 | 4 | * Optional parameters: |
5 | 5 | * - "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 |
| 18 | + * in millicelsius, default 5000 (resulting in 55 °C) |
| 19 | + * - "fan_temp2_hyst" Temperature hysteris at which fan is switched back to medium speed |
| 20 | + * in millicelsius, default 5000 (resulting in 62.5 °C) |
| 21 | + * - "fan_temp3_hyst" Temperature hysteris at which fan is switched back to high speed |
| 22 | + * in millicelsius, 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) |
18 | 31 | * |
19 | 32 | * N.B. |
20 | 33 | * - Uses the software GPIO PWM kernel module instead of the Pis hardware PWMs (PWM0/PWM1). |
|
73 | 86 |
|
74 | 87 | cooling-min-state = <0>; |
75 | 88 | cooling-max-state = <4>; |
76 | | - /* PWM duty cycle values in a range from 0 to 255 |
77 | | - which correspond to thermal cooling states 0 to 4 */ |
| 89 | + /* PWM duty cycle values in a range from 0 to 255 */ |
| 90 | + /* which correspond to thermal cooling states 0 to 4 */ |
78 | 91 | cooling-levels = <0 114 152 204 255>; |
79 | 92 | }; |
80 | 93 | }; |
|
138 | 151 | }; |
139 | 152 |
|
140 | 153 | __overrides__ { |
141 | | - fan_gpio = <&pwm_gpio>,"gpios:4", |
| 154 | + fan_gpio = <&pwm_gpio>,"gpios:4", |
142 | 155 | <&pwm_gpio_pins>,"brcm,pins:0"; |
143 | 156 | fan_temp0 = <&trip0>,"temperature:0"; |
144 | 157 | fan_temp0_hyst = <&trip0>,"hysteresis:0"; |
145 | | - fan_temp0_speed = <&fan0>,"cooling-levels:4"; |
| 158 | + fan_temp0_speed = <&fan0>,"cooling-levels:4"; |
146 | 159 | fan_temp1 = <&trip1>,"temperature:0"; |
147 | 160 | fan_temp1_hyst = <&trip1>,"hysteresis:0"; |
148 | | - fan_temp1_speed = <&fan0>,"cooling-levels:8"; |
| 161 | + fan_temp1_speed = <&fan0>,"cooling-levels:8"; |
149 | 162 | fan_temp2 = <&trip2>,"temperature:0"; |
150 | 163 | fan_temp2_hyst = <&trip2>,"hysteresis:0"; |
151 | | - fan_temp2_speed = <&fan0>,"cooling-levels:12"; |
| 164 | + fan_temp2_speed = <&fan0>,"cooling-levels:12"; |
152 | 165 | fan_temp3 = <&trip3>,"temperature:0"; |
153 | 166 | fan_temp3_hyst = <&trip3>,"hysteresis:0"; |
154 | | - fan_temp3_speed = <&fan0>,"cooling-levels:16"; |
| 167 | + fan_temp3_speed = <&fan0>,"cooling-levels:16"; |
155 | 168 | }; |
156 | | - |
| 169 | + |
157 | 170 | }; |
0 commit comments