Datasheet docs

Unknown manufacturer

Raspberry Pi Compute Module 4 (CM4102016)

Public datasheet page with the original PDF, converted markdown, extracted images, and search APIs.

Raspberry Pi Compute Module 4 A Raspberry Pi for deeply embedded applications

Colophon

©︎ 2022-2026 Raspberry Pi Ltd

This documentation is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND).

Release4
Build date30/06/2026

Legal disclaimer notice

TECHNICAL AND RELIABILITY DATA FOR RASPBERRY PI PRODUCTS (INCLUDING DATASHEETS) AS MODIFIED FROM TIME TO TIME (“RESOURCES”) ARE PROVIDED BY RASPBERRY PI LTD (“RPL”) “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW IN NO EVENT SHALL RPL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDIN NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE RESOURCES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE

RPL reserves the right to make any enhancements, improvements, corrections or any other modifications to the RESOURCES or any products described in them at any time and without further notice

The RESOURCES are intended for skilled users with suitable levels of design knowledge. Users are solely responsible for their selection and use of the RESOURCES and any application of the products described in them. User agrees to indemnify and hold RPL harmless against all liabilities, costs, damages or other losses arising out of their use of the RESOURCES.

RPL grants users permission to use the RESOURCES solely in conjunction with the Raspberry Pi products. All other use of the RESOURCES is prohibited. No licence is granted to any other RPL or other third party intellectual property right.

HIGH RISK ACTIVITIES, Raspberry Pi products are not designed, manufactured or intended for use in hazardous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air trafic control, weapons systems or safety-critical applications (including life support systems and other medical devices), in which the failure of the products could lead directly to death, personal injury or severe physical or environmental damage (“High Risk Activities”). RPL specifically disclaims any express or implied warranty of fitness for High Risk Activities and accepts no liability for use or inclusions of Raspberry Pi products in High Risk Activities.

Raspberry Pi products are provided subject to RPL’s Standard Terms. RPL’s provision of the RESOURCES does not expand or otherwise modify RPL’s Standard Terms including but not limited to the disclaimers and warranties expressed in them.

Table of Contents

  1. Introduction .... 3 1.1. Introduction .... 3 1.2. Features .... 3
  2. Interfaces .... 5 2.1. Wireless .... 5 2.1.1. WL_nDisable .... 5 2.1.2. BT_nDisable .... 5 2.2. Ethernet .... 5 2.3. PCIe (Gen2 x1) .... 6 2.4. USB 2.0 (high speed) .... 7 2.5. GPIO .... 7 2.5.1. Alternative function assignments .... 7 2.6. Dual HDMI 2.0 .... 10 2.7. CSI-2 (MIPI serial camera) .... 10 2.8. DSI (MIPI serial display) .... 10 2.9. I2C (SDA0 SCL0) .... 10 2.10. I2C (ID_SD ID_SC) .... 10 2.11. SDIO/eMMC (CM4Lite only) .... 11 2.12. Analog IP0/IP1 .... 11 2.13. Global_EN .... 11 2.14. RUN_PG .... 11 2.15. nRPI_BOOT .... 12 2.16. LED_nACT .... 12 2.17. LED_nPWR .... 12 2.18. EEPROM_nWP .... 12
  3. Electrical and mechanical .... 13 3.1. Mechanical .... 13 3.2. Thermal .... 14 3.3. Electrical specification .... 14
  4. Pinout .... 16 4.1. Differential pairs .... 22 4.1.1. 100Ω differential pair signal lengths .... 22 4.1.2. 90Ω differential pair signal lengths .... 24
  5. Power .... 25 5.1. Power-up sequencing .... 25 5.2. Power-down sequencing .... 25 5.3. Power consumption .... 25 5.4. Regulator outputs .... 25
  6. Troubleshooting .... 26 6.1. Hardware checklist .... 26 6.2. Bootloader .... 26 6.3. rpi-eeprom-update .... 26 6.4. EEPROM write-protect .... 26 6.5. Firmware .... 26 6.6. Kernel .... 27
  7. Availability .... 28 7.1. Support .... 28 7.2. Ordering codes .... 28 7.3. Packaging .... 28

1. Introduction

1.1. Introduction

Figure 1.

The Raspberry Pi Compute Module 4 (CM4)

The Raspberry Pi Compute Module 4 (CM4) is a System on Module (SoM) containing processor, memory, eMMC Flash, and supporting power circuitry. These modules allow a designer to leverage the Raspberry Pi hardware and software stack in their own custom systems and form factors. In addition, these modules have extra IO interfaces over and above what is available on the Raspberry Pi boards, opening up more options for the designer.

The design of the CM4 is loosely based on the Raspberry Pi 4 Model B, and for cost-sensitive applications it can be supplied without the eMMC fitted; this version is called the Raspberry Pi Compute Module 4 Lite (CM4Lite).

While previous generations of the Compute Module have all shared the same DDR2-SODIMM-mechanically-compatible form factor, the new CM4 and CM4Lite are different. The electrical interface of the CM4 is via two 100-pin high density connectors, and the new physical form factor has a smaller footprint overall when the connectors are taken into account.

This change is due to the addition of new interfaces: an additional second HDMI, PCIe, and Ethernet. The addition of these new interfaces, especially PCIe, would not have been possible while preserving the previous form factor.

Note

Unless otherwise stated, for this document CM4 also refers to CM4Lite.

1.2. Features

Key features of the CM4 are as follows:

• Broadcom quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz

• Small Footprint 55 mm × 40 mm × 4.7 mm module

4 × M2.5 mounting holes

• H.265 (HEVC) (up to 4Kp60 decode), H.264 (up to 1080p60 decode, 1080p30 encode)

• OpenGL ES 3.0 graphics

• Options for 1 GB, 2 GB, 4 GB or 8 GB LPDDR4-3200 SDRAM with ECC (see Section 7. Availability)

• Options for 0 GB (CM4Lite), 8 GB, 16 GB, 32 GB,or 64 GB eMMC flash memory (see Section 7. Availability)

Peak eMMC bandwidth 100 MBps (four times faster than previous Compute Modules)

• Option (see Section 7. Availability) for certified radio module with:

2.4 GHz, 5.0 GHz IEEE 802.11 b/g/n/ac wireless

Bluetooth 5.0, BLE

On board electronic switch to select between PCB trace or external antenna

• Gigabit Ethernet PHY supporting IEEE 1588

• 1 × PCIe 1-lane Host, Gen 2 (5Gbps)

• 1 × USB 2.0 port (high speed)

• 28 × GPIO supporting either 1.8 V or 3.3 V signalling and peripheral options:

Up to 5 × UART

Up to 5 × I2C

Up to 5 × SPI

1 × SDIO interface

1 × DPI (parallel RGB display)

1 × PCM

Up to 2× PWM channels

Up to 3× GPCLK outputs

• 2 × HDMI 2.0 ports (up to 4Kp60 supported)

• MIPI DSI:

1 × 2-lane MIPI DSI display port

1 × 4-lane MIPI DSI display port

• MIPI CSI-2:

1 × 2-lane MIPI CSI camera port

1 × 4-lane MIPI CSI camera port

• 1 × SDIO 2.0 (CM4Lite)

