Qualcomm iris video encode and decode accelerators

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

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

Maintainers (maintainers): "Vikash Garodia <quic_vgarodia@quicinc.com>", "Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>"

The iris video processing unit is a video encode and decode accelerator present on Qualcomm platforms.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "qcom,sa8775p-iris", "qcom,x1e80100-iris"

Item 2

Exact value (const): "qcom,sm8550-iris"

Rule 2

Allowed values (enum): "qcom,qcs8300-iris", "qcom,sm8550-iris", "qcom,sm8650-iris"

reg — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 4

power-domain-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "venus"

Item 2

Exact value (const): "vcodec0"

Item 3

Exact value (const): "mxc"

Item 4

Exact value (const): "mmcx"

clocks — not listed as required here #

Maximum number of items (maxItems): 3

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "iface"

Item 2

Exact value (const): "core"

Item 3

Exact value (const): "vcodec0_core"

firmware-name — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interconnects — required here #

Maximum number of items (maxItems): 2

interconnect-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "cpu-cfg"

Item 2

Exact value (const): "video-mem"

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

reset-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "xo"

Item 3

Exact value (const): "core"

iommus — required here #

Maximum number of items (maxItems): 2

dma-coherent — required here #

true — No constraints added by this property rule.

memory-region — not listed as required here #

Maximum number of items (maxItems): 1

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"

Required in this object (required): "compatible", "power-domain-names", "interconnects", "interconnect-names", "resets", "reset-names", "iommus", "dma-coherent"

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): "qcom,sm8650-iris"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 3

reset-names — not listed as required here

Minimum number of items (minItems): 3

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Maximum number of items (maxItems): 1

reset-names — not listed as required here

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/clock/qcom,sm8550-gcc.h>
#include <dt-bindings/clock/qcom,sm8450-videocc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interconnect/qcom,icc.h>
#include <dt-bindings/interconnect/qcom,sm8550-rpmh.h>
#include <dt-bindings/power/qcom-rpmpd.h>
#include <dt-bindings/power/qcom,rpmhpd.h>

video-codec@aa00000 {
    compatible = "qcom,sm8550-iris";
    reg = <0x0aa00000 0xf0000>;
    interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;

    power-domains = <&videocc VIDEO_CC_MVS0C_GDSC>,
                    <&videocc VIDEO_CC_MVS0_GDSC>,
                    <&rpmhpd RPMHPD_MXC>,
                    <&rpmhpd RPMHPD_MMCX>;
    power-domain-names = "venus", "vcodec0", "mxc", "mmcx";

    clocks = <&gcc GCC_VIDEO_AXI0_CLK>,
             <&videocc VIDEO_CC_MVS0C_CLK>,
             <&videocc VIDEO_CC_MVS0_CLK>;
    clock-names = "iface", "core", "vcodec0_core";

    interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS
                     &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ALWAYS>,
                    <&mmss_noc MASTER_VIDEO QCOM_ICC_TAG_ALWAYS
                     &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
    interconnect-names = "cpu-cfg", "video-mem";

    memory-region = <&video_mem>;

    resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>;
    reset-names = "bus";

    iommus = <&apps_smmu 0x1940 0x0000>,
             <&apps_smmu 0x1947 0x0000>;
    dma-coherent;

    operating-points-v2 = <&iris_opp_table>;

    iris_opp_table: opp-table {
        compatible = "operating-points-v2";

        opp-240000000 {
            opp-hz = /bits/ 64 <240000000>;
            required-opps = <&rpmhpd_opp_svs>,
                            <&rpmhpd_opp_low_svs>;
        };

        opp-338000000 {
            opp-hz = /bits/ 64 <338000000>;
            required-opps = <&rpmhpd_opp_svs>,
                            <&rpmhpd_opp_svs>;
        };

        opp-366000000 {
            opp-hz = /bits/ 64 <366000000>;
            required-opps = <&rpmhpd_opp_svs_l1>,
                            <&rpmhpd_opp_svs_l1>;
        };

        opp-444000000 {
            opp-hz = /bits/ 64 <444000000>;
            required-opps = <&rpmhpd_opp_turbo>,
                            <&rpmhpd_opp_turbo>;
        };

        opp-533333334 {
            opp-hz = /bits/ 64 <533333334>;
            required-opps = <&rpmhpd_opp_turbo_l1>,
                            <&rpmhpd_opp_turbo_l1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page