Skip to content

Commit 710b460

Browse files
KhanhNguyen-RVCkartben
authored andcommitted
boards: shields: add ArduCam CU450 OV5640 DVP shield
Add a shield definition for the ArduCam CU450 OV5640 camera module in DVP (parallel) mode. - Add Kconfig entry for the shield - Add devicetree overlay for DVP mode - Add documentation and shield.yml Signed-off-by: Khanh Nguyen <[email protected]>
1 parent fa8ea53 commit 710b460

File tree

4 files changed

+187
-0
lines changed

4 files changed

+187
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_ARDUCAM_CU450_OV5640_DVP
5+
def_bool $(shields_list_contains,arducam_cu450_ov5640_dvp)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/video/video-interfaces.h>
8+
9+
/ {
10+
chosen {
11+
zephyr,camera = &arducam_ffc_40pin_dvp_interface;
12+
};
13+
};
14+
15+
&arducam_ffc_40pin_i2c {
16+
status = "okay";
17+
18+
ov5640: ov5640@3c {
19+
compatible = "ovti,ov5640";
20+
reg = <0x3c>;
21+
reset-gpios = <&arducam_ffc_40pin_connector
22+
ARDUCAM_FFC_40PIN_RESET
23+
GPIO_ACTIVE_LOW>;
24+
status = "okay";
25+
26+
port {
27+
ov5640_ep_out: endpoint {
28+
remote-endpoint-label = "arducam_ffc_40pin_ep_in";
29+
bus-type = <VIDEO_BUS_TYPE_PARALLEL>;
30+
};
31+
};
32+
};
33+
};
34+
35+
&arducam_ffc_40pin_dvp_interface {
36+
status = "okay";
37+
38+
port {
39+
arducam_ffc_40pin_ep_in: endpoint {
40+
remote-endpoint-label = "ov5640_ep_out";
41+
bus-width = <8>;
42+
hsync-active = <1>;
43+
vsync-active = <1>;
44+
pclk-sample = <1>;
45+
};
46+
};
47+
};
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
.. _arducam_cu450_ov5640:
2+
3+
ArduCam CU450 OV5640 Camera Module
4+
##################################
5+
6+
Overview
7+
********
8+
9+
The ArduCam CU450 OV5640 shield provides the OV5640 image sensor on a 40-pin FFC connector,
10+
supporting both the DVP (Digital Video Port) interface and the MIPI CSI-2 interface.
11+
It is designed specifically for the Renesas `EK-RA8P1`_ evaluation kit.
12+
13+
Pins assignment
14+
===============
15+
16+
+-----+----------------------+
17+
| Pin | Function |
18+
+=====+======================+
19+
| 1 | GND |
20+
+-----+----------------------+
21+
| 2 | D11 |
22+
+-----+----------------------+
23+
| 3 | D10 |
24+
+-----+----------------------+
25+
| 4 | GND |
26+
+-----+----------------------+
27+
| 5 | D9 / MIPI_CSI2_DL1_P |
28+
+-----+----------------------+
29+
| 6 | D8 / MIPI_CSI2_DL1_N |
30+
+-----+----------------------+
31+
| 7 | GND |
32+
+-----+----------------------+
33+
| 8 | D7 / MIPI_CSI2_CL1_P |
34+
+-----+----------------------+
35+
| 9 | D6 / MIPI_CSI2_CL1_N |
36+
+-----+----------------------+
37+
| 10 | GND |
38+
+-----+----------------------+
39+
| 11 | D5 / MIPI_CSI2_DL0_P |
40+
+-----+----------------------+
41+
| 12 | D4 / MIPI_CSI2_DL0_N |
42+
+-----+----------------------+
43+
| 13 | GND |
44+
+-----+----------------------+
45+
| 14 | D3 |
46+
+-----+----------------------+
47+
| 15 | D2 |
48+
+-----+----------------------+
49+
| 16 | GND |
50+
+-----+----------------------+
51+
| 17 | D1 |
52+
+-----+----------------------+
53+
| 18 | D0 |
54+
+-----+----------------------+
55+
| 19 | GND |
56+
+-----+----------------------+
57+
| 20 | SCL |
58+
+-----+----------------------+
59+
| 21 | SDA |
60+
+-----+----------------------+
61+
| 22 | GND |
62+
+-----+----------------------+
63+
| 23 | VSYNC |
64+
+-----+----------------------+
65+
| 24 | HSYNC |
66+
+-----+----------------------+
67+
| 25 | RESET |
68+
+-----+----------------------+
69+
| 26 | XCLK |
70+
+-----+----------------------+
71+
| 27 | PCLK |
72+
+-----+----------------------+
73+
| 28 | INT |
74+
+-----+----------------------+
75+
| 29 | GND |
76+
+-----+----------------------+
77+
| 30 | GND |
78+
+-----+----------------------+
79+
| 31 | 3V3 |
80+
+-----+----------------------+
81+
| 32 | GND |
82+
+-----+----------------------+
83+
| 33 | GND |
84+
+-----+----------------------+
85+
| 34 | 3V3 |
86+
+-----+----------------------+
87+
| 35 | 3V3 |
88+
+-----+----------------------+
89+
| 36 | 3V3 |
90+
+-----+----------------------+
91+
| 37 | GND |
92+
+-----+----------------------+
93+
| 38 | GND |
94+
+-----+----------------------+
95+
| 39 | 3V3 |
96+
+-----+----------------------+
97+
| 40 | GND |
98+
+-----+----------------------+
99+
100+
101+
Requirements
102+
************
103+
104+
This shield requires a board with a 40-pin FFC connector. The Renesas EK-RA8P1
105+
evaluation kit is fully supported.
106+
107+
.. note::
108+
While the CU450 OV5640 module and connector provide both DVP and
109+
MIPI CSI-2 interfaces, only the DVP interface is currently supported
110+
on Renesas RA SoCs. MIPI CSI-2 is not yet supported on this platform.
111+
112+
Programming
113+
***********
114+
115+
Set ``--shield arducam_cu450_ov5640_dvp`` when you invoke ``west build``. For example:
116+
117+
.. zephyr-app-commands::
118+
:zephyr-app: samples/drivers/video/capture
119+
:board: ek_ra8p1/r7ka8p1kflcac/cm85
120+
:shield: arducam_cu450_ov5640_dvp
121+
:goals: build
122+
123+
References
124+
**********
125+
126+
.. target-notes::
127+
128+
.. _EK-RA8P1:
129+
https://www.renesas.com/en/design-resources/boards-kits/ek-ra8p1/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
shield:
2+
name: arducam_cu450_ov5640_dvp
3+
full_name: Arducam CU450_OV5640 DVP interface camera module
4+
vendor: ovti
5+
supported_features:
6+
- video

0 commit comments

Comments
 (0)