STDA066 November 2026 DRA821U , DRA821U-Q1 , TDA4AEN-Q1 , TDA4VEN-Q1 , TDA4VH-Q1 , TDA4VL-Q1 , TDA4VM , TDA4VM-Q1 , TDA4VP-Q1
Each physical I/O pin has an associated PADCONFIG register in the Control Module MMR (CTRL_MMR). The PADCONFIG register contains a `VGPIO_SEL` field (bits [5:4] on J784S4) that selects which GPIO module instance the interrupt of the pin is routed through.
| VGPIO_SEL Value | Selected GPIO Instance |
|---|---|
| 0b00 | WKUP_GPIO0 (or GPIO0/GPIO1 in MAIN) |
| 0b01 | WKUP_GPIO1 (or GPIO2/GPIO3 in MAIN) |
| 0b10 | (MAIN: GPIO4/GPIO5) |
| 0b11 | (MAIN: GPIO6/GPIO7) |
The default value is 0b00, meaning all pins default to GPIO instance 0 routing. To use WKUP_GPIO1 on a given pin, software must explicitly write `VGPIO_SEL = 1` to the PADCONFIG register of that pin.
Example: Configuring Pin 3 for WKUP_GPIO1 on J784S4
/* bits[2:0] = 7 → MUX_MODE = 7 (GPIO function)
* bits[5:4] = 1 → VGPIO_SEL = 1 (route to WKUP_GPIO1)
* bit[18] = 1 → RX_ACTIVE = 1 (enable input buffer) */
Without this write, the interrupt for Pin 3 routes to WKUP_GPIO0 regardless of which GPIO module instance software programs the interrupt path for.
For mapping of GPIO Pin numbers to PADCONFIG refer to Technical datasheet of corresponding SoC.