Bank 0 GPIO
GPIO0-27_VREF is the power supply for bank 0 and can be powered in the range 1.8V – 3.3V. (Must be powered even if GPIO is not used).
GPIO0 / I2C0 SDA
GPIO1 / I2C0 SCL
GPIO2 / I2C1 SDA
GPIO3 / I2C1 SCL
GPIO4 / GPCLK0
GPIO5 / GPCLK1
GPIO6 / GPCLK2
GPIO7 / SPI0 CE1
GPIO8 / SPI0 CE0
GPIO9 / SPI0 MISO
GPIO10 / SPI0 MOSI
GPIO11 / SPI0 SCLK
GPIO12 / PWM0
GPIO13 / PWM1
GPIO14 / UART0 TX / UART1 TX
GPIO15 / UART0 RX / UART1 RX
GPIO16 / UART0 CTS / UART1 CTS / SPI1 CE2
GPIO17 / UART0 RTS / UART1 RTS / SPI1 CE1
GPIO18 / PCM CLK / SPI1 CE0 / PWM0
GPIO19 / PCM FS / SPI1 MISO / PWM1
GPIO20 / PCM DIN / SPI1 MOSI / GPCLK0
GPIO21 / PCM DOUT / SPI1 SCLK / GPCLK1
GPIO22 / SD1 CLK
GPIO23 / SD1 CMD
GPIO24 / SD1 DAT0
GPIO25 / SD1 DAT1
GPIO26 / SD1 DAT2
GPIO27 / SD1 DAT3
Bank 1 GPIO
GPIO28-45_VREF is the power supply for bank 1 and can be powered in the range 1.8V – 3.3V. (Must be powered even if GPIO is not used).
GPIO28 / I2C0 SDA / PCMCLK
GPIO29 / I2C0 SCL / PCM FS
GPIO30 / PCM DIN / UART0 CTS / UART1 CTS
GPIO31 / PCM DOUT / UART0 RTS / UART1 RTS
GPIO32 / GPCLK0 / UART0 TX / UART1 TX
GPIO33 / UART0 RX / UART1 RX
GPIO34 / GPCLK0
GPIO35 / SPI0 CE1
GPIO36 / SPI0 CE0 / UART0 TX
GPIO37 / SPI0 MISO / UART0 RX
GPIO38 / SPI0 MOSI / UART0 RTS
GPIO39 / SPI0 SCLK / UART0 CTS
GPIO40 / PWM0 / SPI2 MISO / UART1 TX
GPIO41 / PWM1 / SPI2 MOSI / UART1 RX
GPIO42 / GPCLK1 / SPI2 SCLK / UART1 RTS
GPIO43 / GPCLK2 / SPI2 CE0 / UART1 CTS
GPIO44 / GPCLK1 / I2C0 SDA / I2C1 SDA / SPI2 CE1
GPIO45 / PWM1 / I2C0 SCL / I2C1 SCL / SPI2 CE2
Many of the peripheral pin functions are duplicated, sometimes several times with the function assignable to different pins.
Peripheral Ports Available
UARTS's
UART0
UART1
I2C Ports
I2C0
I2C1
SPI Ports
SPI0
SPI1
SPI2
PWM Outputs
PWM0
PWM1
PCM Port
PCM
Clock Outputs
GPCLK0
GPCLK1
GPCLK2
SD Card Interface
SD1
Pull Up & Pull Down Resistors
All GPIOs except GPIO28, 29, 44 and 45 have weak internal pull-ups or pull-downs enabled when the device is powered on (documented in the BCM2835 peripherals document section 6.2).
It is recommended to add off-chip pulls to GPIO28, 29, 44 and 45 to make sure they do not float during power on and initial boot.
GPIO46 & GPIO47
The GPIO46_1V8 and GPIO47_1V8 pins are 1.8V IO only and are reserved for special functions (HDMI hot plug detect and boot control respectively). Don’t use these pins for any other purpose, as the software for the Compute Module will always expect these pins to have these special functions. If they are unused leave them unconnected.