• Single +5 V PSU input.

2. Interfaces

2.1. Wireless

The CM4 can be supplied with an on-board wireless module based on the Cypress CYW43455 supporting both:

• 2.4 GHz, 5.0 GHz IEEE 802.11 b/g/n/ac wireless

• Bluetooth 5.0, BLE

These wireless interfaces can be individually enabled or disabled as required. For instance, in the case of a kiosk application, a service engineer could enable wireless operation and then disable it once finished.

The CM4 has an on-board antenna. If used it should be positioned in the product such that it is not surrounded by metal, including any ground plane (see Section 3. Electrical and mechanical for further details). Alternatively there is a standard U.FL connector on the module, see Figure 1, so that an external antenna can be used.

Raspberry Pi Ltd has an antenna kit which is certified to be used with the CM4. If a different antenna is used then separate certification will be required.

Warning

Raspberry Pi Ltd will not be able to assist with certification for third-party antennas.

The selection of internal or external antenna is done at boot time using the config.txt file, and can not be changed during operation. The config.txt options are dtparam=ant1 to select the internal antenna, or dtparam=ant2 for the external antenna.

2.1.1. WL_nDisable

This pin serves a number of functions;

  1. It can be used to monitor the enable/disable state of wireless networking. A logic high means the wireless networking module is powered up.

  2. When driven or tied low it prevents the wireless network module from powering up. This is useful to reduce power consumption or in applications where it is required to physically ensure the wireless networking is disabled. If the interface is enabled after being disabled, the wireless interface driver needs reinitialised.

Note

On CM4 modules without wireless, this pin is reserved.

2.1.2. BT_nDisable

This pin serves a number of functions;

  1. It can be used to monitor the enable/disable state of Bluetooth. A logic high means the Bluetooth module is powered up.

  2. When driven, or tied low, it prevents the Bluetooth module from powering up. This is useful to reduce power consumption, or in applications where it is required to physically ensure the Bluetooth is disabled. If the interface is enabled after being disabled, the Bluetooth interface driver needs reinitialised.

Note

On CM4 modules without wireless, this pin is reserved

2.2. Ethernet

The CM4 has an on-board Gigabit Ethernet PHY — the Broadcom BCM54210PE — some of the major features of this PHY include;

• IEEE 1588-2008 compliant

• MDI crossover, pair skew and pair polarity correction

A standard 1:1 RJ45 MagJack is all that is necessary to provide an Ethernet connection to the CM4. Typical wiring of a MagJack supporting PoE, and with added ESD protection, can be seen in Figure 2

Figure 2.

Ethernet schematic interface for the Raspberry Pi Compute Module 4 supporting PoE, and with added ESD protection.

The differential Ethernet signals should be routed as 100Ω differential pairs, with suitable clearances. Length matching between pairs should be better than 50mm, so in the typical case no length matching is required. However the signals within a pair need to be length matched, ideally to better than 0.15mm.

The PHY also supports up to 3 LEDs to give user status feedback, these are low active. These LEDs can have a range of functions, and you should consult your OS driver to see which functions are supported by your driver

The PHY also provides SYNC_IN and SYNC_OUT at 3.3V signalling to support IEEE 1588-2008.

2.3. PCIe (Gen2 x1)

The CM4 has an internal PCle 2 0 x1 host controller, While on the Raspberry Pi 4 Model B this has been connected to a USB 3 host controller (using the Via Labs VLI805), on the CM4 the product designer is free to choose how the interface is used.

Warning

You should ensure that there is a suitable OS driver for any host controller that is chosen before proceeding to a prototype.

Note

The on-board PCIe Host controller doesn’t support 64-bit accesses from the ARM, they must be split up into two 32-bit accesses.

Connecting a PCIe device follows the standard PCIe convention. The CM4 has on-board AC coupling capacitors for CLK and PcTe TX signals However the Pcte, RX signals need external coupling capacitors close to the driving source (the device Tx) if vou are using an external PCle/NVMe card these capacitors will be on-board. The PCle convention is that if vou are wiring directly to an IC then the TX and RX pairs need to be swapped (i.e. TX -> RX, RX -> TX). If you are wiring to a connector then this is typically labelled from the host point of view and so TX/RX swaps aren't required. Additionally the PcTe cL K nREo must be connected to ensure the CM4 produces a clock signal, and the PCIe_nRST should also be connected to ensure the device is correctly reset when required.

The differential PCIe signals should be routed as 90Ω differential pairs, with suitable clearances. There is no need to match the lengths between pairs, only the signals within a Pair need to be length matched ideally to better than 0.1mm.

Tip

5.10 kernels and newer have had support for MSI-X added. There is a limit of up to 32 IRQs available. If the device has problems with interrupts then adding pci=nomsi to cmdline.txt (and rebooting) often fixes the issue.

2.4. USB 2.0 (high speed)

The USB 2.0 interface supports up to 480Mbps signalling. The differential pair should be routed as a 90Ω differential pair. The length of the P/N signals should ideally be matched to better than 0.15mm.

Tip

The firmware disables the USB interface by default to save power. In recent versions of Raspberry Pi OS (Bullseye) it is automatically enabled by the otg_mode=1 setting in the config.txt file. If you are using a different OS, or an older version of Raspberry Pi OS, you will need to add this to config.txt to enable the USB interface.

Note

The port is capable of being used as a true USB On-The-Go (OTG) port. While there is no oficial documentation, some users have had success making this work. The USB_OTG_ID pin is used to select between USB host and device that is typically wired to the ID pin of a Micro USB connector. To use this functionality it must be enabled in the OS. If using either as a fixed slave or fixed master; tie the USB_OTG_ID pin to ground.

2.5. GPIO

There are 28 pins available for general purpose I/O (GPIO), which correspond to the GPIO pins on the Raspberry Pi 4 Model B 40- pin header. These pins have access to internal peripherals: SMI, DPI, I2C, PWM, SPI, and UART. The BCM2711 ARM peripherals book describes these features in detail, along with the multiplexing options available. The drive strength and slew rate should ideally be set as low as possible to reduce any EMC issues. GPIO2 and GPIO3 have 1.8kΩ pull up resistors.

The BCM2711 GPIO bank is powered by GPIO_VREF, this can either be connected to +1.8V for 1.8V signalling GPIO, or +3.3V for 3.3V signalling. You should keep the load on the 28 GPIO pins to below 50mA in total. GPIO_VREF must be powered for the CM4 to start up correctly.

2.5.1. Alternative function assignments

Up to six alternative functions are available. The BCM2711 ARM peripherals book describes these features in detail. The table below gives a quick overview.

Table 1.

GPIO pins alternative function assignment

