xref: /linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml (revision 57226cd8c8bf14e2dfcb3deb4e44bb74ccdafda2)
1*57226cd8SRui Miguel Silva# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*57226cd8SRui Miguel Silva%YAML 1.2
3*57226cd8SRui Miguel Silva---
4*57226cd8SRui Miguel Silva$id: http://devicetree.org/schemas/media/i2c/ovti,ov2680.yaml#
5*57226cd8SRui Miguel Silva$schema: http://devicetree.org/meta-schemas/core.yaml#
6*57226cd8SRui Miguel Silva
7*57226cd8SRui Miguel Silvatitle: Omnivision OV2680 CMOS Sensor
8*57226cd8SRui Miguel Silva
9*57226cd8SRui Miguel Silvamaintainers:
10*57226cd8SRui Miguel Silva  - Rui Miguel Silva <rmfrfs@gmail.com>
11*57226cd8SRui Miguel Silva
12*57226cd8SRui Miguel Silvadescription: |-
13*57226cd8SRui Miguel Silva  The OV2680 color sensor is a low voltage, high performance 1/5 inch UXGA (2
14*57226cd8SRui Miguel Silva  megapixel) CMOS image sensor that provides a single-chip UXGA (1600 x 1200)
15*57226cd8SRui Miguel Silva  camera. It provides full-frame, sub-sampled, or windowed 10-bit images in
16*57226cd8SRui Miguel Silva  various formats via the control of the Serial Camera Control Bus (SCCB)
17*57226cd8SRui Miguel Silva  interface. The OV2680 has an image array capable of operating at up to 30
18*57226cd8SRui Miguel Silva  frames per second (fps) in UXGA resolution.
19*57226cd8SRui Miguel Silva
20*57226cd8SRui Miguel Silvaproperties:
21*57226cd8SRui Miguel Silva  compatible:
22*57226cd8SRui Miguel Silva    const: ovti,ov2680
23*57226cd8SRui Miguel Silva
24*57226cd8SRui Miguel Silva  reg:
25*57226cd8SRui Miguel Silva    maxItems: 1
26*57226cd8SRui Miguel Silva
27*57226cd8SRui Miguel Silva  clocks:
28*57226cd8SRui Miguel Silva    maxItems: 1
29*57226cd8SRui Miguel Silva
30*57226cd8SRui Miguel Silva  clock-names:
31*57226cd8SRui Miguel Silva    const: xvclk
32*57226cd8SRui Miguel Silva
33*57226cd8SRui Miguel Silva  reset-gpios:
34*57226cd8SRui Miguel Silva    description:
35*57226cd8SRui Miguel Silva      The phandle and specifier for the GPIO that controls sensor reset.
36*57226cd8SRui Miguel Silva      This corresponds to the hardware pin XSHUTDOWN which is physically
37*57226cd8SRui Miguel Silva      active low.
38*57226cd8SRui Miguel Silva    maxItems: 1
39*57226cd8SRui Miguel Silva
40*57226cd8SRui Miguel Silva  dovdd-supply:
41*57226cd8SRui Miguel Silva    description:
42*57226cd8SRui Miguel Silva      Definition of the regulator used as interface power supply.
43*57226cd8SRui Miguel Silva
44*57226cd8SRui Miguel Silva  avdd-supply:
45*57226cd8SRui Miguel Silva    description:
46*57226cd8SRui Miguel Silva      Definition of the regulator used as analog power supply.
47*57226cd8SRui Miguel Silva
48*57226cd8SRui Miguel Silva  dvdd-supply:
49*57226cd8SRui Miguel Silva    description:
50*57226cd8SRui Miguel Silva      Definition of the regulator used as digital power supply.
51*57226cd8SRui Miguel Silva
52*57226cd8SRui Miguel Silva  port:
53*57226cd8SRui Miguel Silva    type: object
54*57226cd8SRui Miguel Silva    description:
55*57226cd8SRui Miguel Silva      A node containing an output port node with an endpoint definition
56*57226cd8SRui Miguel Silva      as documented in
57*57226cd8SRui Miguel Silva      Documentation/devicetree/bindings/media/video-interfaces.txt
58*57226cd8SRui Miguel Silva
59*57226cd8SRui Miguel Silvarequired:
60*57226cd8SRui Miguel Silva  - compatible
61*57226cd8SRui Miguel Silva  - reg
62*57226cd8SRui Miguel Silva  - clocks
63*57226cd8SRui Miguel Silva  - clock-names
64*57226cd8SRui Miguel Silva  - dovdd-supply
65*57226cd8SRui Miguel Silva  - avdd-supply
66*57226cd8SRui Miguel Silva  - dvdd-supply
67*57226cd8SRui Miguel Silva  - reset-gpios
68*57226cd8SRui Miguel Silva  - port
69*57226cd8SRui Miguel Silva
70*57226cd8SRui Miguel SilvaadditionalProperties: false
71*57226cd8SRui Miguel Silva
72*57226cd8SRui Miguel Silvaexamples:
73*57226cd8SRui Miguel Silva  - |
74*57226cd8SRui Miguel Silva    #include <dt-bindings/gpio/gpio.h>
75*57226cd8SRui Miguel Silva
76*57226cd8SRui Miguel Silva    i2c {
77*57226cd8SRui Miguel Silva        #address-cells = <1>;
78*57226cd8SRui Miguel Silva        #size-cells = <0>;
79*57226cd8SRui Miguel Silva
80*57226cd8SRui Miguel Silva        ov2680: camera-sensor@36 {
81*57226cd8SRui Miguel Silva                compatible = "ovti,ov2680";
82*57226cd8SRui Miguel Silva                reg = <0x36>;
83*57226cd8SRui Miguel Silva                clocks = <&osc>;
84*57226cd8SRui Miguel Silva                clock-names = "xvclk";
85*57226cd8SRui Miguel Silva                reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
86*57226cd8SRui Miguel Silva
87*57226cd8SRui Miguel Silva                dovdd-supply = <&sw2_reg>;
88*57226cd8SRui Miguel Silva                dvdd-supply = <&sw2_reg>;
89*57226cd8SRui Miguel Silva                avdd-supply = <&reg_peri_3p15v>;
90*57226cd8SRui Miguel Silva
91*57226cd8SRui Miguel Silva                port {
92*57226cd8SRui Miguel Silva                        ov2680_to_mipi: endpoint {
93*57226cd8SRui Miguel Silva                                remote-endpoint = <&mipi_from_sensor>;
94*57226cd8SRui Miguel Silva                        };
95*57226cd8SRui Miguel Silva                };
96*57226cd8SRui Miguel Silva        };
97*57226cd8SRui Miguel Silva    };
98*57226cd8SRui Miguel Silva
99*57226cd8SRui Miguel Silva...
100