File tree Expand file tree Collapse file tree 8 files changed +203
-72
lines changed
boards/shields/st_mb1897_cam Expand file tree Collapse file tree 8 files changed +203
-72
lines changed Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
+ };
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ shield :
2
+ name : st_mb1897_cam
3
+ full_name : ST MB1897 camera module
4
+ vendor : st
5
+ supported_features :
6
+ - video
Original file line number Diff line number Diff line change
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
+ };
You can’t perform that action at this time.
0 commit comments