GPIOPullALT0ALT1ALT2ALT3ALT4ALT5
GPIO0HighSDA0SA5PCLKSPI3_CE0_NTXD2SDA6
GPIO1HighSCL0SA4DESPI3_MISORXD2SCL6
GPIO2HighSDA1SA3LCD_VSYNCSPI3_MOSICTS2SDA3
GPIO3HighSCL1SA2LCD_HSYNCSPI3_SCLKRTS2SCL3
GPIO4HighGPCLK0SA1DPI_D0SPI4_CE0_NTXD3SDA3
GPIO5HighGPCLK1SA0DPI_D1SPI4_MISORXD3SCL3
GPIO6HighGPCLK2SOE_N / SEDPI_D2SPI4_MOSICTS3SDA4
GPIO7HighSPI0_CE1_NSWE_N / SRW_NDPI_D3SPI4_SCLKRTS3SCL4
GPIO8HighSPI0_CE0_NSD0DPI_D4BSCSL / CE_NTXD4SDA4
GPIO9LowSPI0_MISOSD1DPI_D5BSCSL / MISORXD4SCL4
GPIO10LowSPI0_MOSISD2DPI_D6BSCSL SDA / MOSICTS4SDA5
GPIO11LowSPI0_SCLKSD3DPI_D7BSCSL SCL / SCLKRTS4SCL5
GPIO12LowPWM0_0SD4DPI_D8SPI5_CE0_NTXD5SDA5
GPIO13LowPWM0_1SD5DPI_D9SPI5_MISORXD5SCL5
GPIO14LowTXD0SD6DPI_D10SPI5_MOSICTS5TXD1
GPIO15LowRXD0SD7DPI_D11SPI5_SCLKRTS5RXD1
GPIO16LowSD8DPI_D12CTS0SPI1_CE2_NCTS1
GPIO17LowSD9DPI_D13RTS0SPI1_CE1_NRTS1
GPIO18LowPCM_CLKSD10DPI_D14SPI6_CE0_NSPI1_CE0_NPWM0_0
GPIO19LowPCM_FSSD11DPI_D15SPI6_MISOSPI1_MISOPWM0_1
GPIO20LowPCM_DINSD12DPI_D16SPI6_MOSISPI1_MOSIGPCLK0
GPIO21LowPCM_DOUTSD13DPI_D17SPI6_SCLKSPI1_SCLKGPCLK1
GPIO22LowSD0_CLKSD14DPI_D18SD1_CLKARM_TRSTSDA6
GPIO23LowSD0_CMDSD15DPI_D19SD1_CMDARM_RTCKSCL6
GPIO24LowSD0_DAT0SD16DPI_D20SD1_DAT0ARM_TDOSPI3_CE1_N
GPIO25LowSD0_DAT1SD17DPI_D21SD1_DAT1ARM_TCKSPI4_CE1_N
GPIO26LowSD0_DAT2DPI_D22SD1_DAT2ARM_TDISPI5_CE1_N
GPIO27LowSD0_DAT3DPI_D23SD1_DAT3ARM_TMSSPI6_CE1_N
GPIO44-GPCLK1SDA0SDA1SPI0_CE1_NSD_CARD_VOLT
GPIO45-PWM0_1SCL0SCL1SPI0_CE2_NSD_CARD_PWR0

Special function legend:

Table 2.

GPIO pins alternative function legend

NameFunction
SDA0BSC master 0 data linea
SCL0BSC master 0 clock line
SDAxBSC master 1,3,4,5,6 data lineb
SCLxBSC master 1,3,4,5,6 clock line
GPCLKxGeneral purpose clock 0,1,2
SPIx_CE2_NSPI 0,3,4,5,6 chip select 2
SPIx_CE1_NSPI 0,3,4,5,6 chip select 1
SPIx_CE0_NSPI 0,3,4,5,6 chip select 0
SPIx_MISOSPI 0,3,4,5,6 MISO
SPIx_MOSISPI 0,3,4,5,6 MOSI
SPIx_SCLKSPI 0,3,4,5,6 serial clock
PWMx_0PWM 0,1 channel 0
PWMx_1PWM 0,1 channel 1
TXDxUART 0,2,3,4,5 transmit data
RXDxUART 0,2,3,4,5 receive data
CTSxUART 0,2,3,4,5 clear to send
RTSxUART 0,2,3,4,5 request to send
PCM_CLKPCM clock
"PCM_FSPCM frame sync
"PCM_DINPCM data in
"PCM_DOUTPCM data out
SAxSecondary mem address bus
SOE_N / SESecondary mem controls
SWE_N / SRW_NSecondary mem controls
SDxSecondary mem data bus
BSCSL SDA / MOSIBSC slave data, SPI slave MOSI
BSCSL SCL / SCLKBSC slave clock, SPI slave clock
BSCSL - / MISOBSC, SPI MISO
BSCSL - / CE_NBSC, SPI CSn
SPI1_CE2_NSPI 1 chip select 2 °
SPI1_CE1_NSPI 1 chip select 1
SPI1_CE0_NSPI 1 chip select 0
SPI1_MISOSPI 1 MISO
SPI1_MOSISPI 1 MOSI
SPI1_SCLKSPI 1 serial clock
TXD1UART 1 transmit data
RXD1UART 1 receive data
CTS1UART 1 clear to send
RTS1UART 1 request To send
ARM_TRSTARM JTAG reset
ARM_RTCKARM JTAG return clock
ARM_TDOARM JTAG data out
ARM_TCKARM JTAG clock
ARM_TDIARM JTAG data in
ARM_TMSARM JTAG mode select
PCLKDisplay parallel interface
DEDisplay parallel interface
LCD_VSYNCDisplay parallel interface
LCD_HSYNCDisplay parallel interface
DPI_DxDisplay parallel interface

a The Broadcom serial control bus is a proprietary bus compliant with the Philips(R) I2C bus/interface.
b BSC master 2 & 7 are not user-accessible.

2.6. Dual HDMI 2.0

The CM4 supports two HDMI 2.0 interfaces, each one capable of driving 4K images. If both HDMI outputs are used then each can be driven up to 4Kp30, however if only HDMI0 interface is being used then images up to 4Kp60 are possible

HDMI signals should be routed as 100Ω differential pairs. Each signal within a pair should ideally be matched to better than 0.15mm. Pairs don’t typically need any extra matching, as they only have to be matched to 25mm.

CEC is also supported; an internal 27kΩ pullup resistor is included in the CM4.

Basic on-board ESD protection is provided for the I2C EDID signals and the CEC signals; internal pullup and pulldown resistors are also provided. On the Raspberry Pi 4 Model B the HDMI signals don’t have any extra ESD protection. Depending on the application, extra ESD protection may be required.

2.7. CSI-2 (MIPI serial camera)

The CM4 supports two camera ports: CAM0 (2 lanes) and CAM1 (4 lanes). CSI signals should be routed as 100Ω differential pairs. Each signal within a pair should ideally be matched to better than 0.15mm.

The documentation around the CSI interface can be found on the Raspberry Pi website, while Linux kernel drivers can be found on GitHub.

Note

The oficial Raspberry Pi firmware supports the OmniVision OV5647, Sony IMX219, Sony IMX296, Sony IMX477 and Sony IMX708 camera sensors. No security device is required on Compute Module devices in order to use these camera sensors.

2.8. DSI (MIPI serial display)

The CM4 supports two display ports: DISP0 (2 lanes) and DISP1 (4 lanes). Each lane supports a maximum data rate per lane of 1Gbps.

Although Linux kernel drivers are available, the DSI interface is not currently documented. Only DSI displays supported by the oficial Raspberry Pi firmware are supported. DSI signals should be routed as 100Ω differential pairs; each signal within a pair should ideally be matched to better than 0.15mm

