Analog Devices ADV7180 analog video decoder family

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

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

Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>"

The adv7180 family devices are used to capture analog video to different digital interfaces like MIPI CSI-2 or parallel video.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "adi,adv7180", "adi,adv7180cp", "adi,adv7180st", "adi,adv7182", "adi,adv7280", "adi,adv7280-m", "adi,adv7281", "adi,adv7281-m", "adi,adv7281-ma", "adi,adv7282", "adi,adv7282-m"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

main register map

Item 2

VPP or CSI register map

Item 3

CSI register map

The ADV7180 family may have up to three register maps. All chips have the main register map. The availability of the CSI and VPP register maps depends on the chip variant. The addresses of the CSI and VPP register maps are programmable by software. They depend on the board layout and other devices on the I2C bus and are determined by the hardware designer to avoid address conflicts on the I2C bus.

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "main"

Item 2

Allowed values (enum): "csi", "vpp"

Item 3

Exact value (const): "csi"

powerdown-gpios — not listed as required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

adv,force-bt656-4 — not listed as required here #

Deprecated (deprecated): true

Indicates that the output is a BT.656-4 compatible stream.

Value type (type): "boolean"

adi,force-bt656-4 — not listed as required here #

Indicates that the output is a BT.656-4 compatible stream.

Value type (type): "boolean"

interrupts — not listed as required here #

Array item rules (items) #

Item 1

The GPIO connected to the INTRQ pin.

port — not listed as 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.

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.

ports — not listed as required here #

true — No constraints added by this property rule.

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

false

Not allowed by this rule.

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

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "adi,adv7180", "adi,adv7182", "adi,adv7280", "adi,adv7280-m", "adi,adv7281", "adi,adv7281-m", "adi,adv7281-ma", "adi,adv7282", "adi,adv7282-m"

When the condition matches (then) #

Required in this object (required): "port"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "adi,adv7180cp"

When the condition matches (then) #

Properties and child nodes (properties)

ports — required here

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties)

port@3 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Output port

Properties matching a name pattern (patternProperties)

^port@[0-2]$ — name matches this regular expression

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Input port

Required in this object (required): "port@3"

Required in this object (required): "ports"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "adi,adv7180st"

When the condition matches (then) #

Properties and child nodes (properties)

ports — required here

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties)

port@6 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Output port

Properties matching a name pattern (patternProperties)

^port@[0-5]$ — name matches this regular expression

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Input port

Required in this object (required): "port@6"

Required in this object (required): "ports"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,adv7180", "adi,adv7180cp", "adi,adv7180st", "adi,adv7182"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

reg-names — not listed as required here

Maximum number of items (maxItems): 1

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,adv7281", "adi,adv7281-m", "adi,adv7281-ma"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reg-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "main"

Item 2

Exact value (const): "csi"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,adv7280", "adi,adv7282"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reg-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "main"

Item 2

Exact value (const): "vpp"

Examples (examples) #

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

        composite-in@20 {
                compatible = "adi,adv7180";
                reg = <0x20>;

                port {
                        adv7180: endpoint {
                                bus-width = <8>;
                                remote-endpoint = <&vin1ep>;
                        };
                };
        };

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

        composite-in@20 {
                compatible = "adi,adv7180cp";
                reg = <0x20>;

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

                        port@0 {
                                reg = <0>;
                                adv7180_in: endpoint {
                                        remote-endpoint = <&composite_con_in>;
                                };
                        };

                        port@3 {
                                reg = <3>;
                                adv7180_out: endpoint {
                                        remote-endpoint = <&vin4_in>;
                                };
                        };
                };
        };
};
i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        composite-in@20 {
                compatible = "adi,adv7280-m";
                reg = <0x20>, <0x42>, <0x44>;
                reg-names = "main", "vpp", "csi";

                port {
                        adv7280_out: endpoint {
                                bus-width = <8>;
                                remote-endpoint = <&vin1ep>;
                        };
                };
        };
};

Source notes #

Annotations retained from the schema source

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

Edit this page