8,367
edits
Changes
→How to use the cooling PWM fan
<li><p>The fan on the development board can adjust the speed and switch through PWM, and the PWM pins used are '''PWM3_IR_M1'''</p></li>
<li><p>The Linux system uses the [https://github.com/orangepi-xunlong/linux-orangepi/blob/orange-pi-5.10-rk3588/drivers/hwmon/pwm-fan.c '''pwm-fan'''] driver to control the fan by default. The DTS configuration used is shown below:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>'''orange-pi-5.10-rk3588/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts'''</p>
::<p>fan: pwm-fan {</p>::::<p>compatible = "pwm-fan";</p>::::<p>#cooling-cells = <2>;</p>::::<p>pwms = <&pwm3 0 50000 0>;</p>::::<p>cooling-levels = <0 50 100 150 200 255>;</p>::::<p>rockchip,temp-trips = <</p>::::::<p>50000 1</p>::::::<p>55000 2</p>::::::<p>60000 3</p>::::::<p>65000 4</p>::::::<p>70000 5</p>::::<p>>;</p> ::::<p>status = "okay";</p>::<p>};</p>|}
<p>Among it:</p>
<ol style="list-style-type: lower-alpha;">
<li><p>'''pwms = <&pwm3 0 50000 0>''':The PWM of the control fan is > PWM3。PWM3.</p></li><li><p>'''cooling-levels = <0 50 100 150 200 255>''':It is used to > configure the gear of the speed (PWM duty cycle). The number > and size of the gear can be defined by itself. Here are 6 > gears. The range of the speed is 0-255。255.</p></li><li><p>'''rockchip,temp-trips''':It is used to configure the > corresponding relationship between the CPU temperature and the > fan speed gear. It can be adjusted according to actual needs. > The above configuration 50 degrees corresponding gear 1, 70 > degrees to the corresponding gear 5。5.</p> {| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big><p>'''It is normal to find that the fan does not turn after turning, because the temperature of the CPU after booting is generally lower than 50 degrees. Only when the temperature of the CPU reaches 50 degrees, the fan will start to turn。turn.'''</p> <p>'''Use the following commands to make all CPUs run, and then you can see that the fan will start working:'''</p></big><p>orangepi@orangepi:~$ '''for i in $(seq 0 $(( $(nproc --all) - 1)) ); do (taskset -c $i yes > /dev/null &); done'''</p>|}</li></ol>
</li></ol>
<span id="the-method-of-shutting-down-and-restarting-the-development-board"></span>
== The method of shutting down and restarting the development board ==