Note

While only oficial DSI displays are supported, other displays can be added using the parallel DPI interface which is available as a GPIO alternative function. The CM4 supports up to three displays of any type (HDMI, DSI, DPI) at any one time

2.9. I2C (SDA0 SCL0)

This internal I2C bus is normally allocated to the CSI1 and DSI1, as these devices are controlled by the firmware. It can be used as a general I2C bus if the CSI1 ad DSI1 interfaces aren't being used, or are being controlled by the firmware, Eor example libcamera runs on the ARM and doesn’t use the firmware, so in this case you may use CSI1 and this I2C bus. SDA0 is connected to GPIO44 on the BCM2711 and SCL0 is connected to GPIO45.

2.10. I2C (ID_SD ID_SC)

This I2C bus is normally used for identifying HATs and controlling CSI0 and DSI0 devices. If the firmware isn’t using the I2C bus e.g. CSI0 and DSI0 aren’t being used then these pins may be used as GPIO 0 and GPIO 1 if required.

Note

If these pins are used as GPIO pins, then to prevent the firmware from checking to see if there is a HAT EEPROM available, add force_eeprom_read=0 and disable_poe_fan=1 to the config.txt file.

2.11. SDIO/eMMC (CM4Lite only)

The CM4Lite does not have on-board eMMC. The eMMC signals are available on the connector so that an external eMMC or SD card can be used.

The SD_PWR_ON signal is used to enable an external power-switch to turn on power to the SD card; for eMMC it typically isn’t used. If booting from SD card is required, then a pullup resistor must also be fitted to default the power-switch to be on. When is high ( 3.3V ), this forces 1.8V signalling on the SDIO interface. Typically this is used with eMMC memory.

Figure 3.

CM4Lite SD card interface

2.12. Analog IP0/IP1

These are the two spare inputs on the MXL7704. The MXL7704 datasheet should be consulted if these pins are to be used. On board filtering is provided by a 100nF capacitor to ground for each signal. On the Raspberry Pi 4 Model B these are connected to the USB C connector CC1 and CC2 pins

2.13. Global_EN

Pulling this pin low puts the CM4 in the lowest possible power-down state. After software shutdown, Global_EN needs to be pulled low for > 1ms to restart the power system on the CM4.

Tip

It is recommended to only pull this pin low once the OS has shut down.

2.14. RUN_PG

This pin when high signals that the CM4 has started, Driving this pin low resets the module. This should be done with caution: if files on a filesystem are open they will not be closed.

2.15. nRPI_BOOT

During boot if this pin is low, booting from eMMC will be stopped and booting will be transferred to rpi boot which is via USB.

2.16. LED_nACT

This pin is designed to drive an LED to replicate the green LED on the Raspberry Pi 4 Model B. Under Linux this pin will flash to signify eMMC access. If any error occurs during booting, then this LED will flash an error pattern which can be decoded using the look up table on the Raspberry Pi website

2.17. LED_nPWR

This pin needs to be buffered to drive an LED. The signal is designed to replicate the red power LED on the Raspberry Pi 4 Model B.

2.18. EEPROM_nWP

It is recommended that final products pull this pin low to prevent the end users changing the contents of the on-board EEPROM. See the Raspberry Pi 4 Model B documentation for instructions on the software settings required to support EEPROM write protection.

3. Electrical and mechanical

3.1. Mechanical

The CM4 is a compact 40mm × 55mm module. The Module is 4.7mm deep, but when connected the height will be 5.078mm or 6.578mm depending on the stacking height chosen.

  1. 4 × M2.5 mounting holes (inset 3.5mm from module edge)

  2. PCB thickness 1.2mm ± 10%

  3. BCM2711 SoC height including solder balls 2.378 ± 0.11mm

  4. Stacking height either:

a. 1.5mm with mating connector (clearance under CM4 0mm): DF40C-100DS-0.4v

b. 3.0mm with mating connector (clearance under CM4 1.5mm): DF40HC(3.0)-100DS-0.4v

If the on-board wireless antenna is used (see Section 2.1. Wireless) it must be orientated towards the edge of the plastic enclosure and any nearby metal must have cut-outs or the wireless performance will be degraded. It is suggested that there is at least 10mm clearance around the PCB antenna, but the designer must check the performance

Figure 4.

Mechanical specification of the Raspberry Pi Compute Module 4

There must not be any metal, including ground planes, under the antenna. The ground plane cutout must be a minimum of 6.5mm × 11mm, but ideally at least 8mm × 15mm. If these requirements can’t be met wireless performance may be degraded, especially in the 2.4GHz spectrum. It is recommended that the external antenna is used where possible

Note

The location and arrangement of components on the Compute Module may change slightly over time due to revisions for cost and manufacturing considerations; however the maximum component heights and PCB thickness will be kept as specified.

A step file of the CM4 is available as part of the CM4 design data package. This is for guidance only and is subject to changes over time due to revisions.

3.2. Thermal

The CM4 dissipates less power than the Raspberry Pi 4 Model B. The CM4 also contains less metal in the PCB and fewer connectors, which means that it has less passive heat sinking than the Raspberry Pi 4 Model B. Despite it consuming less power, it may run warmer than the Raspberry Pi 4 Model B.

The BCM2711 will reduce the clock rate to try and keep its internal temperature below 85°C. So in high ambient temperatures it is possible that the clock will also be automatically throttled back. If the BCM2711 is unable to lower its internal clocks enough to bring the temperature down, its case temperature will rise above 85°C. It is important that any thermal solution chosen keeps the ambient temperature for the other silicon devices on the CM4 within the operating temperature range.

Operating temperature range: −20°C - +85°C non-condensing. NB Optimal RF wireless performance is between −20°C and +75°C.

3.3. Electrical specification

Warning

Stresses above those listed in Table 3 may cause permanent damage to the device. This is a stress rating only; functiona operation of the device under these or any other conditions above those listed in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.

Table 3.
Absolute maximum ratings

SymbolParameterMinimumMaximumUnit
$V_{IN}$ 5V Input Voltage-0.56.0V
$V_{GPIO\_VREF}$ GPIO Voltage-0.53.6V
$V_{gpio}$ GPIO Input voltage-0.5 $V_{GPIO\_VREF} + 0.5$ V

Note

V is the GPIO bank voltage, which must be tied to either the 3.3V or the 1.8V rail of the CM4.

Table 4.

DC characteristics

