Qualcomm SDM660 Venus video encode and decode accelerators

Schema identifier ($id): "http://devicetree.org/schemas/media/qcom,sdm660-venus.yaml#"

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

Maintainers (maintainers): "Stanimir Varbanov <stanimir.varbanov@linaro.org>", "AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>"

The Venus IP is a video encode and decode accelerator present on Qualcomm platforms

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): qcom,venus-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,sdm660-venus"

clocks — not listed as required here #

Maximum number of items (maxItems): 4

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "iface"

Item 3

Exact value (const): "bus"

Item 4

Exact value (const): "bus_throttle"

interconnects — not listed as required here #

Maximum number of items (maxItems): 2

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "cpu-cfg"

Item 2

Exact value (const): "video-mem"

iommus — required here #

Maximum number of items (maxItems): 20

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

video-decoder — required here #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "venus-decoder"

clocks — required here

Maximum number of items (maxItems): 1

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "vcodec0_core"

power-domains — required here

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks", "clock-names", "power-domains"

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

false

Not allowed by this rule.

video-encoder — required here #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "venus-encoder"

clocks — required here

Maximum number of items (maxItems): 1

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "vcodec0_core"

power-domains — required here

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks", "clock-names", "power-domains"

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "iommus", "video-decoder", "video-encoder"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,mmcc-sdm660.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

video-codec@cc00000 {
    compatible = "qcom,sdm660-venus";
    reg = <0x0cc00000 0xff000>;
    clocks = <&mmcc VIDEO_CORE_CLK>,
             <&mmcc VIDEO_AHB_CLK>,
             <&mmcc VIDEO_AXI_CLK>,
             <&mmcc THROTTLE_VIDEO_AXI_CLK>;
    clock-names = "core", "iface", "bus", "bus_throttle";
    interconnects = <&gnoc 0 &mnoc 13>,
                    <&mnoc 4 &bimc 5>;
    interconnect-names = "cpu-cfg", "video-mem";
    interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
    iommus = <&mmss_smmu 0x400>,
             <&mmss_smmu 0x401>,
             <&mmss_smmu 0x40a>,
             <&mmss_smmu 0x407>,
             <&mmss_smmu 0x40e>,
             <&mmss_smmu 0x40f>,
             <&mmss_smmu 0x408>,
             <&mmss_smmu 0x409>,
             <&mmss_smmu 0x40b>,
             <&mmss_smmu 0x40c>,
             <&mmss_smmu 0x40d>,
             <&mmss_smmu 0x410>,
             <&mmss_smmu 0x421>,
             <&mmss_smmu 0x428>,
             <&mmss_smmu 0x429>,
             <&mmss_smmu 0x42b>,
             <&mmss_smmu 0x42c>,
             <&mmss_smmu 0x42d>,
             <&mmss_smmu 0x411>,
             <&mmss_smmu 0x431>;
    memory-region = <&venus_region>;
    power-domains = <&mmcc VENUS_GDSC>;

    video-decoder {
        compatible = "venus-decoder";
        clocks = <&mmcc VIDEO_SUBCORE0_CLK>;
        clock-names = "vcodec0_core";
        power-domains = <&mmcc VENUS_CORE0_GDSC>;
    };

    video-encoder {
        compatible = "venus-encoder";
        clocks = <&mmcc VIDEO_SUBCORE0_CLK>;
        clock-names = "vcodec0_core";
        power-domains = <&mmcc VENUS_CORE0_GDSC>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page