xref: /linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml (revision 6fd600d742744dc7ef7fc65ca26daa2b1163158a)
157226cd8SRui Miguel Silva# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
257226cd8SRui Miguel Silva%YAML 1.2
357226cd8SRui Miguel Silva---
457226cd8SRui Miguel Silva$id: http://devicetree.org/schemas/media/i2c/ovti,ov2680.yaml#
557226cd8SRui Miguel Silva$schema: http://devicetree.org/meta-schemas/core.yaml#
657226cd8SRui Miguel Silva
757226cd8SRui Miguel Silvatitle: Omnivision OV2680 CMOS Sensor
857226cd8SRui Miguel Silva
957226cd8SRui Miguel Silvamaintainers:
1057226cd8SRui Miguel Silva  - Rui Miguel Silva <rmfrfs@gmail.com>
1157226cd8SRui Miguel Silva
1257226cd8SRui Miguel Silvadescription: |-
1357226cd8SRui Miguel Silva  The OV2680 color sensor is a low voltage, high performance 1/5 inch UXGA (2
1457226cd8SRui Miguel Silva  megapixel) CMOS image sensor that provides a single-chip UXGA (1600 x 1200)
1557226cd8SRui Miguel Silva  camera. It provides full-frame, sub-sampled, or windowed 10-bit images in
1657226cd8SRui Miguel Silva  various formats via the control of the Serial Camera Control Bus (SCCB)
1757226cd8SRui Miguel Silva  interface. The OV2680 has an image array capable of operating at up to 30
1857226cd8SRui Miguel Silva  frames per second (fps) in UXGA resolution.
1957226cd8SRui Miguel Silva
2057226cd8SRui Miguel Silvaproperties:
2157226cd8SRui Miguel Silva  compatible:
2257226cd8SRui Miguel Silva    const: ovti,ov2680
2357226cd8SRui Miguel Silva
2457226cd8SRui Miguel Silva  reg:
2557226cd8SRui Miguel Silva    maxItems: 1
2657226cd8SRui Miguel Silva
2757226cd8SRui Miguel Silva  clocks:
2857226cd8SRui Miguel Silva    maxItems: 1
2957226cd8SRui Miguel Silva
3057226cd8SRui Miguel Silva  clock-names:
3157226cd8SRui Miguel Silva    const: xvclk
3257226cd8SRui Miguel Silva
3357226cd8SRui Miguel Silva  reset-gpios:
3457226cd8SRui Miguel Silva    description:
3557226cd8SRui Miguel Silva      The phandle and specifier for the GPIO that controls sensor reset.
3657226cd8SRui Miguel Silva      This corresponds to the hardware pin XSHUTDOWN which is physically
3757226cd8SRui Miguel Silva      active low.
3857226cd8SRui Miguel Silva    maxItems: 1
3957226cd8SRui Miguel Silva
40e2f6ea61SFabio Estevam  DOVDD-supply:
4157226cd8SRui Miguel Silva    description:
4257226cd8SRui Miguel Silva      Definition of the regulator used as interface power supply.
4357226cd8SRui Miguel Silva
44e2f6ea61SFabio Estevam  AVDD-supply:
4557226cd8SRui Miguel Silva    description:
4657226cd8SRui Miguel Silva      Definition of the regulator used as analog power supply.
4757226cd8SRui Miguel Silva
48e2f6ea61SFabio Estevam  DVDD-supply:
4957226cd8SRui Miguel Silva    description:
5057226cd8SRui Miguel Silva      Definition of the regulator used as digital power supply.
5157226cd8SRui Miguel Silva
5257226cd8SRui Miguel Silva  port:
5357226cd8SRui Miguel Silva    description:
54066a94e2SRob Herring      A node containing an output port node.
55*103afd0fSFabio Estevam    $ref: /schemas/graph.yaml#/$defs/port-base
56*103afd0fSFabio Estevam    additionalProperties: false
57*103afd0fSFabio Estevam
58*103afd0fSFabio Estevam    properties:
59*103afd0fSFabio Estevam      endpoint:
60*103afd0fSFabio Estevam        $ref: /schemas/media/video-interfaces.yaml#
61*103afd0fSFabio Estevam        additionalProperties: false
62*103afd0fSFabio Estevam
63*103afd0fSFabio Estevam        properties:
64*103afd0fSFabio Estevam          link-frequencies: true
65*103afd0fSFabio Estevam
66*103afd0fSFabio Estevam          remote-endpoint: true
67*103afd0fSFabio Estevam
68*103afd0fSFabio Estevam        required:
69*103afd0fSFabio Estevam          - link-frequencies
7057226cd8SRui Miguel Silva
7157226cd8SRui Miguel Silvarequired:
7257226cd8SRui Miguel Silva  - compatible
7357226cd8SRui Miguel Silva  - reg
7457226cd8SRui Miguel Silva  - clocks
7557226cd8SRui Miguel Silva  - clock-names
76e2f6ea61SFabio Estevam  - DOVDD-supply
77e2f6ea61SFabio Estevam  - AVDD-supply
78e2f6ea61SFabio Estevam  - DVDD-supply
7957226cd8SRui Miguel Silva  - reset-gpios
8057226cd8SRui Miguel Silva  - port
8157226cd8SRui Miguel Silva
8257226cd8SRui Miguel SilvaadditionalProperties: false
8357226cd8SRui Miguel Silva
8457226cd8SRui Miguel Silvaexamples:
8557226cd8SRui Miguel Silva  - |
8657226cd8SRui Miguel Silva    #include <dt-bindings/gpio/gpio.h>
8757226cd8SRui Miguel Silva
8857226cd8SRui Miguel Silva    i2c {
8957226cd8SRui Miguel Silva        #address-cells = <1>;
9057226cd8SRui Miguel Silva        #size-cells = <0>;
9157226cd8SRui Miguel Silva
9257226cd8SRui Miguel Silva        ov2680: camera-sensor@36 {
9357226cd8SRui Miguel Silva                compatible = "ovti,ov2680";
9457226cd8SRui Miguel Silva                reg = <0x36>;
9557226cd8SRui Miguel Silva                clocks = <&osc>;
9657226cd8SRui Miguel Silva                clock-names = "xvclk";
9757226cd8SRui Miguel Silva                reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
9857226cd8SRui Miguel Silva
99e2f6ea61SFabio Estevam                DOVDD-supply = <&sw2_reg>;
100e2f6ea61SFabio Estevam                DVDD-supply = <&sw2_reg>;
101e2f6ea61SFabio Estevam                AVDD-supply = <&reg_peri_3p15v>;
10257226cd8SRui Miguel Silva
10357226cd8SRui Miguel Silva                port {
10457226cd8SRui Miguel Silva                        ov2680_to_mipi: endpoint {
10557226cd8SRui Miguel Silva                                remote-endpoint = <&mipi_from_sensor>;
106*103afd0fSFabio Estevam                                link-frequencies = /bits/ 64 <330000000>;
10757226cd8SRui Miguel Silva                        };
10857226cd8SRui Miguel Silva                };
10957226cd8SRui Miguel Silva        };
11057226cd8SRui Miguel Silva    };
11157226cd8SRui Miguel Silva
11257226cd8SRui Miguel Silva...
113