SymbolParameterConditionsMinimumTypicalMaximumUnit
$V_{IL(gpio)}$ Input low voltage $V_{GPIO\_VREF} = 3.3V$ 0-0.8V
$V_{IH(gpio)}$ Input high voltage $V_{GPIO\_VREF} = 3.3V$ 2.0- $V_{GPIO\_VREF}$ V
$V_{IL(gpio)}$ Input low voltage $V_{GPIO\_VREF} = 1.8V$ 0-0.35V
$V_{IH(gpio)}$ Input high voltage $V_{GPIO\_VREF} = 1.8V$ 0.65- $V_{GPIO\_VREF}$ V
$I_{IL(gpio)}$ Input leakage current---10μA
$V_{OL(gpio)}$ Output low voltage---0.4V
$V_{IH(gpio)}$ Output high voltage- $V_{GPIO\_VREF} - 0.4$ --V
$I_{O(gpio)}$ Output current1mA0.871.3-mA
$I_{O(gpio)}$ Output current2mA1.752.6-mA
$I_{O(gpio)}$ Output current3mA2.633.9-mA
$I_{O(gpio)}$ Output current4mA default3.55.3-mA
$I_{O(gpio)}$ Output current5mA4.396.6-mA
$I_{O(gpio)}$ Output current6mA5.277.9-mA
$I_{O(gpio)}$ Output current7mA6.159.2-mA
$I_{O(gpio)}$ Output current8mA7.0210.5-mA
$R_{PU(gpio)}$ Pullup resistor $V_{GPIO\_VREF} = 3.3V$ 334773kΩ
$R_{PD(gpio)}$ Pulldown resistor $V_{GPIO\_VREF} = 3.3V$ 334773kΩ
$R_{PU(gpio)}$ Pullup resistor $V_{GPIO\_VREF} = 1.8V$ 184773kΩ
$R_{PD(gpio)}$ Pulldown resistor $V_{GPIO\_VREF} = 1.8V$ 184773kΩ

Refer to interface specifications (see Section 2. Interfaces) for electrical details of other interfaces.

Table 5.
Power consumption

SymbolParameterConditionsMinimumTypicalMaximumUnit
$I_{shutdown}$ Shutdown currentGLOBAL_EN = 0V-15-μA
$I_{shutdown}$ Shutdown currentGLOBAL_EN > 2V-8-mA
$I_{idle}$ Idle currentGLOBAL_EN > 2V-400-mA
$I_{load}$ Operation currentGLOBAL_EN > 2V-1400-mA

Note

The figures in Table 5 greatly depend on the end application.

4. Pinout

Table 6.
Pinout for the Raspberry Pi Compute Module 4

