xref: /linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml (revision e2f6ea61b6f3e4ebbb7dff857eea6220c18cd17b)
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
40*e2f6ea61SFabio Estevam  DOVDD-supply:
4157226cd8SRui Miguel Silva    description:
4257226cd8SRui Miguel Silva      Definition of the regulator used as interface power supply.
4357226cd8SRui Miguel Silva
44*e2f6ea61SFabio Estevam  AVDD-supply:
4557226cd8SRui Miguel Silva    description:
4657226cd8SRui Miguel Silva      Definition of the regulator used as analog power supply.
4757226cd8SRui Miguel Silva
48*e2f6ea61SFabio 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:
53066a94e2SRob Herring    $ref: /schemas/graph.yaml#/properties/port
5457226cd8SRui Miguel Silva    description:
55066a94e2SRob Herring      A node containing an output port node.
5657226cd8SRui Miguel Silva
5757226cd8SRui Miguel Silvarequired:
5857226cd8SRui Miguel Silva  - compatible
5957226cd8SRui Miguel Silva  - reg
6057226cd8SRui Miguel Silva  - clocks
6157226cd8SRui Miguel Silva  - clock-names
62*e2f6ea61SFabio Estevam  - DOVDD-supply
63*e2f6ea61SFabio Estevam  - AVDD-supply
64*e2f6ea61SFabio Estevam  - DVDD-supply
6557226cd8SRui Miguel Silva  - reset-gpios
6657226cd8SRui Miguel Silva  - port
6757226cd8SRui Miguel Silva
6857226cd8SRui Miguel SilvaadditionalProperties: false
6957226cd8SRui Miguel Silva
7057226cd8SRui Miguel Silvaexamples:
7157226cd8SRui Miguel Silva  - |
7257226cd8SRui Miguel Silva    #include <dt-bindings/gpio/gpio.h>
7357226cd8SRui Miguel Silva
7457226cd8SRui Miguel Silva    i2c {
7557226cd8SRui Miguel Silva        #address-cells = <1>;
7657226cd8SRui Miguel Silva        #size-cells = <0>;
7757226cd8SRui Miguel Silva
7857226cd8SRui Miguel Silva        ov2680: camera-sensor@36 {
7957226cd8SRui Miguel Silva                compatible = "ovti,ov2680";
8057226cd8SRui Miguel Silva                reg = <0x36>;
8157226cd8SRui Miguel Silva                clocks = <&osc>;
8257226cd8SRui Miguel Silva                clock-names = "xvclk";
8357226cd8SRui Miguel Silva                reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
8457226cd8SRui Miguel Silva
85*e2f6ea61SFabio Estevam                DOVDD-supply = <&sw2_reg>;
86*e2f6ea61SFabio Estevam                DVDD-supply = <&sw2_reg>;
87*e2f6ea61SFabio Estevam                AVDD-supply = <&reg_peri_3p15v>;
8857226cd8SRui Miguel Silva
8957226cd8SRui Miguel Silva                port {
9057226cd8SRui Miguel Silva                        ov2680_to_mipi: endpoint {
9157226cd8SRui Miguel Silva                                remote-endpoint = <&mipi_from_sensor>;
9257226cd8SRui Miguel Silva                        };
9357226cd8SRui Miguel Silva                };
9457226cd8SRui Miguel Silva        };
9557226cd8SRui Miguel Silva    };
9657226cd8SRui Miguel Silva
9757226cd8SRui Miguel Silva...
98