Merge tag 'drm-misc-next-2021-07-22' of git://anongit.freedesktop.org/drm/drm-misc...
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / renesas / r8a774c0-ek874-mipi-2.1.dts
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_OV5645_PARENT_I2C i2c3
12 #define MIPI_IMX219_PARENT_I2C i2c3
13 #include "aistarvision-mipi-adapter-2.1.dtsi"
14
15 / {
16         model = "Silicon Linux RZ/G2E evaluation kit EK874 (CAT874 + CAT875) with aistarvision-mipi-v2-adapter board";
17         compatible = "si-linux,cat875", "si-linux,cat874", "renesas,r8a774c0";
18 };
19
20 &i2c3 {
21         status = "okay";
22 };
23
24 &vin4 {
25         status = "okay";
26 };
27
28 &vin5 {
29         status = "okay";
30 };
31
32 &csi40 {
33         status = "okay";
34
35         ports {
36                 port@0 {
37                         csi40_in: endpoint {
38                                 clock-lanes = <0>;
39                                 data-lanes = <1 2>;
40                                 remote-endpoint = <&ov5645_ep>;
41                         };
42                 };
43         };
44 };
45
46 &ov5645 {
47         enable-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
48         reset-gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
49
50         port {
51                 ov5645_ep: endpoint {
52                         clock-lanes = <0>;
53                         data-lanes = <1 2>;
54                         remote-endpoint = <&csi40_in>;
55                 };
56         };
57 };
58
59 &imx219 {
60         port {
61                 imx219_ep: endpoint {
62                         clock-lanes = <0>;
63                         data-lanes = <1 2>;
64                         link-frequencies = /bits/ 64 <456000000>;
65                         /* uncomment remote-endpoint property to tie imx219 to
66                          * CSI2 also make sure remote-endpoint for ov5645 camera
67                          * is commented and remote endpoint phandle in csi40_in
68                          * is imx219_ep
69                          */
70                         /* remote-endpoint = <&csi40_in>; */
71                 };
72         };
73 };