PinSignalDescription
1GNDGround (0V)
2GNDGround (0V)
3Ethernet_Pair3_PEthernet pair 3 positive (connect to transformer or MagJack)
4Ethernet_Pair1_PEthernet pair 1 positive (connect to transformer or MagJack)
5Ethernet_Pair3_NEthernet pair 3 negative (connect to transformer or MagJack)
6Ethernet_Pair1_NEthernet pair 1 negative (connect to transformer or MagJack)
7GNDGround (0V)
8GNDGround (0V)
9Ethernet_Pair2_NEthernet pair 2 negative (connect to transformer or MagJack)
10Ethernet_Pair0_NEthernet pair 0 negative (connect to transformer or MagJack)
11Ethernet_Pair2_PEthernet pair 2 positive (connect to transformer or MagJack)
12Ethernet_Pair0_PEthernet pair 0 positive (connect to transformer or MagJack)
13GNDGround (0V)
14GNDGround (0V)
15Ethernet_nLED3Active-low Ethernet activity indicator (CM4_3.3V signal): typically a green LED is connected to this pin. $I_{OL} = 8mA @ V_{OL} < 0.4V$
16Ethernet_SYNC_INIEEE1588 SYNC Input pin (CM4_3.3V signal: $I_{OL} = 8mA @ V_{OL} < 0.4V$ )
17Ethernet_nLED2Active-low Ethernet speed indicator (CM4_3.3V signal): typically a yellow LED is connected to this pin. A low state indicates the 1Gbit or 100Mbit link: $I_{OL} = 8mA @ V_{OL} < 0.4V$
18Ethernet_SYNC_OUTIEEE1588 SYNC Output pin (CM4_3.3V signal: $I_{OL} = 8mA @ V_{OL} < 0.4V$ )
19Ethernet_nLED1Active-low Ethernet speed indicator (CM4_3.3V signal): typically a yellow LED is connected to this pin. A low state indicates the 1Gbit or 10Mbit link: $I_{OL} = 8mA @ V_{OL} < 0.4V$
20EEPROM_nWPLeave floating NB internally pulled up to CM4_3.3V via 100kΩ (V IL &lt; 0.8V), but can be grounded to prevent writing to the on-board EEPROM which stores the bootcode
21Pi_nLED_ActivityActive-low Pi activity LED. 20mA Max, 5V tolerant ( $V_{OL} < 0.4V$ ). (this is the signal that drives the green LED on the Raspberry Pi 4 Model B)
22GNDGround (0V)
23GNDGround (0V)
24GPIO26GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
25GPIO21GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
26GPIO19GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
27GPIO20GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
28GPIO13GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
29GPIO16GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
30GPIO6GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
31GPIO12GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
32GNDGround (0V)
33GNDGround (0V)
34GPIO5GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
35ID_SC(BCM2711 GPIO 1) GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
36ID_SD(BCM2711 GPIO 0) GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
37GPIO7GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
38GPIO11GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
39GPIO8GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
40GPIO9GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
41GPIO25GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
42GNDGround (0V)
43GNDGround (0V)
44GPIO10GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
45GPIO24GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
46GPIO22GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
47GPIO23GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
48GPIO27GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
49GPIO18GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
50GPIO17GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
51GPIO15GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
52GNDGround (0V)
53GNDGround (0V)
54GPIO4GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
55GPIO14GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V
56GPIO3GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V. Internal 1.8kΩ pull up to GPIO_VREF
57SD_CLKSD card clock signal (only available on CM4Lite)
58GPIO2GPIO: typically a 3.3V signal, but can be a 1.8V signal by connecting GPIO_VREF to CM4_1.8V. Internal 1.8kΩ pull up to GPIO_VREF
59GNDGround (0V)
60GNDGround (0V)
61SD_DAT3SD card/eMMC Data3 signal (only available on CM4Lite)
62SD_CMDSD card/eMMC Command signal (only available on CM4Lite)
63SD_DAT0SD card/eMMC Data0 signal (only available on CM4Lite)
64SD_DAT5SD card/eMMC Data5 signal (only available on CM4Lite)
65GNDGround (0V)
66GNDGround (0V)
67SD_DAT1SD card/eMMC Data1 signal (only available on CM4Lite)
68SD_DAT4SD card/eMMC Data4 signal (only available on CM4Lite)
69SD_DAT2SD card/eMMC Data2 signal (only available on CM4Lite)
70SD_DAT7SD card/eMMC Data7 signal (only available on CM4Lite)
71GNDGround (0V)
72SD_DAT6SD card/eMMC Data6 signal (only available on CM4Lite)
73SD_VDD_OVERRIDEConnect to CM4_3.3V to force SD card/eMMC interface to 1.8V signalling instead of 3.3V, otherwise leave unconnected. Typically only used if external eMMC is connected.
74GNDGround (0V)
75SD_PWR_ONOutput to power-switch for the SD card. The CM4 sets this pin high (3.3V) to signal that power to the SD card should be turned on. If booting from the SD card is required then a pullup should also be fitted so the power-switch defaults to on. (only available on CM4Lite)
76ReservedDo not connect anything to this pin.
77+5V (Input)4.75V-5.25V. Main power input
78GPIO_VREFMust be connected to CM4_3.3V (pins 84 and 86) for 3.3V GPIO or CM4_1.8V (pins 88 and 90) for 1.8V GPIO. This pin cannot be floating or connected to ground.
79+5V (Input)4.75V-5.25V. Main power input
80SCL0I2C clock pin (BCM2711 GPIO45): typically used for Camera and Display. Internal 1.8kΩ pull up to CM4_3.3V
81+5V (Input)4.75V-5.25V. Main power input
82SDA0I2C Data pin (BCM2711 GPIO44): typically used for Camera and Display. Internal 1.8kΩ pull up to CM4_3.3V
83+5V (Input)4.75V-5.25V. Main power input
84CM4_3.3V (Output)3.3V ± 2.5%. Power Output max 300mA per pin for a total of 600mA. This will be powered down during power-off or GLOBAL_EN being set low
85+5V (Input)4.75V-5.25V. Main power input
86CM4_3.3V (Output)3.3V ± 2.5%. Power Output max 300mA per pin for a total of 600mA. This will be powered down during power-off or GLOBAL_EN being set low
87+5V (Input)4.75V-5.25V. Main power input
88CM4_1.8V (Output)1.8V ± 2.5%. Power Output max 300mA per pin for a total of 600mA. This will be powered down during power-off or GLOBAL_EN being set low
89WL_nDisableCan be left floating; if driven low the wireless interface will be disabled. Internally pulled up via 1.8kΩ to CM4_3.3V
90CM4_1.8V (Output)1.8V ± 2.5%. Power Output max 300mA per pin for a total of 600mA. This will be powered down during power-off or GLOBAL_EN being set low
91BT_nDisableCan be left floating; if driven low the Bluetooth interface will be disabled. Internally pulled up via 1.8kΩ to CM4_3.3V
92RUN_PGBidirectional pin. Can be driven low (via a 220Ω resistor) to reset the CM4 CPU. As an output, a high signals that power is good and CPU is running. Internally pulled up to +3.3V via 10kΩ
93nRPIBOOTA low on this pin forces booting from an RPI server (e.g. PC or a Raspberry Pi); if not used leave floating. Internally pulled up via 10kΩ to +3.3V
94AnalogIP1Analogue input of the MXL7704: typically connected to CC pin of Type C power connector
95PI_LED_nPWRActive-low output to drive Power On LED. This signal needs to be buffered.
96AnalogIP0Analogue input of the MXL7704: typically connected to CC pin of Type C power connector
97Camera_GPIOTypically used to shut down the camera to reduce power. Reassigning this pin to another function isn't recommended. CM4_3.3V signalling
98GNDGround (0V)
99GLOBAL_ENInput. Drive low to power off CM4. Internally pulled up with a 100kΩ to +5V
100nEXTRSTOutput. Driven low during reset; Driven high (CM4_3.3V) once CM4 CPU has started to boot
101USB_OTG_IDInput (3.3V signal) USB OTG Pin. Internally pulled up. When grounded the CM4 becomes a USB host but the correct OS driver also needs to be used
102PCIe_CLK_nREQInput (3.3V signal) PCIe clock request pin (low to request PCI clock). Internally pulled up
103USB_NUSB D-
104ReservedDo not connect anything to this pin.
105USB_PUSB
106ReservedDo not connect anything to this pin.
107GNDGround (0V)
108GNDGround (0V)
109PCIe_nRSTOutput (+3.3V signal) PCIe reset active-low
110PCIe_CLK_PPCIe clock Out positive (100MHz) NB AC coupling capacitor included on CM4
111VDAC_COMPVideo DAC output (TV OUT)
112PCIe_CLK_NPCIe clock Out negative (100MHz) NB AC coupling capacitor included on CM4
113GNDGround (0V)
114GNDGround (0V)
115CAM1_D0_NInput Camera1 D0 negative
116PCIe_RX_PInput PCIe GEN 2 RX positive NB external AC coupling capacitor required
117CAM1_D0_PInput Camera1 D0 positive
118PCIe_RX_NInput PCIe GEN 2 RX negative NB external AC coupling capacitor required
119GNDGround (0V)
120GNDGround (0V)
121CAM1_D1_NInput Camera1 D1 negative
122PCIe_TX_POutput PCIe GEN 2 TX positive NB AC coupling capacitor included on CM4
123CAM1_D1_PInput Camera1 D1 positive
124PCIe_TX_NOutput PCIe GEN 2 TX positive NB AC coupling capacitor included on CM4
125GNDGround (0V)
126GNDGround (0V)
127CAM1_C_NInput Camera1 clock negative
128CAM0_D0_NInput Camera0 D0 negative
129CAM1_C_PInput Camera1 clock positive
130CAM0_D0_PInput Camera0 D0 positive
131GNDGround (0V)
132GNDGround (0V)
133CAM1_D2_NInput Camera1 D2 negative
134CAM0_D1_NInput Camera0 D1 negative
135CAM1_D2_PInput Camera1 D2 positive
136CAM0_D1_PInput Camera0 D1 positive
137GNDGround (0V)
138GNDGround (0V)
139CAM1_D3_NInput Camera1 D3 negative
140CAM0_C_NInput Camera0 clock negative
141CAM1_D3_PInput Camera1 D3 positive
142CAM0_C_PInput Camera0 clock positive
143HDMI1_HOTPLUGInput HDMI1 hotplug. Internally pulled down with a 100kΩ. 5V tolerant. (It can be connected directly to a HDMI connector; a small amount of ESD protection is provided on the CM4 by an on-board HDMI05-CL02F3)
144GNDGround (0V)
145HDMI1_SDABidirectional HDMI1 SDA. Internally pulled up with a 1.8kΩ. 5V tolerant. (It can be connected directly to a HDMI connector; a small amount of ESD protection is provided on the CM4 by an on-board HDMI05-CL02F3)
146HDMI1_TX2_POutput HDMI1 TX2 positive
147HDMI1_SCLBidirectional HDMI1 SCL. Internally pulled up with a 1.8kΩ. 5V tolerant. (It can be connected directly to a HDMI connector; a small amount of ESD protection is provided on the CM4 by an on-board HDMI05-CL02F3)
148HDMI1_TX2_NOutput HDMI1 TX2 negative
149HDMI1_CECInput HDMI1 CEC. Internally pulled up with a 27kΩ. 5V tolerant. (It can be connected directly to a HDMI connector; a small amount of ESD protection is provided on the CM4 by an on-board HDMI05-CL02F3)
150GNDGround (0V)
151HDMI0_CECInput HDMI0 CEC. Internally pulled up with a 27kΩ. 5V tolerant (It can be connected directly to a HDMI connector; a small amount of ESD protection is provided on the CM4 by an on-board HDMI05-CL02F3)
152HDMI1_TX1_POutput HDMI1 TX1 positive
153HDMI0_HOTPLUGInput HDMI0 hotplug. Internally pulled down 100kΩ. 5V tolerant. (It can be connected directly to a HDMI connector; a small amount of ESD protection is provided on the CM4 by an on-board HDMI05-CL02F3)
154HDMI1_TX1_NOutput HDMI1 TX1 negative
155GNDGround (0V)
156GNDGround (0V)
157DSI0_D0_NOutput Display0 D0 negative
158HDMI1_TX0_POutput HDMI1 TX0 positive
159DSI0_D0_POutput Display0 D0 positive
160HDMI1_TX0_NOutput HDMI1 TX0 negative
161GNDGround (0V)
162GNDGround (0V)
163DSI0_D1_NOutput Display0 D1 negative
164HDMI1_CLK_POutput HDMI1 clock positive
165DSI0_D1_POutput Display0 D1 positive
166HDMI1_CLK_NOutput HDMI1 clock negative
167GNDGround (0V)
168GNDGround (0V)
169DSI0_C_NOutput Display0 clock negative
170HDMI0_TX2_POutput HDMI0 TX2 positive
171DSI0_C_POutput Display0 clock positive
172HDMI0_TX2_NOutput HDMI0 TX2 negative
173GNDGround (0V)
174GNDGround (0V)
175DSI1_D0_NOutput Display1 D0 negative
176HDMI0_TX1_POutput HDMI0 TX1 positive
177DSI1_D0_POutput Display1 D0 positive
178HDMI0_TX1_NOutput HDMI0 TX1 negative
179GNDGround (0V)
180GNDGround (0V)
181DSI1_D1_NOutput Display1 D1 negative
182HDMI0_TX0_POutput HDMI0 TX0 positive
183DSI1_D1_POutput Display1 D1 positive
184HDMI0_TX0_NOutput HDMI0 TX0 negative
185GNDGround (0V)
186GNDGround (0V)
187DSI1_C_NOutput Display1 clock negative
188HDMI0_CLK_POutput HDMI0 clock positive
189DSI1_C_POutput Display1 clock positive
190HDMI0_CLK_NOutput HDMI0 clock negative
191GNDGround (0V)
192GNDGround (0V)
193DSI1_D2_NOutput Display1 D2 negative
194DSI1_D3_NOutput Display1 D3 negative
195DSI1_D2_POutput Display1 D2 positive
196DSI1_D3_POutput Display1 D3 positive
197GNDGround (0V)
198GNDGround (0V)
199HDMI0_SDABidirectional HDMI0 SDA. Internally pulled up with a 1.8kΩ. 5V tolerant. (It can be connected directly to a HDMI connector; a small amount of ESD protection is provided on the CM4 by an on-board HDMI05-CL02F3)
200HDMI0_SCLBidirectional HDMI0 SCL. Internally pulled up with a 1.8kΩ. 5V tolerant. (It can be connected directly to a HDMI connector; a small amount of ESD protection is provided on the CM4 by an on-board HDMI05-CL02F3)

