xref: /freebsd/sys/contrib/device-tree/src/arm64/renesas/r8a774c0-ek874-mipi-2.1.dts (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the Silicon Linux RZ/G2E 96board platform (CAT874)
4 * connected with aistarvision-mipi-v2-adapter board
5 *
6 * Copyright (C) 2020 Renesas Electronics Corp.
7 */
8
9/dts-v1/;
10#include "r8a774c0-ek874.dts"
11#define MIPI_PARENT_I2C i2c3
12#include "aistarvision-mipi-adapter-2.1.dtsi"
13
14/ {
15	model = "Silicon Linux RZ/G2E evaluation kit EK874 (CAT874 + CAT875) with aistarvision-mipi-v2-adapter board";
16	compatible = "si-linux,cat875", "si-linux,cat874", "renesas,r8a774c0";
17};
18
19&i2c3 {
20	status = "okay";
21};
22
23&vin4 {
24	status = "okay";
25};
26
27&vin5 {
28	status = "okay";
29};
30
31&csi40 {
32	status = "okay";
33
34	ports {
35		port {
36			csi40_in: endpoint {
37				clock-lanes = <0>;
38				data-lanes = <1 2>;
39				remote-endpoint = <&ov5645_ep>;
40			};
41		};
42	};
43};
44
45&ov5645 {
46	enable-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
47	reset-gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
48
49	port {
50		ov5645_ep: endpoint {
51			clock-lanes = <0>;
52			data-lanes = <1 2>;
53			remote-endpoint = <&csi40_in>;
54		};
55	};
56};
57
58&imx219 {
59	port {
60		imx219_ep: endpoint {
61			clock-lanes = <0>;
62			data-lanes = <1 2>;
63			link-frequencies = /bits/ 64 <456000000>;
64			/* uncomment remote-endpoint property to tie imx219 to
65			 * CSI2 also make sure remote-endpoint for ov5645 camera
66			 * is commented and remote endpoint phandle in csi40_in
67			 * is imx219_ep
68			 */
69			/* remote-endpoint = <&csi40_in>; */
70		};
71	};
72};
73