Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / media / i2c / ovti,ov2680.yaml
1 # 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
7 title: Omnivision OV2680 CMOS Sensor
8
9 maintainers:
10   - Rui Miguel Silva <rmfrfs@gmail.com>
11
12 description: |-
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
20 properties:
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
40   dovdd-supply:
41     description:
42       Definition of the regulator used as interface power supply.
43
44   avdd-supply:
45     description:
46       Definition of the regulator used as analog power supply.
47
48   dvdd-supply:
49     description:
50       Definition of the regulator used as digital power supply.
51
52   port:
53     type: object
54     description:
55       A node containing an output port node with an endpoint definition
56       as documented in
57       Documentation/devicetree/bindings/media/video-interfaces.txt
58
59 required:
60   - compatible
61   - reg
62   - clocks
63   - clock-names
64   - dovdd-supply
65   - avdd-supply
66   - dvdd-supply
67   - reset-gpios
68   - port
69
70 additionalProperties: false
71
72 examples:
73   - |
74     #include <dt-bindings/gpio/gpio.h>
75
76     i2c {
77         #address-cells = <1>;
78         #size-cells = <0>;
79
80         ov2680: camera-sensor@36 {
81                 compatible = "ovti,ov2680";
82                 reg = <0x36>;
83                 clocks = <&osc>;
84                 clock-names = "xvclk";
85                 reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
86
87                 dovdd-supply = <&sw2_reg>;
88                 dvdd-supply = <&sw2_reg>;
89                 avdd-supply = <&reg_peri_3p15v>;
90
91                 port {
92                         ov2680_to_mipi: endpoint {
93                                 remote-endpoint = <&mipi_from_sensor>;
94                         };
95                 };
96         };
97     };
98
99 ...