All ground pins should be connected. If none of the signals on the second connector (pins 101 to 200) are used, then you may omit the connector to reduce costs, but mechanical stability needs to be considered.

The voltage on GPIO pins 0-27 must not exceed CM4_3.3V if +3.3V signalling is used or CM4_1.8V if +1.8V signalling is used. These pins are the same as on the 40-pin connector on the Raspberry Pi 4 Model B.

If the CM4_1.8V rail is used to power other devices other than the GPIO_VREF then you should ensure that in case of surprise power removal (e.g.the +5V pin goes below +4.5V) from the CM4, the load on the CM4_1.8V must go to zero.

Similarly if the cM4, 3,3y rail is used to power other devices other than the GPto vREE, then you should ensure that in the case ot surprise power removal the CM4_3.3V rail never falls below the CM4_1.8V rail. This is the typical case, but you should check this in your design. In the case where it does fall below the CM4_1.8V rail, then extra circuitry is required to disconnect the CM4_3.3V load.

No reverse voltage must be applied to any pin, or power-up may be prevented; i.e. during power-down/off no pin may have externa voltage applied, otherwise this may prevent a subsequent power-up.

4.1. Differential pairs

It is recommended that P/N signals within a pair are matched to better than 0.15mm. Often, matching between pairs is not so critical: e.g. HDMI pair-to-pair matching should be better than 25mm, so on a typical board no extra matching is required.

4.1.1. 100Ω differential pair signal lengths

On the CM4 all differential pairs are matched to better than 0.05mm (P/N signals).

Note
It is recommended that pairs are also matched on the interface board.

On the CM4, pair-to-pairs are not always matched, as many interfaces do not require very accurate matching between pairs. Table 7 documents the CM4 track-length difference within each group. (A non-zero value represents how much longer in mm that track is, when compared to the signal with zero length difference.)

Table 7.
100Ω differential pair signal lengths

SignalLength
CAM0_C_N0.02
CAM0_C_P0.02
CAM0_D0_N0.06
CAM0_D0_P0.07
CAM0_D1_N0
CAM0_D1_P0.01
CAM1_C_N0.78
CAM1_C_P0.78
CAM1_D0_N0.02
CAM1_D0_P0.01
CAM1_D1_N0.4
CAM1_D1_P0.4
CAM1_D2_N0.05
CAM1_D2_P0.04
CAM1_D3_N0.01
CAM1_D3_P0
DSI0_C_N0
DSI0_C_P0
DSI0_D0_N0
DSI0_D0_P0
DSI0_D1_N0.01
DSI0_D1_P0.01
DSI1_C_N1.28
DSI1_C_P1.28
DSI1_D0_N0
DSI1_D0_P0.01
DSI1_D1_N1.06
DSI1_D1_P1.06
DSI1_D2_N0.83
DSI1_D2_P0.84
DSI1_D3_N3.78
DSI1_D3_P3.79
HDMI0_CLK_N3.25
HDMI0_CLK_P3.24
HDMI0_TX0_N1.76
HDMI0_TX0_P1.76
HDMI0_TX1_N0.62
HDMI0_TX1_P0.62
HDMI0_TX2_N0
HDMI0_TX2_P0
HDMI1_CLK_N2.47
HDMI1_CLK_P2.46
HDMI1_TX0_N1.51
HDMI1_TX0_P1.51
HDMI1_TX1_N1
HDMI1_TX1_P1
HDMI1_TX2_N0
HDMI1_TX2_P0.01
Ethernet_Pair0_P5.23
Ethernet_Pair0_N5.23
Ethernet_Pair1_P0
Ethernet_Pair1_N0
Ethernet_Pair2_P3.82
Ethernet_Pair2_N3.82
Ethernet_Pair3_P4.29
Ethernet_Pair3_N4.29

4.1.2. 90Ω differential pair signal lengths

On the CM4 all differential pairs are matched to better than 0.05mm (P/N signals).

Note
It is recommended that pairs are also matched on the interface board.

Pair-to-pairs aren't always matched as many interfaces don't reguire very accurate matching between pairs. Table 8 documents the CM4 track-length difference within each group. (A non-zero value represents how much longer in mm that track is, when compared to the signal with zero length difference.)

Table 8.

90Ω differential pair signal lengths

SignalLength
PCIe_CLK_P0.65
PCIe_CLK_N0.65
PCIe_TX_P0
PCIe_TX_N0
PCIe_RX_P0.23
PCIe_RX_N0.23
USB2_P0
USB2_N0

5. Power

5.1. Power-up sequencing

The CM4 requires a single +5V supply, and can supply up to 600mA at +3.3V and +1.8V to peripherals.

All pins should not have any power applied to them before the +5V rail is applied.

If the EEPROM is to be write-protected, then the EEPROM_nWP should be low before power-up.

