1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Device Tree Source for the HiHope RZ/G2[HMN] MIPI common parts 4 * 5 * Copyright (C) 2020 Renesas Electronics Corp. 6 */ 7 8#define MIPI_OV5645_PARENT_I2C i2c2 9#define MIPI_IMX219_PARENT_I2C i2c3 10#include "aistarvision-mipi-adapter-2.1.dtsi" 11 12&csi20 { 13 status = "okay"; 14 15 ports { 16 port@0 { 17 reg = <0>; 18 csi20_in: endpoint { 19 clock-lanes = <0>; 20 data-lanes = <1 2>; 21 remote-endpoint = <&ov5645_ep>; 22 }; 23 }; 24 }; 25}; 26 27&csi40 { 28 status = "okay"; 29 30 ports { 31 port@0 { 32 reg = <0>; 33 csi40_in: endpoint { 34 clock-lanes = <0>; 35 data-lanes = <1 2>; 36 remote-endpoint = <&imx219_ep>; 37 }; 38 }; 39 }; 40}; 41 42&i2c3 { 43 pinctrl-0 = <&i2c3_pins>; 44 pinctrl-names = "default"; 45 status = "okay"; 46}; 47 48&imx219 { 49 port { 50 imx219_ep: endpoint { 51 clock-lanes = <0>; 52 data-lanes = <1 2>; 53 link-frequencies = /bits/ 64 <456000000>; 54 remote-endpoint = <&csi40_in>; 55 }; 56 }; 57}; 58 59&ov5645 { 60 enable-gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>; 61 reset-gpios = <&gpio6 8 GPIO_ACTIVE_LOW>; 62 63 port { 64 ov5645_ep: endpoint { 65 clock-lanes = <0>; 66 data-lanes = <1 2>; 67 remote-endpoint = <&csi20_in>; 68 }; 69 }; 70}; 71 72&pfc { 73 i2c3_pins: i2c3 { 74 groups = "i2c3"; 75 function = "i2c3"; 76 }; 77}; 78 79&vin0 { 80 status = "okay"; 81}; 82 83&vin1 { 84 status = "okay"; 85}; 86 87&vin2 { 88 status = "okay"; 89}; 90 91&vin3 { 92 status = "okay"; 93}; 94 95&vin4 { 96 status = "okay"; 97}; 98 99&vin5 { 100 status = "okay"; 101}; 102 103&vin6 { 104 status = "okay"; 105}; 106 107&vin7 { 108 status = "okay"; 109}; 110