Qualcomm SC7280 Venus video encode and decode accelerators

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

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

Maintainers (maintainers): "Stanimir Varbanov <stanimir.varbanov@linaro.org>"

The Venus Iris2 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,sc7280-venus"

power-domains — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

power-domain-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "venus"

Item 2

Exact value (const): "vcodec0"

Item 3

Exact value (const): "cx"

clocks — not listed as required here #

Maximum number of items (maxItems): 5

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "iface"

Item 4

Exact value (const): "vcodec_core"

Item 5

Exact value (const): "vcodec_bus"

iommus — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

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"

operating-points-v2 — not listed as required here #

true — No constraints added by this property rule.

opp-table — not listed as required here #

Value type (type): "object"

video-decoder — not listed as required here #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "venus-decoder"

Required in this object (required): "compatible"

Deprecated (deprecated): true

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

false

Not allowed by this rule.

video-encoder — not listed as required here #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "venus-encoder"

Required in this object (required): "compatible"

Deprecated (deprecated): true

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "power-domain-names", "iommus"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,videocc-sc7280.h>
#include <dt-bindings/interconnect/qcom,sc7280.h>
#include <dt-bindings/power/qcom-rpmpd.h>

venus: video-codec@aa00000 {
    compatible = "qcom,sc7280-venus";
    reg = <0x0aa00000 0xd0600>;
    interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;

    clocks = <&videocc VIDEO_CC_MVSC_CORE_CLK>,
             <&videocc VIDEO_CC_MVSC_CTL_AXI_CLK>,
             <&videocc VIDEO_CC_VENUS_AHB_CLK>,
             <&videocc VIDEO_CC_MVS0_CORE_CLK>,
             <&videocc VIDEO_CC_MVS0_AXI_CLK>;
    clock-names = "core", "bus", "iface",
                  "vcodec_core", "vcodec_bus";

    power-domains = <&videocc MVSC_GDSC>,
                    <&videocc MVS0_GDSC>,
                    <&rpmhpd SC7280_CX>;
    power-domain-names = "venus", "vcodec0", "cx";

    interconnects = <&gem_noc MASTER_APPSS_PROC 0 &cnoc2 SLAVE_VENUS_CFG 0>,
                    <&mmss_noc MASTER_VIDEO_P0 0 &mc_virt SLAVE_EBI1 0>;
    interconnect-names = "cpu-cfg", "video-mem";

    iommus = <&apps_smmu 0x2180 0x20>,
             <&apps_smmu 0x2184 0x20>;

    memory-region = <&video_mem>;

    video-firmware {
        iommus = <&apps_smmu 0x21a2 0x0>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page