-
Notifications
You must be signed in to change notification settings - Fork 33
/
sama5d27_som1_ek_ov5640.dtso
72 lines (63 loc) · 1.4 KB
/
sama5d27_som1_ek_ov5640.dtso
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
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Device Tree file for SAMA5D27 SOM1 EK board
* overlay blob for Image Sensor Controller Omnivision ov5640 sensor.
*
* Copyright (C) 2018 Microchip Technology, Inc.
* Author: Eugen Hristev <eugen.hristev@microchip.com>
*
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include "sama5d2-pinfunc.h"
&i2c1 {
#address-cells = <1>;
#size-cells = <0>;
ov5640: camera@3c {
compatible = "ovti,ov5640";
reg = <0x3c>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sensor_power &pinctrl_sensor_reset>;
reset-gpios = <&pioA PIN_PD6 GPIO_ACTIVE_LOW>;
powerdown-gpios = <&pioA PIN_PD7 GPIO_ACTIVE_HIGH>;
clocks = <&isc>;
clock-names = "xclk";
assigned-clocks = <&isc>;
assigned-clock-rates = <25000000>;
status = "okay";
port {
ov5640_0: endpoint {
remote-endpoint = <&isc_0>;
bus-width = <8>;
hsync-active = <1>;
vsync-active = <1>;
pclk-sample = <1>;
};
};
};
};
&isc {
pinctrl-0 = <&pinctrl_isc_base &pinctrl_isc_data_8bit>;
status = "okay";
port {
isc_0: endpoint@0 {
remote-endpoint = <&ov5640_0>;
bus-width = <8>;
data-shift = <2>;
hsync-active = <0>;
vsync-active = <0>;
pclk-sample = <1>;
};
};
};
&pioA {
pinctrl_sensor_power: sensor_power {
pinmux = <PIN_PD7__GPIO>;
bias-disable;
};
pinctrl_sensor_reset: sensor_reset {
pinmux = <PIN_PD6__GPIO>;
bias-disable;
};
};