2019-12-05 23:34:05 +08:00
|
|
|
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
|
|
# Copyright 2019 BayLibre, SAS
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
$id: "http://devicetree.org/schemas/media/amlogic,gx-vdec.yaml#"
|
|
|
|
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
|
|
|
|
|
|
|
|
title: Amlogic Video Decoder
|
|
|
|
|
|
|
|
maintainers:
|
2022-08-16 17:56:17 +08:00
|
|
|
- Neil Armstrong <neil.armstrong@linaro.org>
|
2019-12-05 23:34:05 +08:00
|
|
|
- Maxime Jourdan <mjourdan@baylibre.com>
|
|
|
|
|
|
|
|
description: |
|
|
|
|
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:
|
|
|
|
compatible:
|
2019-12-05 23:34:06 +08:00
|
|
|
oneOf:
|
|
|
|
- items:
|
2020-04-16 08:55:48 +08:00
|
|
|
- enum:
|
|
|
|
- amlogic,gxbb-vdec # GXBB (S905)
|
|
|
|
- amlogic,gxl-vdec # GXL (S905X, S905D)
|
|
|
|
- amlogic,gxm-vdec # GXM (S912)
|
|
|
|
- const: amlogic,gx-vdec
|
2019-12-05 23:34:05 +08:00
|
|
|
- enum:
|
2020-04-16 08:55:48 +08:00
|
|
|
- amlogic,g12a-vdec # G12A (S905X2, S905D2)
|
|
|
|
- amlogic,sm1-vdec # SM1 (S905X3, S905D3)
|
2019-12-05 23:34:05 +08:00
|
|
|
|
|
|
|
interrupts:
|
|
|
|
minItems: 2
|
|
|
|
|
|
|
|
interrupt-names:
|
|
|
|
items:
|
|
|
|
- const: vdec
|
|
|
|
- const: esparser
|
|
|
|
|
|
|
|
reg:
|
|
|
|
minItems: 2
|
|
|
|
|
|
|
|
reg-names:
|
|
|
|
items:
|
|
|
|
- const: dos
|
|
|
|
- const: esparser
|
|
|
|
|
|
|
|
resets:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
reset-names:
|
|
|
|
items:
|
|
|
|
- const: esparser
|
|
|
|
|
|
|
|
clocks:
|
|
|
|
minItems: 4
|
2019-12-05 23:34:06 +08:00
|
|
|
maxItems: 5
|
2019-12-05 23:34:05 +08:00
|
|
|
|
|
|
|
clock-names:
|
2019-12-05 23:34:06 +08:00
|
|
|
minItems: 4
|
2019-12-05 23:34:05 +08:00
|
|
|
items:
|
|
|
|
- const: dos_parser
|
|
|
|
- const: dos
|
|
|
|
- const: vdec_1
|
|
|
|
- const: vdec_hevc
|
2019-12-05 23:34:06 +08:00
|
|
|
- const: vdec_hevcf
|
2019-12-05 23:34:05 +08:00
|
|
|
|
|
|
|
amlogic,ao-sysctrl:
|
|
|
|
description: should point to the AOBUS sysctrl node
|
2020-04-16 08:55:49 +08:00
|
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
2019-12-05 23:34:05 +08:00
|
|
|
|
|
|
|
amlogic,canvas:
|
|
|
|
description: should point to a canvas provider node
|
2020-04-16 08:55:49 +08:00
|
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
2019-12-05 23:34:05 +08:00
|
|
|
|
2019-12-05 23:34:06 +08:00
|
|
|
allOf:
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- amlogic,gx-vdec
|
|
|
|
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clock-names:
|
|
|
|
maxItems: 4
|
|
|
|
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- amlogic,g12a-vdec
|
2019-11-21 18:14:27 +08:00
|
|
|
- amlogic,sm1-vdec
|
2019-12-05 23:34:06 +08:00
|
|
|
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clock-names:
|
|
|
|
minItems: 5
|
|
|
|
|
2019-12-05 23:34:05 +08:00
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- reg-names
|
|
|
|
- interrupts
|
|
|
|
- interrupt-names
|
|
|
|
- clocks
|
|
|
|
- clock-names
|
|
|
|
- resets
|
|
|
|
- reset-names
|
|
|
|
- amlogic,ao-sysctrl
|
|
|
|
- amlogic,canvas
|
|
|
|
|
2020-03-26 06:05:41 +08:00
|
|
|
additionalProperties: false
|
|
|
|
|
2019-12-05 23:34:05 +08:00
|
|
|
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>;
|
|
|
|
};
|