I am trying to read a signal from UART2_RXD port in the A203V2 carrier board (which corresponds according to pinmux NVIDIA datasheet to GPIO3_PCC.06) but cannot seem to map it to a device in Linux4Tegra (dev/tty*).
Does anyone know if UART2_RXD is mapped to a specific device and how to read the signal from it?
Hi @PJ_Glasso, first of all, thanks for your quick response.
In regards to your first link, I have already used Jetson.GPIO’s official NVIDIA library; and I am able to read specific pins, but the issue of mapping such signal to a specific device in the Linux tree persists. About the last link you sent, my use case is slightly different, because in the post they are trying to read UART1 signal, but my use case requires that I read from UART2 (which also seems to be a console debug port)
What I am trying to do is mapping a physical signal coming from GPIO3_PCC.06 (UART2_RXD) to a device in the Linux tree under the /dev directory. Using the gpiomon utility from the libgpiod library I am able to read the signal under gpiochip2 line 18 (which makes sense, because that specific line matches with GPIO3_PCC.06); so the signal seems that is being received by the carrier board.
The main issue is that I am unable to map that specific signal it to a specific device under the /dev directory (which is a requirement for my use case).
Maybe not relevant , but I saw somewhere you assign them in pairs UART? so maybe two pins need to be defined? Also that dev can be tricky command too
What does the Device tree report:
GPIO_LOOKUP(chip_label, chip_hwnum, con_id, flags)
GPIO_LOOKUP_IDX(chip_label, chip_hwnum, con_id, idx, flags)