Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree Source for the Silicon Linux RZ/G2E 96board platform (CAT874)
0004  * connected with aistarvision-mipi-v2-adapter board
0005  *
0006  * Copyright (C) 2020 Renesas Electronics Corp.
0007  */
0008 
0009 /dts-v1/;
0010 #include "r8a774c0-ek874.dts"
0011 #define MIPI_OV5645_PARENT_I2C i2c3
0012 #define MIPI_IMX219_PARENT_I2C i2c3
0013 #include "aistarvision-mipi-adapter-2.1.dtsi"
0014 
0015 / {
0016         model = "Silicon Linux RZ/G2E evaluation kit EK874 (CAT874 + CAT875) with aistarvision-mipi-v2-adapter board";
0017         compatible = "si-linux,cat875", "si-linux,cat874", "renesas,r8a774c0";
0018 };
0019 
0020 &i2c3 {
0021         status = "okay";
0022 };
0023 
0024 &vin4 {
0025         status = "okay";
0026 };
0027 
0028 &vin5 {
0029         status = "okay";
0030 };
0031 
0032 &csi40 {
0033         status = "okay";
0034 
0035         ports {
0036                 port@0 {
0037                         csi40_in: endpoint {
0038                                 clock-lanes = <0>;
0039                                 data-lanes = <1 2>;
0040                                 remote-endpoint = <&ov5645_ep>;
0041                         };
0042                 };
0043         };
0044 };
0045 
0046 &ov5645 {
0047         enable-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
0048         reset-gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
0049 
0050         port {
0051                 ov5645_ep: endpoint {
0052                         clock-lanes = <0>;
0053                         data-lanes = <1 2>;
0054                         remote-endpoint = <&csi40_in>;
0055                 };
0056         };
0057 };
0058 
0059 &imx219 {
0060         port {
0061                 imx219_ep: endpoint {
0062                         clock-lanes = <0>;
0063                         data-lanes = <1 2>;
0064                         link-frequencies = /bits/ 64 <456000000>;
0065                         /* uncomment remote-endpoint property to tie imx219 to
0066                          * CSI2 also make sure remote-endpoint for ov5645 camera
0067                          * is commented and remote endpoint phandle in csi40_in
0068                          * is imx219_ep
0069                          */
0070                         /* remote-endpoint = <&csi40_in>; */
0071                 };
0072         };
0073 };