We use a Jetson Nano on a JN30 carrier board, running Ubuntu 18.04.2 LTS.
We have connected a ASB0305HP fan.
Setting fan PWM via /sys/devices/pwm-fan/target_pwm works. However, we cannot get a readout from /sys/devices/pwm-fan/rpm_measured, it always displays 0.
The JN30 carrier board, has a FAN_TACH (208) pin described as “tachometer from the fan (open drain input with 100k pull-up to 1.8V)”, which we have connected.
Measuring the FAN_TACH out pin from the fan with an oscilloscope, we do get a frequency output. For example, the images attached show the fan set to 100 and 200 PWM. The frequency changes, but rpm_measured still always displays 0.
Any input on this? Did someone ever get this to work? There is a lot of posts about setting the PWM, but none about reading the RPM.
please refer to Topic 159908 for the similar issue,
you might also check the look-up table, pwm_rpm_table, to check the PWM signals and its corresponding fan speed.
FYI,
there’s known issue that rpm_measured returns zero, we’re looking into it,
thanks
fan rpm can be read by enabling tach from SW commands,
please also check Topic 159908 for comment #16.
you should use fan with 5V regulator, and please also make sure you had proper pin connections.
thanks
I’m running into the same issue on a Jetson Nano with the JN30 carrier board.
Is it possible that there is something setup in a wrong with the pinout setup in the device tree.
The device tree I’m running looks like this regarding the fan-tach-gpio configuration:
However I have a hard time making sense of this, and comparing this to the sources currently available to download:
Linux_for_Tegra/sources/hardware/nvidia/platform/t210/porg/kernel-dts/porg-platforms/tegra210-porg-pwm-fan.dtsi