0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device Tree Source for the HiHope RZ/G2[HMN] MIPI common parts
0004 *
0005 * Copyright (C) 2020 Renesas Electronics Corp.
0006 */
0007
0008 #define MIPI_OV5645_PARENT_I2C i2c2
0009 #define MIPI_IMX219_PARENT_I2C i2c3
0010 #include "aistarvision-mipi-adapter-2.1.dtsi"
0011
0012 &csi20 {
0013 status = "okay";
0014
0015 ports {
0016 port@0 {
0017 csi20_in: endpoint {
0018 clock-lanes = <0>;
0019 data-lanes = <1 2>;
0020 remote-endpoint = <&ov5645_ep>;
0021 };
0022 };
0023 };
0024 };
0025
0026 &csi40 {
0027 status = "okay";
0028
0029 ports {
0030 port@0 {
0031 csi40_in: endpoint {
0032 clock-lanes = <0>;
0033 data-lanes = <1 2>;
0034 remote-endpoint = <&imx219_ep>;
0035 };
0036 };
0037 };
0038 };
0039
0040 &i2c3 {
0041 pinctrl-0 = <&i2c3_pins>;
0042 pinctrl-names = "default";
0043 status = "okay";
0044 };
0045
0046 &imx219 {
0047 port {
0048 imx219_ep: endpoint {
0049 clock-lanes = <0>;
0050 data-lanes = <1 2>;
0051 link-frequencies = /bits/ 64 <456000000>;
0052 remote-endpoint = <&csi40_in>;
0053 };
0054 };
0055 };
0056
0057 &ov5645 {
0058 enable-gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>;
0059 reset-gpios = <&gpio6 8 GPIO_ACTIVE_LOW>;
0060
0061 port {
0062 ov5645_ep: endpoint {
0063 clock-lanes = <0>;
0064 data-lanes = <1 2>;
0065 remote-endpoint = <&csi20_in>;
0066 };
0067 };
0068 };
0069
0070 &pfc {
0071 i2c3_pins: i2c3 {
0072 groups = "i2c3";
0073 function = "i2c3";
0074 };
0075 };
0076
0077 &vin0 {
0078 status = "okay";
0079 };
0080
0081 &vin1 {
0082 status = "okay";
0083 };
0084
0085 &vin2 {
0086 status = "okay";
0087 };
0088
0089 &vin3 {
0090 status = "okay";
0091 };
0092
0093 &vin4 {
0094 status = "okay";
0095 };
0096
0097 &vin5 {
0098 status = "okay";
0099 };
0100
0101 &vin6 {
0102 status = "okay";
0103 };
0104
0105 &vin7 {
0106 status = "okay";
0107 };