Omnivision OV7720/OV7725 CMOS sensor

Schema identifier ($id): "http://devicetree.org/schemas/media/i2c/ovti,ov772x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jacopo Mondi <jacopo@jmondi.org>"

The Omnivision OV7720/OV7725 sensor supports multiple resolutions output, such as VGA, QVGA, and any size scaling down from CIF to 40x30. It also can support the YUV422, RGB565/555/444, GRB422 or raw RGB output formats.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ovti,ov7720", "ovti,ov7725"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Reference to the GPIO connected to the RSTB pin which is active low.

Maximum number of items (maxItems): 1

powerdown-gpios — not listed as required here #

Reference to the GPIO connected to the PWDN pin which is active high.

Maximum number of items (maxItems): 1

port — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Video output port.

Properties and child nodes (properties) #

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

bus-type — required here

Allowed values (enum): 5, 6

bus-width — not listed as required here

Allowed values (enum): 8, 10

Default value (default): 10

data-shift — not listed as required here

Allowed values (enum): 0, 2

Default value (default): 0

hsync-active — not listed as required here

Allowed values (enum): 0, 1

Default value (default): 1

vsync-active — not listed as required here

Allowed values (enum): 0, 1

Default value (default): 1

pclk-sample — not listed as required here

Allowed values (enum): 0, 1

Default value (default): 1

All of these rules must match (allOf)

Rule 1

Condition (if)

Properties and child nodes (properties)

bus-type — not listed as required here

Exact value (const): 6

When the condition matches (then)

Properties and child nodes (properties)

hsync-active — not listed as required here

false — Not permitted by this property rule.

vsync-active — not listed as required here

false — Not permitted by this property rule.

Rule 2

Condition (if)

Properties and child nodes (properties)

bus-width — not listed as required here

Exact value (const): 10

When the condition matches (then)

Properties and child nodes (properties)

data-shift — not listed as required here

Exact value (const): 0

Required in this object (required): "bus-type"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "clocks", "port"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/media/video-interfaces.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    ov772x: camera@21 {
        compatible = "ovti,ov7725";
        reg = <0x21>;
        reset-gpios = <&axi_gpio_0 0 GPIO_ACTIVE_LOW>;
        powerdown-gpios = <&axi_gpio_0 1 GPIO_ACTIVE_LOW>;
        clocks = <&xclk>;

        port {
            ov772x_0: endpoint {
                bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
                vsync-active = <0>;
                hsync-active = <0>;
                pclk-sample = <0>;
                bus-width = <8>;
                data-shift = <0>;
                remote-endpoint = <&vcap1_in0>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page