Qualcomm MSM8996 Venus video encode and decode accelerators
Schema identifier ($id): "http://devicetree.org/schemas/media/qcom,msm8996-venus.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stanimir Varbanov <stanimir.varbanov@linaro.org>"
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 #
Allowed values (enum): "qcom,msm8996-venus", "qcom,msm8998-venus"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
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):"mbus"
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):"video-mem"
Item 2
Exact value (
const):"cpu-cfg"
iommus — required here #
Maximum number of items (maxItems): 20
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):"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):"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/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,mmcc-msm8996.h>
video-codec@c00000 {
compatible = "qcom,msm8996-venus";
reg = <0x00c00000 0xff000>;
interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mmcc VIDEO_CORE_CLK>,
<&mmcc VIDEO_AHB_CLK>,
<&mmcc VIDEO_AXI_CLK>,
<&mmcc VIDEO_MAXI_CLK>;
clock-names = "core", "iface", "bus", "mbus";
power-domains = <&mmcc VENUS_GDSC>;
iommus = <&venus_smmu 0x00>,
<&venus_smmu 0x01>,
<&venus_smmu 0x0a>,
<&venus_smmu 0x07>,
<&venus_smmu 0x0e>,
<&venus_smmu 0x0f>,
<&venus_smmu 0x08>,
<&venus_smmu 0x09>,
<&venus_smmu 0x0b>,
<&venus_smmu 0x0c>,
<&venus_smmu 0x0d>,
<&venus_smmu 0x10>,
<&venus_smmu 0x11>,
<&venus_smmu 0x21>,
<&venus_smmu 0x28>,
<&venus_smmu 0x29>,
<&venus_smmu 0x2b>,
<&venus_smmu 0x2c>,
<&venus_smmu 0x2d>,
<&venus_smmu 0x31>;
memory-region = <&venus_mem>;
video-decoder {
compatible = "venus-decoder";
clocks = <&mmcc VIDEO_SUBCORE0_CLK>;
clock-names = "core";
power-domains = <&mmcc VENUS_CORE0_GDSC>;
};
video-encoder {
compatible = "venus-encoder";
clocks = <&mmcc VIDEO_SUBCORE1_CLK>;
clock-names = "core";
power-domains = <&mmcc VENUS_CORE1_GDSC>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)