OmniVision OG01A1B Image Sensor

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

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

Maintainers (maintainers): "Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>"

The OmniVision OG01A1B is black and white CMOS 1.3 Megapixel (1280x1024) image sensor controlled over an I2C-compatible SCCB bus. The sensor transmits images on a MIPI CSI-2 output interface with one or two data lanes.

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,og01a1b"

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 #

Active low GPIO connected to XSHUTDOWN pad of the sensor.

Maximum number of items (maxItems): 1

strobe-gpios — not listed as required here #

Input GPIO connected to strobe pad of the sensor.

Maximum number of items (maxItems): 1

avdd-supply — not listed as required here #

Analogue circuit voltage supply.

dovdd-supply — not listed as required here #

I/O circuit voltage supply.

dvdd-supply — not listed as required here #

Digital circuit voltage supply.

port — required here #

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

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

false

Not allowed by this rule.

Output port node, single endpoint describing the CSI-2 transmitter.

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)

data-lanes — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array item rules (items)

Allowed values (enum): 1, 2

link-frequencies — required here

true — No constraints added by this property rule.

Required in this object (required): "data-lanes", "link-frequencies"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    sensor@60 {
        compatible = "ovti,og01a1b";
        reg = <0x60>;
        clocks = <&clk 0>;
        reset-gpios = <&gpio 117 GPIO_ACTIVE_LOW>;
        avdd-supply = <&vreg_3v3>;
        dovdd-supply = <&vreg_1p8>;
        dvdd-supply = <&vreg_1p2>;

        port {
            og01a1b_ep: endpoint {
                remote-endpoint = <&csiphy_ep>;
                data-lanes = <1 2>;
                link-frequencies = /bits/ 64 <500000000>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (c) 2023-2024 Linaro Ltd.

Edit this page