Raspberry Pi revision codes

Each distinct Raspberry Pi model revision has a unique revision code. You can look up a Raspberry Pi's revision code by running:

cat /proc/cpuinfo

The last three lines show the hardware type, the revision code, and the Pi's unique serial number. For example:

Hardware    : BCM2835
Revision    : a02082
Serial      : 00000000765fc593

Note: As of the 4.9 kernel, all Pis report BCM2835, even those with BCM2836 and BCM2837 processors. You should not use this string to detect the processor.

Old-style revision codes

The first set of Raspberry Pi revisions were given sequential hex revision codes from 0002 to 0015:

Code Model Revision RAM Manufacturer
0002 B 1.0 256 MB Egoman
0003 B 1.0 256 MB Egoman
0004 B 2.0 256 MB Sony UK
0005 B 2.0 256 MB Qisda
0006 B 2.0 256 MB Egoman
0007 A 2.0 256 MB Egoman
0008 A 2.0 256 MB Sony UK
0009 A 2.0 256 MB Qisda
000d B 2.0 512 MB Egoman
000e B 2.0 512 MB Sony UK
000f B 2.0 512 MB Egoman
0010 B+ 1.0 512 MB Sony UK
0011 CM1 1.0 512 MB Sony UK
0012 A+ 1.1 256 MB Sony UK
0013 B+ 1.2 512 MB Embest
0014 CM1 1.0 512 MB Embest
0015 A+ 1.1 256 MB / 512 MB Embest

New-style revision codes

With the launch of the Raspberry Pi 2, new-style revision codes were introduced. Rather than being sequential, each bit of the hex code represents a piece of information about the revision:

uuuuuuuuFMMMCCCCPPPPTTTTTTTTRRRR
Part Represents Options
uuuuuuuu Unused Unused
F New flag 1: new-style revision
0: old-style revision
MMM Memory size 0: 256 MB
1: 512 MB
2: 1 GB
CCCC Manufacturer 0: Sony UK
1: Egoman
2: Embest
3: Sony Japan
PPPP Processor 0: BCM2835
1: BCM2836
2: BCM2837
TTTTTTTT Type 0: A
1: B
2: A+
3: B+
4: 2B
5: Alpha (early prototype)
6: CM1
8: 3B
9: Zero
a: CM3
c: Zero W
RRRR Revision 0, 1, 2, etc.

New-style revision codes in use:

Code Model Revision RAM Manufacturer
900021 A+ 1.1 512 MB Sony UK
900032 B+ 1.2 512 MB Sony UK
900092 Zero 1.2 512 MB Sony UK
900093 Zero 1.3 512 MB Sony UK
9000c1 Zero W 1.1 512 MB Sony UK
920093 Zero 1.3 512 MB Embest
a01040 2B 1.0 1 GB Sony UK
a01041 2B 1.1 1 GB Sony UK
a02082 3B 1.2 1 GB Sony UK
a020a0 CM3 1.0 1 GB Sony UK
a21041 2B 1.1 1 GB Embest
a22042 2B (with BCM2837) 1.2 1 GB Embest
a22082 3B 1.2 1 GB Embest
a32082 3B 1.2 1 GB Sony Japan