I’m working on building a customs image for the Jetson Orin NX, based on Jetpack 6.2.
I will need to configure a gpio PCC.02 as an input. Here is the configure in dtbs:
The PCC.02 will be configured as an input, and the PCC.03 will be an output. They are connected by a wire. I try to set the output at HIGH, but the input still LOW.
nvidia@ubuntu:~$ sudo cat /sys/kernel/debug/gpio | grep PCC.02
gpio-330 (PCC.02 |cam-reset-output-hig) out hi
nvidia@ubuntu:~$ sudo cat /sys/kernel/debug/gpio | grep PCC.03
gpio-331 (PCC.03 |camera-control-input) in lo
nvidia@ubuntu:~$
With the same setup (code and hardware), it worked on the Jetpack 5.1.2, but not work on the Jetpack 6.2.
Are you using the devkit or custom board for Orin NX?
It seems PCC.02 is used as cam-reset-output-hig and PCC.03 is used as camera-control-input by default.
Please configure the pin in pinmux spreadsheet first and remove their usage by camera.
" It seems PCC.02 is used as cam-reset-output-hig and PCC.03 is used as camera-control-input by default."
Where can I find these settings on the source code? I try to find them but no luck. If I can find them, I can disable these settings for testing first.
I also see on the pinmux spreadsheet, the GPIO5 (PCC.02) used as “Baseboard Wifi Disable Control”. Is this correct?
I try to find the configuration for the “Baseboard Wifi Disable Control” to disable it, but no luck. Could you please show me, where is this setting?
Yes,
This is the camera driver we are working on.
We designed to use the PCC.02 as an interrupt and the PCC.03 as a reset gpio for the camera.
The interrupt looks like does not work as expect, it always show " gpio-330 (PCC.02 |camera-control-input) in lo IRQ".
So I try to configure it as an normal input pin, then jump the PCC.02 to the PCC.03 by a wire, to check if the input pin can work normally or not. But it’s not work. For this setup, I will get:
gpio-330 (PCC.02 |camera-control-input) in lo
gpio-331 (PCC.03 |cam-reset-output-hig) out hi
That is the problem. You can see that the PCC.03 is output high level, and the PCC.02 is an input. I connected them by a physical wire. I think if the input pin worked, the PCC.02 should by in high level, the same with PCC.03.
Thank you for the suggestion. I will try then get back to you soon.
But how can to control the gpio using gpiod? Could you please give me some examples on this?
root@ubuntu:/home/gremsy# gpioinfo|grep -E "PCC.02|PCC.03"
line 14: "PCC.02" unused input active-high
line 15: "PCC.03" unused output active-high
Then I try to toggle pin PCC.03 manually by using your suggestion commands. The VOM shows me that the voltage level change between 0-1.8V, but the pin PCC.02 always shows “0”