Agx orin pwm gpio27 (gp_pwm1)

  1. May I ask which node in the device tree corresponds to GPIO27 (GP_PWM1)?
  2. How to correctly modify the pinmux to enable PWM functionality in the pinmux?

Hi poke08121,

Are you using the devkit or custom board for AGX Orin?
What’s your Jetpack version in use?

Do you mean the following pin?


If so, you could configure the column of “Custom Usage” to GP_PWM1 in pinmux spreadsheet.
If you are using the devkit, you could also use Jetson-IO to configure its pinmux after boot up.

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

custom board

What’s your Jetpack version in use?

jetpack 5.1.1 or jetpack 5.1.2

Do you mean the following pin?

yes, H52

If so, you could configure the column of “Custom Usage” to GP_PWM1 in pinmux spreadsheet.

This configuration was generated using the pinmux spreadsheet, resulting in the settings shown in the following diagram

I learned about this PWM pin from the camera design guide and want to use it for the camera fsync.

  1. I would like to know the correct configuration for this pin. Is the way I’m configuring it correct?
  2. Also, I need to add it to the device tree properties. What is its name in the device tree?

Could you share the document to use this pin as camera fsync?
Do you want to configure this pin for camera fsync or pwm?

Please share your pinmux spreadsheet to configure this pin for further check.

TEGRA234_MAIN_GPIO(N, 1)

Could you share the document to use this pin as camera fsync?

NVIDIA Jetson AGX Xavier Series and Jetson AGX Orin Series Camera Module Hardware Design Guide 1.5 2022/09/08

Do you want to configure this pin for camera fsync or pwm?

According to the guide, this pin is declared as a PWM specifically for use with fsync in the camera. Right?

Please share your pinmux spreadsheet to configure this pin for further check.

H52 GPIO27 SOC_GPIO39 GP88_PWM1 50k z GP_PWM1 Output Int PD Disable 40-pin header Pin15 GPIO/PWM PWM2_40PIN

TEGRA234_MAIN_GPIO(N, 1)

In the dts: tegra234-soc-pwm.dtsi file, there are 8 tegra_pwmx. Which one corresponds to “TEGRA234_MAIN_GPIO(N, 1)” and based on what?

hello LeonChen,

please access [Jetson AGX Orin Developer Kit Carrier Board Specification], and refer to [3.3 40-Pin Expansion Header].
it’s pin-15 for using this pin, besides, this is by default configured as GPIO, you should also modify pinmux spreadsheet to update the customer usage as GP_PWM1.

anyways,
may I know what’s the real use-case for using FSYNC?
assume you’re using a SerDes chip, it is a hardware pin connected between two cameras, when SerDes chip power-on, it (i.e. SerDes chip) to transmit PWM signal to the sensor for sending frames simultaneously.

JerryChang Moderator
please access [Jetson AGX Orin Developer Kit Carrier Board Specification], and refer to [3.3 40-Pin Expansion Header].
it’s pin-15 for using this pin, besides, this is by default configured as GPIO, you should also modify pinmux spreadsheet to update the customer usage as GP_PWM1.

Yes, this is the result after my modifications. Please help confirm.

JerryChang Moderator
anyways,
may I know what’s the real use-case for using FSYNC?
assume you’re using a SerDes chip, it is a hardware pin connected between two cameras, when SerDes chip power-on, it (i.e. SerDes chip) to transmit PWM signal to the sensor for sending frames simultaneously.

hello LeonChen,

you should check pinmux config to check pin settings,
for example, this is used by AGX Orin for flashing pinmux_config, tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi

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