Amlogic Video Decoder
Schema identifier ($id): "http://devicetree.org/schemas/media/amlogic,gx-vdec.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>", "Maxime Jourdan <mjourdan@baylibre.com>"
The video decoding IP lies within the DOS memory region, except for the hardware bitstream parser that makes use of an undocumented region.
It makes use of the following blocks:
- ESPARSER is a bitstream parser that outputs to a VIFIFO. Further VDEC blocks
then feed from this VIFIFO.
- VDEC_1 can decode MPEG-1, MPEG-2, MPEG-4 part 2, MJPEG, H.263, H.264, VC-1.
- VDEC_HEVC can decode HEVC and VP9.
Both VDEC_1 and VDEC_HEVC share the "vdec" IRQ and as such cannot run concurrently.
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):"amlogic,gxbb-vdec","amlogic,gxl-vdec","amlogic,gxlx-vdec","amlogic,gxm-vdec"Item 2
Exact value (
const):"amlogic,gx-vdec"
Rule 2
Allowed values (
enum):"amlogic,g12a-vdec","amlogic,sm1-vdec"
interrupts — required here #
Minimum number of items (minItems): 2
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"vdec"
Item 2
Exact value (
const):"esparser"
reg — required here #
Minimum number of items (minItems): 2
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"dos"
Item 2
Exact value (
const):"esparser"
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"esparser"
clocks — required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 5
clock-names — required here #
Minimum number of items (minItems): 4
Array item rules (items) #
Item 1
Exact value (
const):"dos_parser"
Item 2
Exact value (
const):"dos"
Item 3
Exact value (
const):"vdec_1"
Item 4
Exact value (
const):"vdec_hevc"
Item 5
Exact value (
const):"vdec_hevcf"
amlogic,ao-sysctrl — required here #
should point to the AOBUS sysctrl node
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
amlogic,canvas — required here #
should point to a canvas provider node
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
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)When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required hereMaximum number of items (
maxItems):4
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"amlogic,g12a-vdec","amlogic,sm1-vdec"When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required hereMinimum number of items (
minItems):5
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "clock-names", "resets", "reset-names", "amlogic,ao-sysctrl", "amlogic,canvas"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
vdec: video-decoder@c8820000 {
compatible = "amlogic,gxl-vdec", "amlogic,gx-vdec";
reg = <0xc8820000 0x10000>, <0xc110a580 0xe4>;
reg-names = "dos", "esparser";
interrupts = <44>, <32>;
interrupt-names = "vdec", "esparser";
clocks = <&clk_dos_parser> ,<&clk_dos>, <&clk_vdec_1>, <&clk_vdec_hevc>;
clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc";
resets = <&reset_parser>;
reset-names = "esparser";
amlogic,ao-sysctrl = <&sysctrl_AO>;
amlogic,canvas = <&canvas>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 BayLibre, SAS
Line 33: GXBB (S905)
Line 34: GXL (S905D, S905W, S905X, S905Y)
Line 35: GXLX (S905L)
Line 36: GXM (S912)
Line 39: G12A (S905X2, S905D2)
Line 40: SM1 (S905X3, S905D3)