OmniVision OV5642 Image Sensor

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

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

Maintainers (maintainers): "Fabio Estevam <festevam@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ovti,ov5642"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

XCLK Input Clock

AVDD-supply — not listed as required here #

Analog voltage supply, 2.8V.

DVDD-supply — not listed as required here #

Digital core voltage supply, 1.5V.

DOVDD-supply — not listed as required here #

Digital I/O voltage supply, 1.8V.

powerdown-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Reference to the GPIO connected to the powerdown pin, if any.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Reference to the GPIO connected to the reset pin, if any.

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>;

    camera@3c {
        compatible = "ovti,ov5642";
        reg = <0x3c>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ov5642>;
        clocks = <&clk_ext_camera>;
        DOVDD-supply = <&vgen4_reg>;
        AVDD-supply = <&vgen3_reg>;
        DVDD-supply = <&vgen2_reg>;
        powerdown-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
        reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;

        port {
            ov5642_to_parallel: endpoint {
                bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
                remote-endpoint = <&parallel_from_ov5642>;
                bus-width = <8>;
                data-shift = <2>; /* lines 9:2 are used */
                hsync-active = <0>;
                vsync-active = <0>;
                pclk-sample = <1>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page