Qualcomm SDM845 Venus video encode and decode accelerators
Schema identifier ($id): "http://devicetree.org/schemas/media/qcom,sdm845-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 #
Exact value (const): "qcom,sdm845-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): 3
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"
iommus — required here #
Maximum number of items (maxItems): 2
video-core0 — 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): 2
clock-names — required here
Array item rules (items)
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"bus"
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-core1 — 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): 2
clock-names — required here
Array item rules (items)
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"bus"
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-core0", "video-core1"
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-sdm845.h>
video-codec@aa00000 {
compatible = "qcom,sdm845-venus";
reg = <0x0aa00000 0xff000>;
interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
<&videocc VIDEO_CC_VENUS_AHB_CLK>,
<&videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
clock-names = "core", "iface", "bus";
power-domains = <&videocc VENUS_GDSC>;
iommus = <&apps_smmu 0x10a0 0x8>,
<&apps_smmu 0x10b0 0x0>;
memory-region = <&venus_mem>;
video-core0 {
compatible = "venus-decoder";
clocks = <&videocc VIDEO_CC_VCODEC0_CORE_CLK>,
<&videocc VIDEO_CC_VCODEC0_AXI_CLK>;
clock-names = "core", "bus";
power-domains = <&videocc VCODEC0_GDSC>;
};
video-core1 {
compatible = "venus-encoder";
clocks = <&videocc VIDEO_CC_VCODEC1_CORE_CLK>,
<&videocc VIDEO_CC_VCODEC1_AXI_CLK>;
clock-names = "core", "bus";
power-domains = <&videocc VCODEC1_GDSC>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)