xref: /linux/arch/arm64/boot/dts/ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtso (revision 249ebf3f65f8530beb2cbfb91bff1d83ba88d23c)
1// SPDX-License-Identifier: GPL-2.0-only OR MIT
2/*
3 * Technexion TEVI-OV5640-*-RPI - OV5640 camera module
4 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
5 */
6
7/dts-v1/;
8/plugin/;
9
10#include <dt-bindings/gpio/gpio.h>
11
12&{/} {
13	clk_ov5640_fixed: ov5640-xclk {
14		compatible = "fixed-clock";
15		#clock-cells = <0>;
16		clock-frequency = <24000000>;
17	};
18};
19
20&main_gpio0 {
21	p11-hog {
22		/* P11 - CSI2_CAMERA_GPIO1 */
23		gpio-hog;
24		gpios = <11 GPIO_ACTIVE_HIGH>;
25		output-high;
26		line-name = "CSI2_CAMERA_GPIO1";
27	};
28};
29
30&wkup_i2c0 {
31	#address-cells = <1>;
32	#size-cells = <0>;
33	status = "okay";
34
35	ov5640: camera@3c {
36		compatible = "ovti,ov5640";
37		reg = <0x3c>;
38
39		clocks = <&clk_ov5640_fixed>;
40		clock-names = "xclk";
41
42		port {
43			csi2_cam0: endpoint {
44				remote-endpoint = <&csi2rx0_in_sensor>;
45				clock-lanes = <0>;
46				data-lanes = <1 2>;
47			};
48		};
49	};
50};
51
52&cdns_csi2rx0 {
53	ports {
54		#address-cells = <1>;
55		#size-cells = <0>;
56
57		csi0_port0: port@0 {
58			reg = <0>;
59			status = "okay";
60
61			csi2rx0_in_sensor: endpoint {
62				remote-endpoint = <&csi2_cam0>;
63				bus-type = <4>; /* CSI2 DPHY. */
64				clock-lanes = <0>;
65				data-lanes = <1 2>;
66			};
67		};
68	};
69};
70
71&dphy0 {
72	status = "okay";
73};
74
75&ti_csi2rx0 {
76	status = "okay";
77};
78