Skip to content

Commit 4f39b49

Browse files
committed
boards: shields: Add a shield for DVP FPC-24 mt9m114 camera modules
Add a shield for DVP FPC 24-pins mt9m114 camera modules. These camera modules are supported on i.MX RT10xx series, for example. Signed-off-by: Phi Bang Nguyen <[email protected]>
1 parent 3b3d311 commit 4f39b49

File tree

5 files changed

+144
-0
lines changed

5 files changed

+144
-0
lines changed

boards/nxp/mimxrt1064_evk/mimxrt1064_evk.dts

+4
Original file line numberDiff line numberDiff line change
@@ -342,3 +342,7 @@ zephyr_udc0: &usb1 {
342342
pinctrl-0 = <&pinmux_swo>;
343343
pinctrl-names = "default";
344344
};
345+
346+
dvp_fpc24_i2c: &lpi2c1 {};
347+
348+
dvp_fpc24_interface: &csi {};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright 2024 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_DVP_FPC24_MT9M114
5+
def_bool $(shields_list_contains,DVP_FPC24_MT9M114)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dvp_fpc24_interface {
8+
source = <&mt9m114>;
9+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
.. _dvp_fpc24_mt9m114:
2+
3+
DVP FPC-24 MT9M114 Camera Module
4+
################################
5+
6+
Overview
7+
********
8+
9+
This shield supports mt9m114 camera modules which use a 24-pin FPC connector and a DVP
10+
(Digital Video Port), aka parallel interface. These camera modules are compatible and provided
11+
together with the i.MX RT1050, RT1060 and RT1064 EVKs as specified here `Camera iMXRT`_.
12+
13+
Pins assignment of the DVP FPC-24 MT9M114 camera module
14+
=======================================================
15+
16+
+-------------------+--------------+
17+
| FPC Connector Pin | Function |
18+
+===================+==============+
19+
| 1 | NC |
20+
+-------------------+--------------+
21+
| 2 | AGND |
22+
+-------------------+--------------+
23+
| 3 | SDA |
24+
+-------------------+--------------+
25+
| 4 | AVDD |
26+
+-------------------+--------------+
27+
| 5 | SCL |
28+
+-------------------+--------------+
29+
| 6 | Reset |
30+
+-------------------+--------------+
31+
| 7 | Vsync |
32+
+-------------------+--------------+
33+
| 8 | Powerdown |
34+
+-------------------+--------------+
35+
| 9 | Hsync |
36+
+-------------------+--------------+
37+
| 10 | DVDD |
38+
+-------------------+--------------+
39+
| 11 | DOVDD |
40+
+-------------------+--------------+
41+
| 12 | Data 9 |
42+
+-------------------+--------------+
43+
| 13 | Master Clock |
44+
+-------------------+--------------+
45+
| 14 | Data 8 |
46+
+-------------------+--------------+
47+
| 15 | DGND |
48+
+-------------------+--------------+
49+
| 16 | Data 7 |
50+
+-------------------+--------------+
51+
| 17 | Pixel Clock |
52+
+-------------------+--------------+
53+
| 18 | Data 6 |
54+
+-------------------+--------------+
55+
| 19 | Data 2 |
56+
+-------------------+--------------+
57+
| 20 | Data 5 |
58+
+-------------------+--------------+
59+
| 21 | Data 3 |
60+
+-------------------+--------------+
61+
| 22 | Data 4 |
62+
+-------------------+--------------+
63+
| 23 | Data 1 |
64+
+-------------------+--------------+
65+
| 24 | Data 0 |
66+
+-------------------+--------------+
67+
68+
69+
Requirements
70+
************
71+
72+
This shield can only be used with a board which provides a configuration for a 24-pins FPC
73+
connector with DVP (parallel) interface, such as the i.MX RT1050, RT1060, RT1064 EVKs.
74+
75+
Programming
76+
***********
77+
78+
Set ``-DSHIELD=dvp_fpc24_mt9m114`` when you invoke ``west build``. For example:
79+
80+
.. zephyr-app-commands::
81+
:zephyr-app: samples/subsys/video/capture
82+
:board: mimxrt1064_evk
83+
:shield: dvp_fpc24_mt9m114
84+
:goals: build
85+
86+
References
87+
**********
88+
89+
.. target-notes::
90+
91+
.. _Camera iMXRT:
92+
https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Connecting-camera-and-LCD-to-i-MX-RT-EVKs/ta-p/1122183
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/{
8+
chosen {
9+
zephyr,camera = &dvp_fpc24_interface;
10+
};
11+
};
12+
13+
&dvp_fpc24_i2c {
14+
mt9m114: mt9m114@48 {
15+
compatible = "aptina,mt9m114";
16+
reg = <0x48>;
17+
18+
port {
19+
mt9m114_ep_out: endpoint {
20+
remote-endpoint = <&dfi_ep_in>;
21+
};
22+
};
23+
};
24+
};
25+
26+
&dvp_fpc24_interface {
27+
status = "okay";
28+
29+
port {
30+
dfi_ep_in: endpoint {
31+
remote-endpoint = <&mt9m114_ep_out>;
32+
};
33+
};
34+
};

0 commit comments

Comments
 (0)