Jetson Orin NX - Unable to Configure GPIO07 as PWM7 Using Pinmux Spreadsheet

Hi,

I am working on a Jetson Orin NX running JetPack 6 / L4T 36.5. My goal is to use GPIO07 (soc_gpio07_pi6) as a PWM output to verify pulse duty-cycle variation from 0% to 100% on an external device.

Steps performed:

  1. Opened the Jetson Orin NX/Nano pinmux spreadsheet.

  2. Configured GPIO07 as:

    • Customer Usage: GPIO07 (PWM)

    • Function: GP_PWM7

    • Direction: Output

  3. Generated the DT files:

    • pinmux.dtsi

    • gpio-default.dtsi

    • padvoltage-default.dtsi

Observations:

  • In the generated gpio-default.dtsi, GPIO07 is removed from the GPIO list:
- TEGRA234_MAIN_GPIO(G, 6)
  • However, in the generated pinmux.dtsi, GPIO07 still appears as:
soc_gpio07_pi6 {
    nvidia,pins = "soc_gpio07_pi6";
    nvidia,function = "gp";
    nvidia,pull = <TEGRA_PIN_PULL_NONE>;
    nvidia,tristate = <TEGRA_PIN_ENABLE>;
    nvidia,enable-input = <TEGRA_PIN_DISABLE>;
    nvidia,lpdr = <TEGRA_PIN_DISABLE>;
};
  • I expected the pinmux generator to configure the pin for PWM instead of keeping nvidia,function = "gp".

Additional information:

  • PWM7 exists in tegra234.dtsi:
pwm7: pwm@32e0000
  • PWM7 is also referenced in:
nv-public/nv-platform/tegra234-p3768-0000+p3767-xxxx-nv-common.dtsi

My intention is not to control a fan. I only want to output a PWM signal and verify duty-cycle variation from 0% to 100% on GPIO07 using an oscilloscope or logic analyzer.

Questions:

  1. Can GPIO07 (soc_gpio07_pi6) be used as PWM7 output on Jetson Orin NX?

  2. Is any additional device-tree configuration required beyond the pinmux spreadsheet changes?

  3. Should the generated pinmux.dtsi show a PWM-related function instead of gp when GP_PWM7 is selected?

  4. What is the recommended method to expose PWM7 on GPIO07 and verify duty-cycle variation from 0% to 100%?

Thanks.

Hello @archa.cp!

Based on the title and content of your topic, it looks like it may receive better visibility and feedback in a different category. We took the liberty of moving it for you.

If this was an incorrect assessment, please send me a direct message.

Disclaimer: this moderation suggestion and message were generated with AI assistance.

Duplicated with Jetson Orin NX - Unable to Configure GPIO07 as PWM7 Using Pinmux Spreadsheet - Jetson Systems / Jetson Orin NX - NVIDIA Developer Forums