ON Semiconductor AR0521 MIPI CSI-2 sensor

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

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

Maintainers (maintainers): "Krzysztof Hałasa <khalasa@piap.pl>"

The AR0521 is a raw CMOS image sensor with MIPI CSI-2 and I2C-compatible control interface.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "onnn,ar0521"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "extclk"

vaa-supply — required here #

Definition of the regulator used as analog (2.7 V) voltage supply.

vdd-supply — required here #

Definition of the regulator used as digital core (1.2 V) voltage supply.

vdd_io-supply — required here #

Definition of the regulator used as digital I/O (1.8 V) voltage supply.

reset-gpios — not listed as required here #

reset GPIO, usually active low

Maximum number of items (maxItems): 1

port — required here #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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 — not listed as required here

Exact value (const): 4

data-lanes — not listed as required here

At least one of these rules must match (anyOf)

Rule 1

Array item rules (items)

Item 1

Exact value (const): 1

Rule 2

Array item rules (items)

Item 1

Exact value (const): 1

Item 2

Exact value (const): 2

Rule 3

Array item rules (items)

Item 1

Exact value (const): 1

Item 2

Exact value (const): 2

Item 3

Exact value (const): 3

Item 4

Exact value (const): 4

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "vaa-supply", "vdd-supply", "vdd_io-supply", "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/clock/imx6qdl-clock.h>

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

        ar0521: camera-sensor@36 {
                compatible = "onnn,ar0521";
                reg = <0x36>;
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_mipi_camera>;
                clocks = <&clks IMX6QDL_CLK_CKO>;
                clock-names = "extclk";
                reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
                vaa-supply = <&reg_2p7v>;
                vdd-supply = <&reg_1p2v>;
                vdd_io-supply = <&reg_1p8v>;

                port {
                       mipi_camera_to_mipi_csi2: endpoint {
                                remote-endpoint = <&mipi_csi2_in>;
                                data-lanes = <1 2 3 4>;
                        };
                };
        };
};

Source notes #

Annotations retained from the schema source

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

Edit this page