Orin NX - JP5.1.1 - Disabling PWM

Hi,

How to disable PWM - GPIO14 on Orin NX (gpio-392) and use it as a general purpose IO

Hi san1998,

Are you using the devkit or custom board for Orin NX?

Have you used pinmux spreadsheet to configure this pin as GPIO?
How do you want to use this GPIO? Input or Output?

@KevinFFF

Custom board for Orin NX
I need to enable high output for the pin - GPIO14 - pwm -fan
I see that this being used by Orin so if i echo out / 1 over this pin which corresponds to gpio-392 , I do not get a high logic on oscilloscope.

So i need to disable this functionality of PWM-Fan.

I use the tegra234-mb1-bct-pinmux-p3767-hdmi-a03.dtsi as pinmux

What changes should i make to achieve the above?

Hi @san1998,

To build on @KevinFFF’s response, it seems that the pinmux spreadsheet might be what you are looking for.

In the Nvidia Download Center you can find the pinmux spreadsheet for the Jetson Orin NX with the following query: Jetson Download Center

The spreadsheet should probably be handled with Excel. Within the spreadsheet you can follow these steps:

  • Navigate to the Jetson Orin Nano&NX Pinmux DP or the Jetson Orin Nano&NX Pinmux HDMI sheet, depending on your hardware
  • One of the lines whithin these sheets correspond to the GPIO14 pin. You can configure the Customer Usage column value to GPIO_PX.03 to be able to use the pin as a GPIO.
  • You can also set the Pin Direction and Req. Initial State.
  • Once you have the configuration you want, you can click the Generate DT button at the top of either sheet. This runs a macro and generates the device tree files you need.
  • Finally, you can integrate the generated device tree files into your build in order to test.

Since you are working with a custom board, perhaps integrating the final files into your build might require some additional steps. Let us know if these steps are helpful.

Regards,
Francis Guindon

Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: http://www.ridgerun.com/

1 Like

Please configure this pin as following in pinmux spreadsheet if you want to use it as GPIO/Output and its default state is high.
image

You can also run the following command to control it manually.

# gpioset --mode=wait `gpiofind "PX.03"`=0
# gpioset --mode=wait `gpiofind "PX.03"`=1

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.