Reusing PWM (32a0000.pwm / pwmchip1) for a custom application instead of pwm-fan

Hi,

I am using a custom Jetson Orin NX board with JetPack 6.2.2.

Currently, pwmchip1 (32a0000.pwm) is used by the pwm-fan driver. The output of /sys/kernel/debug/pwm is:

platform/32a0000.pwm, 1 PWM device
 pwm-0 (pwm-fan): requested enabled period: 45334 ns duty: 178 ns polarity: normal

We referred to this forum thread to see the duty cycle information:

I understand that while pwm-fan owns this PWM, it cannot be exported through /sys/class/pwm/pwmchip1/export, and attempting to export it returns:

Device or resource busy

My requirement is different from controlling the fan.

In a future hardware revision, the fan will be removed, and the same PWM controller (32a0000.pwm / pwmchip1) will be connected to an external device.

Could you please clarify the recommended approach?

  1. What steps should I perform to remove the pwm-fan node from the device tree and repurpose 32a0000.pwm for another PWM application?

Any guidance or documentation would be appreciated.

Thank you.

Hi archa.cp,

Yes, you need to disable pwm-fan node in device tree and remove nvfancontrol service.
Please share the full dmesg and device tree for further check.