STDA066 November   2026 DRA821U , DRA821U-Q1 , TDA4AEN-Q1 , TDA4VEN-Q1 , TDA4VH-Q1 , TDA4VL-Q1 , TDA4VM , TDA4VM-Q1 , TDA4VP-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 GPIO in Automotive Applications
    2. 1.2 The J7 GPIO Virtualization Solution
  5. 2GPIO Hardware Architecture
    1. 2.1 GPIO Module Structure
    2. 2.2 GPIO Instances Across J7 Devices
  6. 3GPIO Interrupt Modes
    1. 3.1 Bank Interrupt Mode
    2. 3.2 Line (Per-Pin) Interrupt Mode
    3. 3.3 The BINTEN Register — A Critical Hardware Constraint
    4. 3.4 Interrupt Mode Comparison
  7. 4GPIO Virtualization Architecture
    1. 4.1 The Virtual GPIO Concept
    2. 4.2 The PADCONFIG VGPIO_SEL Field
  8. 5Interrupt Routing Architecture
    1. 5.1 The GPIO Interrupt Router
  9. 6Multi-Core GPIO Virtualization — Validated Scenario
    1. 6.1 Test Configuration
    2. 6.2 Observed Results
  10. 7Conclusion
  11. 8References

The PADCONFIG VGPIO_SEL Field

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.

Table 4-1 VGPIO_SEL Encoding
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.

Note: For TDA4VM (J721E), In the main domain, there are eight virtualized GPIOs. GPIO0, GPIO2, GPIO4 and GPIO6 share a set of pins while GPIO1, GPIO3, GPIO5 and GPIO7 share another set of pins. With 2 bits of VGPIO_SEL in PADCONFIG, the pin can be configured to be used by particular GPIO out of the four supported GPIOs.