Skip to content

Commit 3d4a4e2

Browse files
author
Alain Volmat
committed
shields: st_stm32mp13_gc2145_cam: addition of STM32MP13 camera board
Addition of a shield st_stm32mp13_gc2145_cam embedding a GC2145 CSI sensor which can be connected to the STM32MP135F via a 15pins FFC. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
1 parent 31b3bad commit 3d4a4e2

File tree

6 files changed

+101
-0
lines changed

6 files changed

+101
-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_STM32MP13_GC2145_CAM
6+
def_bool $(shields_list_contains,st_stm32mp13_gc2145_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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.. _st_stm32mp13_gc2145_cam:
2+
3+
ST_STM32MP13_GC2145_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+
Requirements
14+
************
15+
16+
The camera module bundle is compatible with STM32 Discovery kits and
17+
Evaluation boards featuring a 15 pins FFC connector, such as the STM32MP13
18+
Discovery kit.
19+
20+
Usage
21+
*****
22+
23+
The shield can be used in any application by setting ``SHIELD`` to
24+
``st_stm32mp13_gc2145_cam`` for boards with the necessary device tree node labels.
25+
26+
Set ``--shield "st_stm32mp13_gc2145_cam"`` when you invoke ``west build``. For example:
27+
28+
.. zephyr-app-commands::
29+
:zephyr-app: samples/drivers/video/capture
30+
:board: stm32mp135f_dk
31+
:shield: st_stm32mp13_gc2145_cam
32+
:goals: build
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
shield:
2+
name: st_stm32mp13_gc2145_cam
3+
full_name: ST STM32MP135F_DK GC2145-MB1897
4+
vendor: st
5+
supported_features:
6+
- video
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/gpio/raspberrypi-csi-15pins-connector.h>
8+
#include <zephyr/dt-bindings/video/video-interfaces.h>
9+
10+
/ {
11+
chosen {
12+
zephyr,camera = &csi_15pins_capture_port;
13+
};
14+
};
15+
16+
&csi_15pins_interface {
17+
status = "okay";
18+
};
19+
20+
&csi_15pins_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_15pins_i2c {
27+
gc2145: camera@3c {
28+
compatible = "galaxycore,gc2145";
29+
reg = <0x3c>;
30+
pwdn-gpios = <&csi_15pins_connector CSI_15PINS_IO1 GPIO_ACTIVE_LOW>;
31+
reset-gpios = <&csi_15pins_connector CSI_15PINS_IO0 GPIO_ACTIVE_LOW>;
32+
33+
port {
34+
gc2145_ep_out: endpoint {
35+
remote-endpoint-label = "csi_15pins_ep_in";
36+
data-lanes = <1 2>;
37+
bus-type = <VIDEO_BUS_TYPE_CSI2_DPHY>;
38+
};
39+
};
40+
};
41+
};

0 commit comments

Comments
 (0)