Raspberry Pi 4 Model B (Cortex-A72)

Overview

The Raspberry Pi 4 [1] is the fourth generation of the Raspberry Pi flagship series of single-board computers. It is based on the Broadcom BCM2711 SoC which features a quad-core 64-bit ARM Cortex-A72 CPU and is available in 1, 2, 4 or 8 GB of LPDDR4 RAM.

Hardware

  • Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.8GHz

  • 1GB, 2GB, 4GB or 8GB LPDDR4-3200 SDRAM (depending on model)

  • 2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE

  • Gigabit Ethernet

  • 2 USB 3.0 ports; 2 USB 2.0 ports.

  • Raspberry Pi standard 40 pin GPIO header (fully backwards compatible with previous boards)

  • 2 × micro-HDMI® ports (up to 4kp60 supported)

  • 2-lane MIPI DSI display port

  • 2-lane MIPI CSI camera port

  • 4-pole stereo audio and composite video port

  • H.265 (4kp60 decode), H264 (1080p60 decode, 1080p30 encode)

  • OpenGL ES 3.1, Vulkan 1.0

  • Micro-SD card slot for loading operating system and data storage

  • 5V DC via USB-C connector (minimum 3A)

  • 5V DC via GPIO header (minimum 3A)

  • Power over Ethernet (PoE) enabled (requires separate PoE HAT)

Supported Features

The rpi_4b board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.

rpi_4b/bcm2711 target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-A72 CPU1

arm,cortex-a72

GPIO & Headers

on-chip

BCM2711 GPIO11

brcm,bcm2711-gpio

Interrupt controller

on-chip

ARM Generic Interrupt Controller v21

arm,gic-v2

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

Serial controller

on-chip

BCM2711 UART1

brcm,bcm2711-aux-uart

SRAM

on-chip

Generic on-chip SRAM1

mmio-sram

Timer

on-chip

per-core ARM architected timer1

arm,armv8-timer

Programming and Debugging

The rpi_4b board supports the runners and associated west commands listed below.

flash debug

TF Card

Prepare a TF card with MBR and FAT32. In the root directory of the TF card:

  1. Download and place these firmware files:

  2. Copy build/zephyr/zephyr.bin

  3. Create a config.txt:

    kernel=zephyr.bin
    arm_64bit=1
    enable_uart=1
    uart_2ndstage=1
    

Insert the card and power on the board. You should see the following output on the serial console (GPIO 14/15):

*** Booting Zephyr OS build XXXXXXXXXXXX  ***
Hello World! Raspberry Pi 4 Model B!

References