1/*
2 * Copyright 2024 NXP
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 = &nxp_csi;
12	};
13};
14
15&nxp_cam_i2c {
16	status = "okay";
17
18	ov5640: ov5640@3c {
19		compatible = "ovti,ov5640";
20		reg = <0x3c>;
21		reset-gpios = <&nxp_cam_connector 9 GPIO_ACTIVE_LOW>;
22		powerdown-gpios = <&nxp_cam_connector 17 GPIO_ACTIVE_HIGH>;
23
24		port {
25			ov5640_ep_out: endpoint {
26				remote-endpoint-label = "mipi_csi2rx_ep_in";
27				bus-type = <VIDEO_BUS_TYPE_CSI2_DPHY>;
28				data-lanes = <1 2>;
29			};
30		};
31	};
32};
33
34&nxp_mipi_csi {
35	status = "okay";
36
37	ports {
38		port@1 {
39			reg = <1>;
40
41			mipi_csi2rx_ep_in: endpoint {
42				remote-endpoint-label = "ov5640_ep_out";
43				data-lanes = <1 2>;
44			};
45		};
46	};
47};
48
49&nxp_csi {
50	status = "okay";
51};
52