-
Notifications
You must be signed in to change notification settings - Fork 2k
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
philipaxer
wants to merge
2
commits into
raspberrypi:develop
Choose a base branch
from
philipaxer:feature/camera_connector_pinning
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+75
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
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
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|=== |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?