-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Avoid making difference between 15pins and 22pins raspberry pi CSI connector #91983
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
Merged
danieldegrasse
merged 3 commits into
zephyrproject-rtos:main
from
avolmat-st:pr-video_csi-nexus-fix
Jun 26, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Copyright 2025 STMicroelectronics | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
title: GPIO pins exposed on the Raspberry Pi CSI Camera connector | ||
|
||
description: | | ||
There are 2 variants of the Raspberry Pi CSI camera connector. Either 15-pin | ||
or 22-pin. Here only GPIO provided by those connectors are abstracted since | ||
others pins are directly connected to CSI PHY. | ||
For reference, pinout of 15-pin and 22-pin connectors are references below. | ||
In this gpio nexus, only GPIOs are represented and should be described in | ||
the following way, allowing to have a single compatible for both 15-pin | ||
and 22-pin connectors and also allowing to deal with 15-pin to 22-pin | ||
conversion cables. | ||
|
||
Nexus mapping: | ||
1 IO0 pin 11 (15-pin based) / pin 17 (22-pin based) | ||
2 IO1 pin 12 (15-pin based) / pin 18 (22-pin based) | ||
3 I2C_SCL pin 13 (15-pin based) / pin 20 (22-pin based) | ||
4 I2C_SDA pin 14 (15-pin based) / pin 21 (22-pin based) | ||
|
||
For reference only, Raspberry 15-pin Connector layout: | ||
1 GND | ||
2 CSI_D0_N | ||
3 CSI_D0_P | ||
4 GND | ||
5 CSI_D1_N | ||
6 CSI_D1_P | ||
7 GND | ||
8 CSI_CK_N | ||
9 CSI_CK_P | ||
10 GND | ||
11 IO0 | ||
12 IO1 | ||
13 I2C_SCL | ||
14 I2C_SDA | ||
15 VCC (3v3) | ||
|
||
For reference only, Raspberry 22-pin Connector layout: | ||
|
||
1 GND | ||
2 CSI_D0_N | ||
3 CSI_D0_P | ||
4 GND | ||
5 CSI_D1_N | ||
6 CSI_D1_P | ||
7 GND | ||
8 CSI_CK_N | ||
9 CSI_CK_P | ||
10 GND | ||
11 CSI_D2_N | ||
12 CSI_D2_P | ||
13 GND | ||
14 CSI_D3_N | ||
15 CSI_D3_P | ||
16 GND | ||
17 IO0 | ||
18 IO1 | ||
19 GND | ||
20 I2C_SCL | ||
21 I2C_SDA | ||
22 VCC (3v3) | ||
|
||
compatible: "raspberrypi,csi-connector" | ||
|
||
include: [gpio-nexus.yaml, base.yaml] |
18 changes: 0 additions & 18 deletions
18
include/zephyr/dt-bindings/gpio/raspberrypi-csi-22pins-connector.h
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
include/zephyr/dt-bindings/gpio/raspberrypi-csi-connector.h
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright (c) 2025 STMicroelectronics | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
#ifndef INCLUDE_ZEPHYR_DT_BINDINGS_GPIO_RASPBERRYPI_CSI_CONNECTOR_H_ | ||
#define INCLUDE_ZEPHYR_DT_BINDINGS_GPIO_RASPBERRYPI_CSI_CONNECTOR_H_ | ||
|
||
/** | ||
* @name CSI camera connector GPIO list | ||
* @{ | ||
*/ | ||
#define CSI_IO0 1 /**< GPIO0 */ | ||
#define CSI_IO1 2 /**< GPIO1 */ | ||
#define CSI_I2C_SCL 3 /**< I2C clock pin */ | ||
#define CSI_I2C_SDA 4 /**< I2C data pin */ | ||
/** @} */ | ||
|
||
#endif /* INCLUDE_ZEPHYR_DT_BINDINGS_GPIO_RASPBERRYPI_CSI_CONNECTOR_H_ */ |
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.
add a
title:
, please, otherwise this will look really odd/wrong in boards' documentationI guess you want something like "GPIO pins exposed on the Raspberry Pi CSI Camera connector".