Home / Pinout / ESP32-P4

ESP32-P4 pinout & GPIO reference

Espressif’s GPIO-richest SoC, with MIPI-CSI / MIPI-DSI, H.264 encoding and Ethernet MAC, aimed at HMI displays and edge computing. It has no radio of its own — network via ESP-Hosted / ESP-AT with an ESP32-C/S co-processor.

Data verified:2026-10-20 · Cross-checked against Espressif datasheets and the ESP-IDF programming guide. Always confirm with the official document before finalizing a design.

Official documentation:link 1 · link 2

Verify against official docs:HP core clock ceiling (360 MHz vs 400 MHz variants and their ordering codes) · How many GPIOs each package breaks out, and which pins carry USB 2.0 HS

Key specifications

CoreRISC-V 32-bit dual-core (HP) + single-core LP (up to 40 MHz)
ClockHP core up to 360 MHz (the datasheet notes a 400 MHz variant — confirm with Espressif)
SRAM768 KB HP L2MEM · 32 KB LP SRAM · 8 KB SPM
WirelessNo Wi-Fi / no Bluetooth (pair with an ESP32-C/S series co-processor)
USBUSB 2.0 HS OTG + USB 2.0 FS OTG + USB Serial/JTAG (GPIO24/25)
ADCADC1: GPIO16–23 · ADC2: GPIO49–54
DACNone
TouchTOUCH0–TOUCH13 (GPIO2–15)
GPIO55 physical GPIOs: 0–54 (5 of them are strapping pins)
StrappingGPIO34 / GPIO35 / GPIO36 / GPIO37 / GPIO38

Traps that cost you a board respin

Full GPIO table

GPIOStatusAlternate functions
GPIO0UsableLP_GPIO0
GPIO1UsableLP_GPIO1
GPIO2UsableTOUCH0LP_GPIO2
GPIO3UsableTOUCH1LP_GPIO3
GPIO4UsableTOUCH2LP_GPIO4
GPIO5UsableTOUCH3LP_GPIO5
GPIO6UsableTOUCH4LP_GPIO6
GPIO7UsableTOUCH5LP_GPIO7
GPIO8UsableTOUCH6LP_GPIO8
GPIO9UsableTOUCH7LP_GPIO9
GPIO10UsableTOUCH8LP_GPIO10
GPIO11UsableTOUCH9LP_GPIO11
GPIO12UsableTOUCH10LP_GPIO12
GPIO13UsableTOUCH11LP_GPIO13
GPIO14UsableTOUCH12LP_GPIO14
GPIO15UsableTOUCH13LP_GPIO15
GPIO16UsableADC1_CH0
GPIO17UsableADC1_CH1
GPIO18UsableADC1_CH2
GPIO19UsableADC1_CH3
GPIO20UsableADC1_CH4
GPIO21UsableADC1_CH5
GPIO22UsableADC1_CH6
GPIO23UsableADC1_CH7
GPIO24UsableUSB-JTAG
GPIO25UsableUSB-JTAG
GPIO26UsableGeneral GPIO
GPIO27UsableGeneral GPIO
GPIO28UsableGeneral GPIO
GPIO29UsableGeneral GPIO
GPIO30UsableGeneral GPIO
GPIO31UsableGeneral GPIO
GPIO32UsableGeneral GPIO
GPIO33UsableGeneral GPIO
GPIO34UsableStrapping
GPIO35UsableStrapping
GPIO36UsableStrapping
GPIO37UsableStrapping
GPIO38UsableStrapping
GPIO39UsableGeneral GPIO
GPIO40UsableGeneral GPIO
GPIO41UsableGeneral GPIO
GPIO42UsableGeneral GPIO
GPIO43UsableGeneral GPIO
GPIO44UsableGeneral GPIO
GPIO45UsableGeneral GPIO
GPIO46UsableGeneral GPIO
GPIO47UsableGeneral GPIO
GPIO48UsableGeneral GPIO
GPIO49UsableADC2_CH0
GPIO50UsableADC2_CH1
GPIO51UsableADC2_CH2ANA_CMPR_CH0 reference voltage
GPIO52UsableADC2_CH3ANA_CMPR_CH0 in-phase input
GPIO53UsableADC2_CH4ANA_CMPR_CH1 reference voltage
GPIO54UsableADC2_CH5ANA_CMPR_CH1 in-phase input

Individual GPIO pages

Related