blob: 4eaf9d757dd0ad3ba9b575f7355f7419bddcad6c [file] [log] [blame]
Tom Rini6bb92fc2024-05-20 09:54:58 -06001// SPDX-License-Identifier: GPL-2.0-only OR MIT
Tom Rini93743d22024-04-01 09:08:13 -04002/*
3 * Technexion TEVI-OV5640-*-RPI - OV5640 camera module
Tom Rini6bb92fc2024-05-20 09:54:58 -06004 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
Tom Rini93743d22024-04-01 09:08:13 -04005 */
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_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};