We have an MCU connected to the Orin Nano SOM. The MCU has the reset and boot GPIOs from the Orin Nano SOM.
Could you please answer the following scenario:
In pinmux, I configured the reset and boot GPIOs as input. After bootup, I exported the reset GPIO, changed its direction to output, and set its state to 1.
In the event of a kernel crash or system hang , I want to know the state of the reset GPIO at this instance. Will it revert to the default state as configured in pinmux (input), or will it remain as output with its value high before the system hang?
Are you using the devkit or custom board for Orin Nano?
What’s the Jetpack version in use?
So what’s the desired state for “reset GPIO” and “boot GPIO”? What’t the exact pins you are using?
It seems not the expected operation to me. If you want to use the pin as Output and control it from Orin Nano, you have to configure it as Output/Drive 0 or 1 in pinmux spreadsheet. Or it may not be controlled correctly.
I think it may remain its state when system is hang and return to default state after reboot.
Are you using the devkit or custom board for Orin Nano?
We are using custom carrier board.
What’s the Jetpack version in use?. Right know Jp.5.1.2 but we will soon move to JP6.2. Is there any problem if we port to latest JP.
I have a doubts, please correct me if I’m wrong.
I configured one of the GPIOs available in the pinmux spreadsheet as a GPIO output and set it to drive high (1). I also added a pull-up resistor in the hardware, so the GPIO will be high before powering on the SoM. After powering on, when the MB1 section executes, the state we defined in the pinmux spreadsheet should take effect, right?
2.I configured the GPIO as bidirectional with the initial state set to NA in the pinmux spreadsheet. When I export this GPIO through sysfs in JP 5.1.2, will it show as an input or output?
It should be fine. There’s just a known issue about controlling GPIO in JP6.0 and JP6.1.
The sysfs to control GPIO is deprecated since JP6, we use gpiod instead.
Yes, it should be configured as default high in MB1 if you’ve configured it as Drive 1 in pinmux spreadsheet.
No matter it is input or output, you can configure it as Input or Output through sysfs in JP5.1.2