If the CM4 is to be booted using USB then RPI_nBOOT needs to be low within 2ms of +5V rising.

+5V should rise monotonically to 4.75V and stay above 4.75V for the entire operation of the CM4.

The power-up sequence will start when both +5V rail is above 4.75V and GLOBAL_EN rises. GLOBAL_EN has internal RC delay so that it rises after +5V has risen. The order of events is as follows

  1. +5V rises

  2. GLOBAL_EN rises

  3. +3.3V rises

  4. +1.8V rises at least 1ms after +3.3V

  5. RUN_PG rises at least 10ms after +1.8V

  6. EXT_nRESET rises at least 1s after RUN_PG

5.2. Power-down sequencing

The operating system should be shut down before the power is removed, to ensure that the file system remains consistent. If this can’t be achieved, then a filesystem like btrfs, f2fs or overlayfs (use raspi-config to enable this) should be considered.

Once the operating system has shut down, the +5V rail can be removed or the GLOBAL_EN pin can be taken low to put the CM4 into the lowest power mode.

During the shutdown sequence the +1.8V will be discharged before the +3.3V rail.

5.3. Power consumption

The exact power consumption of the CM4 will greatly depend on the tasks being run on the CM4. The lowest shutdown power consumption mode is with the GL oBAL, EN driven low typically is 15uA With GLoBAL. EN high but software shut down, the typica consumption is 8mA. Idle power consumption is typically 400mA, but this varies considerably depending on the operating system. Operating power consumption is typically around 1.4A; again, this greatly depends on the operating system and the tasks being executed.

5.4. Regulator outputs

To make it easier to interface to the CM4 the on-board regulators (+3.3V and +1.8V) can each supply 600mA to devices connected to the CM4. The loads on these outputs isn't taken into account in the power consumption figures

6. Troubleshooting

The CM4 has a number of stages of power-up before the CPU starts. If there is an error at any of the stages, power-up will be halted.

6.1. Hardware checklist

  1. Is the +5V supply good? Check this by pulling GLOBAL_EN low and apply an external 2A load to the +5V supply. Does it stay > +4.75V including noise? Ideally it should remain > +4.9V including any noise.

  2. Remove external 2A load, but keep GLOBAL_EN pulled low.

  3. Check the CM4 +3.3V rail is < 200mV. If this is not the case there is an external power path back-feeding the CM4, either directly or indirectly. This could also occur via the digital pins, e.g Ethernet.

  4. Still with GLOBAL_EN pulled low check the CM4 +1.8V rail is < 200mV. Again if the +1.8V rail is above 200mV then there is an external path back-feeding the 1.8V rail. (If nothing is connected to these pins you can ignore this check.)

  5. Remove the pull down on GLOBAL_EN

  6. Check GLOBAL_EN now goes high (it is internally pulled up on the CM4)

  7. Check the +3.3V supply rises to > +3.15V. If it does not, this suggests there is too much load on the +3.3V rail.

  8. Check the +1.8V rail gets to > +1.71V. If it does not, this suggests there is too much load on the +1.8V rail.

  9. Check RUN_PG goes high

  10. Check ACT_LED starts to oscillate to indicate booting; check it isn’t flashing an error code.

6.2. Bootloader

  1. Connect a HDMI cable to see if the HDMI diagnostics screen appears.

  2. Connect a USB serial cable to GPIO pins 14 and 15.

a. See Configuring UARTS for details.

  1. Short the nRPIBOOT pin to ground to force USB boot mode. The CM4IO board has a jumper for nRPIBOOT This can be used to enable different boot modes (e.g. network) and enable UART logging.

a. See Flashing Compute Module eMMC

6.3. rpi-eeprom-update

  1. CM4 will not run recovery.bin from from the EMMC (or SD Card on CM4Lite). Therefore, the only way to update the bootloader EEPROM is via usbboot or self-update

6.4. EEPROM write-protect

The on-board EEPROM can be write-protected by shorting EEPROM_nWP to ground. The CM4IO board has a jumper for EEPROM_nWP.

  1. See Bootloader Configuration

6.5. Firmware

  1. A 5.4 or newer kernel and the latest firmware release is required. These can be updated by using usbboot to mount the EMMC as a USB MSD device.

  2. Nightly OS images are now available which contain rpi-update master firmware + kernel. Bug fixes for CM4 will normally be provided via these images except where a test/patch binary is required.

a. See Nightly builds

6.6. Kernel

  1. The updated OS images use the new Raspberry Pi Compute Module 4 device tree file. If that is not found then the Raspberry Pi 4 Model B device tree file will be used

a. See CM4 Device tree

7. Availability

7.1. Support

For documentation, see the Compute Module Hardware documentation section of the Raspberry Pi website. Support questions can be posted to the Raspberry Pi forum.

7.2. Ordering codes

For ordering and pricing information, see CM4 Product Brief.

7.3. Packaging

Small quantities are supplied in individual cardboard boxes. These have an internal ESD coating so that a separate ESD bag isn’t required. This packaging is recyclable and reduces waste.

Raspberry Pi

Extracted figures

Figures extracted from this datasheet PDF by the Embedr parser that are not placed inline above; captions are the parser's image descriptions.

Figure 1: Signal length table

Signal length table

Figure 2: Current specifications table

Current specifications table

Figure 3: GPIO alternate-function multiplexing table

GPIO alternate-function multiplexing table

Figure 4: CM4 pins 190–200 signal descriptions

CM4 pins 190–200 signal descriptions

Figure 5: CM4 pins 54–85 signal descriptions

CM4 pins 54–85 signal descriptions

Figure 6: Signal name and function table

Signal name and function table

Figure 7: Document revision metadata

Document revision metadata

Figure 8: Pin, signal, and description table

Pin, signal, and description table

Figure 9: GPIO electrical characteristics table

GPIO electrical characteristics table

Figure 10: GPIO alternate-function mapping table

GPIO alternate-function mapping table

Figure 11: Pin signal and description table for pins 1–27

Pin signal and description table for pins 1–27

Figure 12: Pin signal and description table for pins 117–150

Pin signal and description table for pins 117–150

Figure 13: Interface board matching recommendation

Interface board matching recommendation

Figure 14: Absolute maximum voltage ratings table

Absolute maximum voltage ratings table

Figure 15: Pin signal and description table for pins 151–189

Pin signal and description table for pins 151–189

Figure 16: Signal length table for camera, DSI, and HDMI differential pairs

Signal length table for camera, DSI, and HDMI differential pairs

Figure 17: GPIO input, output, and leakage electrical characteristics

GPIO input, output, and leakage electrical characteristics

Figure 18: Signal length table for PCIe and USB differential pairs

Signal length table for PCIe and USB differential pairs

Figure 19: Design note recommending interface-board pair matching

Design note recommending interface-board pair matching

Figure 20: Compute Module pin signal and function descriptions

Compute Module pin signal and function descriptions

Figure 21: Signal name and function mapping table

Signal name and function mapping table

Extracted Images

Figures and diagrams from the PDF

Preview the extracted datasheet assets and open any image in a separate tab for closer inspection.

Agent APIs

Use this datasheet from any agent

Send the page, markdown, chunks, or search endpoint to ChatGPT, Claude, embedr-app, or your own tooling.