Rockchip Video Decoder (VDec)
Schema identifier ($id): "http://devicetree.org/schemas/media/rockchip,vdec.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Rockchip SoCs have variants of the same stateless Video Decoder that can decodes H.264, HEVC, VP9 and AV1 streams, depending on the variant.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"rockchip,rk3288-vdec"
Rule 2
Exact value (
const):"rockchip,rk3399-vdec"
Rule 3
Exact value (
const):"rockchip,rk3576-vdec"
Rule 4
Exact value (
const):"rockchip,rk3588-vdec"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,rk3228-vdec","rockchip,rk3328-vdec"Item 2
Exact value (
const):"rockchip,rk3399-vdec"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
reg-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"link"Item 2
Exact value (
const):"function"Item 3
Exact value (
const):"cache"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"function"Item 2
Exact value (
const):"link"Item 3
Exact value (
const):"cache"Deprecated (
deprecated):trueUse link,function,cache block order instead.
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 4
Array item rules (items) #
Item 1
The Video Decoder AXI interface clock
Item 2
The Video Decoder AHB interface clock
Item 3
The Video Decoded CABAC clock
Item 4
The Video Decoder core clock
Item 5
The Video decoder HEVC CABAC clock
clock-names — required here #
Minimum number of items (minItems): 4
Array item rules (items) #
Item 1
Exact value (
const):"axi"
Item 2
Exact value (
const):"ahb"
Item 3
Exact value (
const):"cabac"
Item 4
Exact value (
const):"core"
Item 5
Exact value (
const):"hevc_cabac"
assigned-clocks — not listed as required here #
true — No constraints added by this property rule.
assigned-clock-rates — not listed as required here #
true — No constraints added by this property rule.
resets — not listed as required here #
Array item rules (items) #
Item 1
The Video Decoder AXI interface reset
Item 2
The Video Decoder AHB interface reset
Item 3
The Video Decoded CABAC reset
Item 4
The Video Decoder core reset
Item 5
The Video decoder HEVC CABAC reset
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"axi"
Item 2
Exact value (
const):"ahb"
Item 3
Exact value (
const):"cabac"
Item 4
Exact value (
const):"core"
Item 5
Exact value (
const):"hevc_cabac"
power-domains — required here #
Maximum number of items (maxItems): 1
iommus — not listed as required here #
Maximum number of items (maxItems): 1
sram — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to a reserved on-chip SRAM regions. Some SoCs, like rk3588 provide on-chip SRAM to store temporary buffers during decoding.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3576-vdec","rockchip,rk3588-vdec"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):3
reg-names— required hereMinimum number of items (
minItems):3
clocks— not listed as required hereMinimum number of items (
minItems):5
clock-names— not listed as required hereMinimum number of items (
minItems):5
resets— not listed as required hereMinimum number of items (
minItems):5
reset-names— not listed as required hereMinimum number of items (
minItems):5When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
reg-names— not listed as required here
false— Not permitted by this property rule.
clocks— not listed as required hereMaximum number of items (
maxItems):4
clock-names— not listed as required hereMaximum number of items (
maxItems):4
resets— not listed as required here
false— Not permitted by this property rule.
reset-names— not listed as required here
false— Not permitted by this property rule.
sram— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/rk3399-cru.h>
#include <dt-bindings/power/rk3399-power.h>
vdec: video-codec@ff660000 {
compatible = "rockchip,rk3399-vdec";
reg = <0xff660000 0x400>;
interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH 0>;
clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>,
<&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>;
clock-names = "axi", "ahb", "cabac", "core";
power-domains = <&power RK3399_PD_VDU>;
iommus = <&vdec_mmu>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)