xref: /freebsd-src/sys/contrib/device-tree/src/arm/renesas/r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * This include file ties a VIN interface with a single ov5640 sensor on
4*f126890aSEmmanuel Vadot * the iWave-RZ/G1H Qseven board development platform connected with the
5*f126890aSEmmanuel Vadot * camera daughter board.
6*f126890aSEmmanuel Vadot *
7*f126890aSEmmanuel Vadot * Copyright (C) 2020 Renesas Electronics Corp.
8*f126890aSEmmanuel Vadot */
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot#include <dt-bindings/media/video-interfaces.h>
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot#define CAM_ENABLED	1
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot&CAM_PARENT_I2C {
15*f126890aSEmmanuel Vadot	status = "okay";
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	ov5640@3c {
18*f126890aSEmmanuel Vadot		compatible = "ovti,ov5640";
19*f126890aSEmmanuel Vadot		reg = <0x3c>;
20*f126890aSEmmanuel Vadot		clocks = <&MCLK_CAM>;
21*f126890aSEmmanuel Vadot		clock-names = "xclk";
22*f126890aSEmmanuel Vadot		AVDD-supply = <&reg_2p8v>;
23*f126890aSEmmanuel Vadot		DOVDD-supply = <&reg_2p8v>;
24*f126890aSEmmanuel Vadot		DVDD-supply = <&reg_1p8v>;
25*f126890aSEmmanuel Vadot		status = "okay";
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot		port {
28*f126890aSEmmanuel Vadot			CAM_EP: endpoint {
29*f126890aSEmmanuel Vadot				bus-width = <8>;
30*f126890aSEmmanuel Vadot				data-shift = <2>;
31*f126890aSEmmanuel Vadot				bus-type = <MEDIA_BUS_TYPE_BT656>;
32*f126890aSEmmanuel Vadot				pclk-sample = <1>;
33*f126890aSEmmanuel Vadot				remote-endpoint = <&VIN_EP>;
34*f126890aSEmmanuel Vadot			};
35*f126890aSEmmanuel Vadot		};
36*f126890aSEmmanuel Vadot	};
37*f126890aSEmmanuel Vadot};
38