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