-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbpi-m2u-ov5640.dts
More file actions
82 lines (71 loc) · 1.77 KB
/
Copy pathbpi-m2u-ov5640.dts
File metadata and controls
82 lines (71 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
//
// Copyright (C) 2018 Chen-Yu Tsai <wens@csie.org>
//
// Bananapi camera module based on OV5640
#ifdef __DTO_TEST__
#include <arm/sun8i-r40-bananapi-m2-ultra.dts>
#else
/dts-v1/;
/plugin/;
#endif
#include <dt-bindings/clock/sun8i-r40-ccu.h>
#include <dt-bindings/gpio/gpio.h>
&csi0 {
pinctrl-names = "default";
pinctrl-0 = <&csi0_8bits_pins>;
status = "okay";
port {
/* Parallel bus endpoint */
csi0_from_ov5640: endpoint {
remote-endpoint = <&ov5640_to_csi0>;
bus-width = <8>;
hsync-active = <1>; /* Active high */
vsync-active = <1>; /* Active high */
data-active = <1>; /* Active high */
pclk-sample = <1>; /* Rising */
};
};
};
&i2c4 {
status = "okay";
ov5640: camera@3c {
compatible = "ovti,ov5640";
reg = <0x3c>;
pinctrl-names = "default";
pinctrl-0 = <&csi0_mclk_pin>;
clocks = <&ccu CLK_CSI0_MCLK>;
clock-names = "xclk";
reset-gpios = <&pio 8 7 GPIO_ACTIVE_LOW>; /* PI7 */
powerdown-gpios = <&pio 8 6 GPIO_ACTIVE_HIGH>; /* PI6 */
AVDD-supply = <®_aldo1>;
DOVDD-supply = <®_eldo1>;
DVDD-supply = <®_eldo2>;
port {
ov5640_to_csi0: endpoint {
remote-endpoint = <&csi0_from_ov5640>;
bus-width = <8>;
data-shift = <2>;
hsync-active = <1>; /* Active high */
vsync-active = <1>; /* Active high */
data-active = <1>; /* Active high */
pclk-sample = <1>; /* Rising */
};
};
};
};
®_aldo1 {
regulator-name = "csi-avdd";
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
};
®_eldo1 {
regulator-name = "csi-iovcc";
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
};
®_eldo2 {
regulator-name = "csi-dvdd";
regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <1500000>;
};