xref: /linux/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-ov5640.dtso (revision 6e7fd890f1d6ac83805409e9c346240de2705584)
1// SPDX-License-Identifier: GPL-2.0-only OR MIT
2/*
3 * ALINX AN5641 & Digilent PCam 5C - 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 = <12000000>;
17	};
18};
19
20&main_i2c2 {
21	#address-cells = <1>;
22	#size-cells = <0>;
23	status = "okay";
24
25	i2c-switch@71 {
26		compatible = "nxp,pca9543";
27		#address-cells = <1>;
28		#size-cells = <0>;
29		reg = <0x71>;
30
31		/* CAM port */
32		i2c@1 {
33			#address-cells = <1>;
34			#size-cells = <0>;
35			reg = <1>;
36
37			ov5640: camera@3c {
38				compatible = "ovti,ov5640";
39				reg = <0x3c>;
40
41				clocks = <&clk_ov5640_fixed>;
42				clock-names = "xclk";
43				powerdown-gpios = <&exp1 13 GPIO_ACTIVE_LOW>;
44
45				port {
46					csi2_cam0: endpoint {
47						remote-endpoint = <&csi2rx0_in_sensor>;
48						clock-lanes = <0>;
49						data-lanes = <1 2>;
50					};
51				};
52			};
53		};
54	};
55};
56
57&cdns_csi2rx0 {
58	ports {
59		#address-cells = <1>;
60		#size-cells = <0>;
61
62		csi0_port0: port@0 {
63			reg = <0>;
64			status = "okay";
65
66			csi2rx0_in_sensor: endpoint {
67				remote-endpoint = <&csi2_cam0>;
68				bus-type = <4>; /* CSI2 DPHY. */
69				clock-lanes = <0>;
70				data-lanes = <1 2>;
71			};
72		};
73	};
74};
75
76&ti_csi2rx0 {
77	status = "okay";
78};
79
80&dphy0 {
81	status = "okay";
82};
83