Hi NV,
I am using a custom AGX Thor board running JP7.2, and I would like to add a second fan to our custom board.
I ref
How to add fan2 configuration on /etc/nvfancontrol.conf? - Jetson Systems / Jetson Orin NX - NVIDIA Developer Forums and T5000新增PWM风扇如何配置 - Jetson Systems / Jetson Thor - NVIDIA Developer Forums to enable second fan.
I can see the second fan in the Jetson Power GUI and configure it to use open_loop mode for PWM speed control. However, when I increase the PWM value, the actual fan speed does not increase accordingly. It seems that the fan is still being controlled based on RPM.
How can I configure the system so that the second fan can also be controlled through PWM?
Below are the modifications I made:
tegra264-mb1-bct-pinmux-p3834-xxxx-p4071-0008.dtsi.txt (92.2 KB)
tegra264-mb1-bct-gpio-p3834-xxxx-p4071-0008.dtsi.txt (3.4 KB)
- Edit
pwm5andtachometer@810c5d0000status from “disabled” to “okay” integra264.dtsi
pwm5: pwm@810c600000 {
compatible = "nvidia,tegra264-pwm";
status = "okay";
reg = <0x81 0x0c600000 0x0 0x10000>;
nvidia,hw-instance-id = <0x5>;
clocks = <&bpmp TEGRA264_CLK_PWM5>;
clock-names = "pwm";
#pwm-cells = <2>;
resets = <&bpmp TEGRA264_RESET_PWM5>;
reset-names = "pwm";
};
tachometer@810c5d0000 {
compatible = "nvidia,pwm-tegra264-tachometer";
status = "okay";
reg = <0x81 0x0c5d0000 0x0 0x10>;
#pwm-cells = <2>;
clocks = <&bpmp TEGRA264_CLK_CLK1M>;
resets = <&bpmp TEGRA264_RESET_TACH1>;
clock-names = "tach";
reset-names = "tach";
pulse-per-rev = <2>;
capture-window-length = <2>;
disable-clk-gate;
};
- Add new
pwm-fan2integra264-p4071-0000.dtsilikesoc_fan: pwm-fan
second_fan: pwm-fan2 {
compatible = "pwm-fan";
pwms = <&pwm5 0 40000>;
cooling-levels = <77 102 140 192 255>;
#cooling-cells = <2>;
};
Flash image to custom AGX Thor board running JP7.2 and
- Check
pwm-fan2andtachometer@810c5d0000
$ ls /sys/devices/platform/ | grep pwm-fan
pwm-fan
pwm-fan2
$ ls /sys/devices/platform/bus@0/ | grep tachometer
810c5c0000.tachometer
810c5d0000.tachometer
- Add fan2 under /etc/nvpower/libjetsonpower/jetsonpower_t264.conf
$ sudo nano /etc/nvpower/libjetsonpower/jetsonpower_t264.conf
# p4071-all
p4071,all,FAN,fan1,FAN_PWM,/sys/devices/platform/pwm-fan
p4071,all,FAN,fan1,RPM_MEASURED,/sys/devices/platform/bus@0/810c5c0000.tachometer
p4071,all,FAN,fan1,TACH_ENABLE,null
p4071,all,FAN,fan2,FAN_PWM,/sys/devices/platform/pwm-fan2
p4071,all,FAN,fan2,RPM_MEASURED,/sys/devices/platform/bus@0/810c5d0000.tachometer
p4071,all,FAN,fan2,TACH_ENABLE,null
p4071,all,INA,ina238,BUS,2-0044
- Add fan2 under /etc/nvfancontrol.conf
<FAN 2>
TMARGIN ENABLED
FAN_GOVERNOR pid {
STEP_SIZE 10
}
FAN_GOVERNOR cont {
STEP_SIZE 10
}
FAN_CONTROL close_loop {
RPM_TOLERANCE 100
}
FAN_PROFILE cool {
#TEMP HYST PWM RPM
0 0 255 5371
15 0 255 5371
24 0 192 4170
29 0 140 2900
35 0 102 2300
45 0 77 1750
115 0 77 1750
}
THERMAL_GROUP 0 {
GROUP_MAX_TEMP 115
#Thermal-Zone Coeffs Max-Temp
cpu-thermal 25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 0
gpu-thermal 25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 0
soc012-thermal 25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 0
soc345-thermal 25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 0
}
FAN_DEFAULT_CONTROL open_loop
FAN_DEFAULT_PROFILE cool
FAN_DEFAULT_GOVERNOR cont
KICKSTART_PWM 51
- Restart the nvfancontrol service
sudo systemctl stop nvfancontrol
sudo rm /var/lib/nvfancontrol/status
sudo systemctl start nvfancontrol
Thanks!!

