Hello, NV team,
I would like to ask, when ORIN is in sleep or deep sleep (SC7) mode, what is the state of the pin? Will it be restored to the default state of POR state or keep the state that set by customer’s software? For example, we set a pin (C61: GPIO09) as output (the POR state of this pin is pd), and let ORIN output a high level after power on.
If ORIN enters the sleep or deep sleep (SC7) mode, will the pin keep outputting a high level or return to the pd (low level) state of POR?
Hi Calous_Jiang,
I remember it would keep its state. (for Output pin)
Actually, you can do a quick test for this scenaio.
Hi Kevin,
I have found some information that is related to my question. But there is something missing, I think, in the “Jetson_AGX_Orin_Series_Pinmux_Config.xlsm”. According to the remark of column BD “Req. Deep Sleep State”, there is a column named “After Wake” that affect the state of GPIOs when ORIN is in deep sleep mode. But I can’t find that column. Please help to check this problem. Thanks!
Is this still an issue to support? Any result can be shared?
The AON gpio would still be in the previous state as it was before entering SC7. The non-AON one will be reset after SC7.
So for the non-AON pins, the state after SC7 can be configured in column BD “Req. Deep Sleep State”?
Are you talking about pin state “during sc7” or after resume from sc7?
Hi @WayneWWW
What is the difference between pin state “during sc7” and after resume from sc7? What we want is that the pin state should keep the state that we set whenever the system is before sc7, during sc7 or after resume from sc7. Could you tell me how the set the state for AON pins and non-AON pins during the three situation talked above exactly? Thanks.
hello Calous_Jiang,
just an FYI,
here’s an example to monitor sleep event from pin SLEEP/WAKE* (i.e. pin-240) on Orin NX.
please note that, it use different GPIO pins on AGX Orin.
-
remove
key-power
node in DT and flash the image.
$ fdtput -r kernel_tegra234-p3768-0000+p3767-0004-nv.dtb /gpio-keys/key-power
-
monitor gpio PEE.04 using libgpiod
here’s an example using shell script but it can be written in c with libgpiod API or in other programming languages (e.g. python) with wrappers.
# if gpiomon -s -n1 $(gpiofind PEE.04); then echo "button pressed"; fi
please have a quick test, thanks
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.