blob: 634d3b821b8c7592260ae6af4f53e9577a52f785 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/i2c/ovti,ov2680.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Omnivision OV2680 CMOS Sensor
8
9maintainers:
10 - Rui Miguel Silva <rmfrfs@gmail.com>
11
12description: |-
13 The OV2680 color sensor is a low voltage, high performance 1/5 inch UXGA (2
14 megapixel) CMOS image sensor that provides a single-chip UXGA (1600 x 1200)
15 camera. It provides full-frame, sub-sampled, or windowed 10-bit images in
16 various formats via the control of the Serial Camera Control Bus (SCCB)
17 interface. The OV2680 has an image array capable of operating at up to 30
18 frames per second (fps) in UXGA resolution.
19
20properties:
21 compatible:
22 const: ovti,ov2680
23
24 reg:
25 maxItems: 1
26
27 clocks:
28 maxItems: 1
29
30 clock-names:
31 const: xvclk
32
33 reset-gpios:
34 description:
35 The phandle and specifier for the GPIO that controls sensor reset.
36 This corresponds to the hardware pin XSHUTDOWN which is physically
37 active low.
38 maxItems: 1
39
Tom Rini762f85b2024-07-20 11:15:10 -060040 DOVDD-supply:
Tom Rini53633a82024-02-29 12:33:36 -050041 description:
42 Definition of the regulator used as interface power supply.
43
Tom Rini762f85b2024-07-20 11:15:10 -060044 AVDD-supply:
Tom Rini53633a82024-02-29 12:33:36 -050045 description:
46 Definition of the regulator used as analog power supply.
47
Tom Rini762f85b2024-07-20 11:15:10 -060048 DVDD-supply:
Tom Rini53633a82024-02-29 12:33:36 -050049 description:
50 Definition of the regulator used as digital power supply.
51
52 port:
Tom Rini53633a82024-02-29 12:33:36 -050053 description:
54 A node containing an output port node.
Tom Rini762f85b2024-07-20 11:15:10 -060055 $ref: /schemas/graph.yaml#/$defs/port-base
56 additionalProperties: false
57
58 properties:
59 endpoint:
60 $ref: /schemas/media/video-interfaces.yaml#
61 additionalProperties: false
62
63 properties:
64 link-frequencies: true
65
66 remote-endpoint: true
67
68 required:
69 - link-frequencies
Tom Rini53633a82024-02-29 12:33:36 -050070
71required:
72 - compatible
73 - reg
74 - clocks
75 - clock-names
Tom Rini762f85b2024-07-20 11:15:10 -060076 - DOVDD-supply
77 - AVDD-supply
78 - DVDD-supply
Tom Rini53633a82024-02-29 12:33:36 -050079 - reset-gpios
80 - port
81
82additionalProperties: false
83
84examples:
85 - |
86 #include <dt-bindings/gpio/gpio.h>
87
88 i2c {
89 #address-cells = <1>;
90 #size-cells = <0>;
91
92 ov2680: camera-sensor@36 {
93 compatible = "ovti,ov2680";
94 reg = <0x36>;
95 clocks = <&osc>;
96 clock-names = "xvclk";
97 reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
98
Tom Rini762f85b2024-07-20 11:15:10 -060099 DOVDD-supply = <&sw2_reg>;
100 DVDD-supply = <&sw2_reg>;
101 AVDD-supply = <&reg_peri_3p15v>;
Tom Rini53633a82024-02-29 12:33:36 -0500102
103 port {
104 ov2680_to_mipi: endpoint {
105 remote-endpoint = <&mipi_from_sensor>;
Tom Rini762f85b2024-07-20 11:15:10 -0600106 link-frequencies = /bits/ 64 <330000000>;
Tom Rini53633a82024-02-29 12:33:36 -0500107 };
108 };
109 };
110 };
111
112...