Skip to content

Commit cfb7df0

Browse files
Alain Volmatkartben
authored andcommitted
shields: st_mb1897_cam: addition of MB1897 camera board
Addition of a shield st_mb1897_cam embedding a GC2145 CSI sensor which can be connected to the STM32MP135F-DK via a 15pins FFC. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
1 parent bde0f4d commit cfb7df0

File tree

7 files changed

+109
-0
lines changed

7 files changed

+109
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025 STMicroelectronics
2+
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
config SHIELD_ST_MB1897_CAM
6+
def_bool $(shields_list_contains,st_mb1897_cam)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_PIXEL_FORMAT="RGBP"
2+
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_WIDTH=640
3+
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_HEIGHT=480
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&mipid02 {
8+
status = "okay";
9+
};
10+
11+
&mco1 {
12+
status = "okay";
13+
};
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.. _st_mb1897_cam:
2+
3+
ST_MB1897_CAM
4+
#############
5+
6+
Overview
7+
********
8+
9+
The STM32MP135F discovery board is delivered with a CSI camera module
10+
connected to the STM32MP135F-DK board via a 15pins FFC connector.
11+
The camera module board (MB1897) embeds a Galaxycore GC2145 CSI sensor.
12+
13+
.. figure:: st_mb1897_cam.webp
14+
:align: center
15+
:alt: ST-MB1897-CAM
16+
17+
MB1897 Image (Credit: STMicroelectronics.)
18+
19+
Requirements
20+
************
21+
22+
The camera module bundle is compatible with STM32 Discovery kits and
23+
Evaluation boards featuring a 15 pins FFC connector, such as the STM32MP13
24+
Discovery kit.
25+
26+
Usage
27+
*****
28+
29+
The shield can be used in any application by setting ``SHIELD`` to
30+
``st_mb1897_cam`` for boards with the necessary device tree node labels.
31+
32+
Set ``--shield "st_mb1897_cam"`` when you invoke ``west build``. For example:
33+
34+
.. zephyr-app-commands::
35+
:zephyr-app: samples/drivers/video/capture
36+
:board: stm32mp135f_dk
37+
:shield: st_mb1897_cam
38+
:goals: build
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
shield:
2+
name: st_mb1897_cam
3+
full_name: ST MB1897 camera module
4+
vendor: st
5+
supported_features:
6+
- video
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/gpio/raspberrypi-csi-connector.h>
8+
#include <zephyr/dt-bindings/video/video-interfaces.h>
9+
10+
/ {
11+
chosen {
12+
zephyr,camera = &csi_capture_port;
13+
};
14+
};
15+
16+
&csi_interface {
17+
status = "okay";
18+
};
19+
20+
&csi_ep_in {
21+
remote-endpoint-label = "gc2145_ep_out";
22+
bus-type = <VIDEO_BUS_TYPE_CSI2_DPHY>;
23+
data-lanes = <1 2>;
24+
};
25+
26+
&csi_i2c {
27+
status = "okay";
28+
29+
gc2145: camera@3c {
30+
compatible = "galaxycore,gc2145";
31+
reg = <0x3c>;
32+
pwdn-gpios = <&csi_connector CSI_IO1 GPIO_ACTIVE_LOW>;
33+
reset-gpios = <&csi_connector CSI_IO0 GPIO_ACTIVE_LOW>;
34+
35+
port {
36+
gc2145_ep_out: endpoint {
37+
remote-endpoint-label = "csi_ep_in";
38+
data-lanes = <1 2>;
39+
bus-type = <VIDEO_BUS_TYPE_CSI2_DPHY>;
40+
};
41+
};
42+
};
43+
};

0 commit comments

Comments
 (0)