Debian Codegraph @

scripts/dtc/include-prefixes/arm64/ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtso

raw
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 reg_2p8v: regulator-2p8v {
20 compatible = "regulator-fixed";
21 regulator-name = "2P8V";
22 regulator-min-microvolt = <2800000>;
23 regulator-max-microvolt = <2800000>;
24 vin-supply = <&vdd_3v3>;
25 regulator-always-on;
26 };
27
28 reg_1p8v: regulator-1p8v {
29 compatible = "regulator-fixed";
30 regulator-name = "1P8V";
31 regulator-min-microvolt = <1800000>;
32 regulator-max-microvolt = <1800000>;
33 vin-supply = <&vdd_3v3>;
34 regulator-always-on;
35 };
36
37 reg_3p3v: regulator-3p3v {
38 compatible = "regulator-fixed";
39 regulator-name = "3P3V";
40 regulator-min-microvolt = <3300000>;
41 regulator-max-microvolt = <3300000>;
42 vin-supply = <&vdd_3v3>;
43 regulator-always-on;
44 };
45 };
46
47 &main_gpio0 {
48 p11-hog {
49 /* P11 - CSI2_CAMERA_GPIO1 */
50 gpio-hog;
51 gpios = <11 GPIO_ACTIVE_HIGH>;
52 output-high;
53 line-name = "CSI2_CAMERA_GPIO1";
54 };
55 };
56
57 &wkup_i2c0 {
58 #address-cells = <1>;
59 #size-cells = <0>;
60 status = "okay";
61
62 ov5640: camera@3c {
63 compatible = "ovti,ov5640";
64 reg = <0x3c>;
65
66 clocks = <&clk_ov5640_fixed>;
67 clock-names = "xclk";
68
69 AVDD-supply = <&reg_2p8v>;
70 DOVDD-supply = <&reg_1p8v>;
71 DVDD-supply = <&reg_3p3v>;
72
73 port {
74 csi2_cam0: endpoint {
75 remote-endpoint = <&csi2rx0_in_sensor>;
76 clock-lanes = <0>;
77 data-lanes = <1 2>;
78 };
79 };
80 };
81 };
82
83 &cdns_csi2rx0 {
84 ports {
85 #address-cells = <1>;
86 #size-cells = <0>;
87
88 csi0_port0: port@0 {
89 reg = <0>;
90 status = "okay";
91
92 csi2rx0_in_sensor: endpoint {
93 remote-endpoint = <&csi2_cam0>;
94 bus-type = <4>; /* CSI2 DPHY. */
95 clock-lanes = <0>;
96 data-lanes = <1 2>;
97 };
98 };
99 };
100 };
101
102 &dphy0 {
103 status = "okay";
104 };
105
106 &ti_csi2rx0 {
107 status = "okay";
108 };