Skip to content

Added documenation for 15-pin and 22-pin Camera Connectors. #3155 #4105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions documentation/asciidoc/accessories/camera/camera_hardware.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,78 @@ Other available schematics;
* Camera Module v3 https://datasheets.raspberrypi.com/camera/camera-module-3-schematics.pdf[PDF]
* HQ Camera Module https://datasheets.raspberrypi.com/hq-camera/hq-camera-schematics.pdf[PDF]

==== Camera Connector Pinout (15-Pin)

This is the pinout of the 15-pin Camera Serial Interface (CSI) connector used on flagship Raspberry Pi models prior to the Raspberry Pi 5.
The connector type is an Amphenol SFW15R-2STE1LF or a compatible equivalent.

NOTE: Most official Camera Modules use the same 15-pin connector but feature a reversed pinout to support 15-pin Type A / Type 1 FFC cables.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Most"?? I don't think there's an official camera module (see https://www.raspberrypi.com/products/#cameras-and-displays ) that doesn't have a 15-pin connector?

As a result, Pin 1 on the Raspberry Pi connects to Pin 15 on the camera module, and vice versa.
When using third-party connectors or extension boards, be cautious — some expose the opposite side of the FFC cable, effectively reversing the pin order again.

Signal direction is specified from the perspective of the Raspberry Pi.
The I^2^C lines (SCL and SDA) are pulled up to 3.3V on the Raspberry Pi board.

The function and direction of the GPIO lines depend on the specific Camera Module in use. Typically, CAM_IO0 is used as an active-high power enable.

|===
| Pin No. | Name | Description | Direction / Type

| 1 | GND | - | Ground
| 2 | CAM_DN0 | D-PHY lane 0 (negative) | Input, D-PHY
| 3 | CAM_DP0 | D-PHY lane 0 (positive) | Input, D-PHY
| 4 | GND | - | Ground
| 5 | CAM_DN1 | D-PHY lane 1 (negative) | Input, D-PHY
| 6 | CAM_DP1 | D-PHY lane 1 (positive) | Input, D-PHY
| 7 | GND | - | Ground
| 8 | CAM_CN | D-PHY Clock (negative) | Input, D-PHY
| 9 | CAM_CP | D-PHY Clock (positive) | Input, D-PHY
|10 | GND | - | Ground
|11 | CAM_IO0 | GPIO (e.g. Power-Enable) | Bidirectional, 3.3V
|12 | CAM_IO1 | GPIO (e.g. Clock, LED) | Bidirectional, 3.3V
|13 | SCL | I^2^C Clock | Output, 3.3V
|14 | SDA | I^2^C Data | Bidirectional, 3.3V
|15 | 3V3 | 3.3V Supply | Output
|===

==== Camera Connector Pinout (22-Pin)

This is the pinout of the 22-pin Camera Serial Interface (CSI) connector used on the Raspberry Pi Zero series, the Compute Module IO boards, and flagship models since the Raspberry Pi 5.
The connector type is an Amphenol F32Q-1A7H1-11022 or a compatible equivalent.

NOTE: Many official Camera Modules use the same 22-pin connector but feature a reversed pinout to accommodate https://www.raspberrypi.com/products/camera-cable/[22-pin Type A / Type 1 FFC cables].
As a result, Pin 1 on the Raspberry Pi connects to Pin 22 on the camera module, and vice versa.
Comment on lines +311 to +312
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that (AFAIK) all of our camera modules are 15-pin, and it's only the "special cable" (which I mentioned previously) that connects a 15-pin camera module to the 22-pin CSI connector on Pi 5 or Pi Zero.

When using third-party connectors or extension boards, be cautious - some connectors expose the opposite side of the FFC cable, effectively reversing the pin order again.

Direction is given from the perspective of the Raspberry Pi.
The I^2^C lines (SCL and SDA) are pulled up to 3.3V on the Raspberry Pi board.

The function and direction of the GPIO lines depend on the specific Camera Module in use. Typically, CAM_IO0 is used as an active-high power enable.


|===
| Pin No. | Name | Description | Direction / Type

| 1 | GND | - | Ground
| 2 | CAM_DN0 | D-PHY lane 0 (negative) | Input, D-PHY
| 3 | CAM_DP0 | D-PHY lane 0 (positive) | Input, D-PHY
| 4 | GND | - | Ground
| 5 | CAM_DN1 | D-PHY lane 1 (negative) | Input, D-PHY
| 6 | CAM_DP1 | D-PHY lane 1 (positive) | Input, D-PHY
| 7 | GND | - | Ground
| 8 | CAM_CN | D-PHY Clock (negative) | Input, D-PHY
| 9 | CAM_CP | D-PHY Clock (positive) | Input, D-PHY
|10 | GND | - | Ground
|11 | CAM_DN2 | D-PHY lane 2 (negative) | Input, D-PHY
|12 | CAM_DP2 | D-PHY lane 2 (positive) | Input, D-PHY
|13 | GND | - | Ground
|14 | CAM_DN3 | D-PHY lane 3 (negative) | Input, D-PHY
|15 | CAM_DP3 | D-PHY lane 3 (positive) | Input, D-PHY
|16 | GND | - | Ground
|17 | CAM_IO0 | GPIO (e.g. Power-Enable) | Bidirectional, 3.3V
|18 | CAM_IO1 | GPIO (e.g. Clock, LED) | Bidirectional, 3.3V
|19 | GND | - | Ground
|20 | SCL | I^2^C Clock | Output, 3.3V
|21 | SDA | I^2^C Data | Bidirectional, 3.3V
|22 | 3V3 | 3.3V Supply | Output
|===