blob: 6e089fe1d6134fc57db5135afda44a7a46bd2765 [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,ov5670.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Omnivision OV5670 5 Megapixels raw image sensor
8
9maintainers:
10 - Jacopo Mondi <jacopo.mondi@ideasonboard.com>
11
12description: |-
13 The OV5670 is a 5 Megapixels raw image sensor which provides images in 10-bits
14 RAW BGGR Bayer format on a 2 data lanes MIPI CSI-2 serial interface and is
15 controlled through an I2C compatible control bus.
16
17properties:
18 compatible:
19 const: ovti,ov5670
20
21 reg:
22 maxItems: 1
23
24 clocks:
25 description: System clock. From 6 to 27 MHz.
26 maxItems: 1
27
28 powerdown-gpios:
29 description: Reference to the GPIO connected to the PWDNB pin. Active low.
30
31 reset-gpios:
32 description: Reference to the GPIO connected to the XSHUTDOWN pin. Active low.
33 maxItems: 1
34
35 avdd-supply:
36 description: Analog circuit power. Typically 2.8V.
37
38 dvdd-supply:
39 description: Digital circuit power. Typically 1.2V.
40
41 dovdd-supply:
42 description: Digital I/O circuit power. Typically 2.8V or 1.8V.
43
44 port:
45 $ref: /schemas/graph.yaml#/$defs/port-base
46 additionalProperties: false
47
48 properties:
49 endpoint:
50 $ref: /schemas/media/video-interfaces.yaml#
51 additionalProperties: false
52
53 properties:
54 data-lanes:
55 minItems: 1
56 maxItems: 2
57 items:
58 enum: [1, 2]
59
60 clock-noncontinuous: true
61 remote-endpoint: true
62
63required:
64 - compatible
65 - reg
66 - clocks
67 - port
68
69additionalProperties: false
70
71examples:
72 - |
73 i2c {
74 #address-cells = <1>;
75 #size-cells = <0>;
76
77 ov5670: sensor@36 {
78 compatible = "ovti,ov5670";
79 reg = <0x36>;
80
81 clocks = <&sensor_xclk>;
82
83 port {
84 ov5670_ep: endpoint {
85 remote-endpoint = <&csi_ep>;
86 data-lanes = <1 2>;
87 clock-noncontinuous;
88 };
89 };
90 };
91 };
92
93...