ORIN AGX R36.4.0 PCIe link-up LED GPIO

Hi,
I have two questions.

  1. Is there any DT property for the PCIe controller that can be used to bind to a GPIO pin (that drives an LED) to drive it when the PCIe Link is up?
    The end result would be to have an LED light up when the PCIe link is established.
  2. How can I drive a GPIO hi or low in user space?

Thank you

Hi,

If you are designing a custom base board, then it means some adaptation configurations are needed.
Otherwise, your board may not work fine.

For Orin AGX series, you could refer to below document
https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/HR/JetsonModuleAdaptationAndBringUp/JetsonAgxOrinSeries.html?highlight=universal%20serial%20bus#jetson-agx-orin-platform-adaptation-and-bring-up
(please be aware that above link is for rel-36.3/jetpack6.0)

This document includes below configuration

  1. pinmux change & GPIO configuration
  2. EEPROM change as most custom boards do not have an EEPROM on it.
  3. Kernel porting
  4. PCIe configuration
  5. USB configuration
  6. MGBE configuration
  7. RGMII configuration

Thanks!

Hi velorin0,

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

It seems you have to add a custom node and customize the PCIe driver for this use case.

We would suggest using gpiod to control GPIO in r36.4.0.
Please remember to configure the pinmux spreadsheet for the pins as Output/Drive0 or Drive 1.

It is a custom board.

OK, thank you for the answer.

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