I’m trying to use GPIO3_PP.06 (GPIO02) as outputs. Trying to drive it high with gpioset seems to have no effect when I probing it. My device trees looks like the following:
I apologize for the confusion, I am using the Jetson Orin Nano. I’m using a custom board. I am using a custom build of Jetson Linux 36.3. I’ve attached a screenshot of my Pinmux config.
The device pinmux/gpio dtsi was generated using the spreadsheet config I showed above. Can you confirm the dtsi looks ok? I’m still struggling to driver this pin with the configuration showed above. Even when I tried removing the circuit connected to that pin and tried driving the pin directly from the Orin it would not change.
The strange thing is we are able to drive non GPIO labeled pins high and low like I2S0_FS without issue.
We have set GPIO02 as output in the dtsi like the original poster after using the excel files, gpio file is updated. soc_gpio25_pp6 is configured exactly the same like the original post.
Querying by gpioinfo command also shows pin is configured as output.
Using gpioset also works.
Our only issue is that high voltage is coming as 0.4 volts and low as 0 volts, is this the expected output or is there some issue with my module? I tried using replacement module but in that GPIO02 is not giving output change at all on gpioset command (do we need to use the same module during flashing of ssd as well?).
Can you give some guides to troubleshoot this please?
We are using Jetpack 6.0. There is no load connected to GPIO02 for testing (we are testing on our own custom board)
Sorry I wasn’t able to reply yesterday, we were busy in other tasks.
Yes it is this GPIO. We were eventually able to get this GPIO working.
We changed the following setting from this:
nvidia,io-high-voltage = <TEGRA_PIN_ENABLE>;
to this:
nvidia,io-high-voltage = <TEGRA_PIN_DISABLE>;
It is now outputting 1.8V on high and 0V on low. This is sufficient for our needs as target device is 1.8V compliant.
Right now when GPIO is in output mode with high voltage support disabled command
sudo busybox devmem 0x02430030
is showing:
0x00000000
A few related questions:
Is high-voltage mode only for input mode for this pin? I am asking because the excel file didn’t show any warning when I set pin as output and 3.3V tolerant.
If we want high voltage mode for output do we need to add pull-up to 3.3V? Because something like this isn’t mentioned in the documents (or maybe I missed them).
How did you configure this pin in pinmux spreadsheet? nvidia,io-high-voltage should be TEGRA_PIN_DISABLE if you configure it as Output/Drive 0 or Output/Drive 1.
Output would be only valid when you configure its state with Drive 0 or Drive 1.
If it is configured as output, then you can control it manally w/o adding the pull-up resistor.