I’m looking to control a GPIO on the Orin AGX devkit, which is capable of driving around 20-30mA.
I’m on R36.4.3 and following the online manual I can configure the devkit’s pin7 using:
busybox devmem 0x02430070 w 0x004
and then:
gpioset gpiofind "PQ.06"=1
it all works - but pin7 is limited to 20uA.
According the carrier board specs, pin8 (UART1_TXD) and pin11 (UART1_RTS) are capable of driving 24mA.
I’m trying to control those pins, but it seems they stay high (3.3V), despite my attempts. Everytime I try to toggle them (whether 0->1 or 1->0), they drop to 0V for ~20us and then rise to 3.3V again - see capture below. I have no problem to control pin7, but interestingly, it seems its output voltage is ~2.3V and not 3.3V.
I have not applied any patch - I’m using a vanilla R36.4.3 as released by nvidia without any changes. is it needed to apply patches manually? thank you
Ok I found out the reason for the pin7 low voltage - it was my fault - it was connected to a FET which probably drew more current it could handle. Without it, I get ~3V (still not 3.3V, but maybe it’s reasonable):
So only problem left is why I can’t set back pin8 to 0V, without setting its pinmux register value again, and why its pinmux register value changes to 0x404 after I use gpioset to set it to 1.