acd134bca2
RK356x has Hantro G1 video decoder capable to decode MPEG2/H.264/VP8 video formats. This patch adds RK3568 compatible in rockchip-vpu dt-bindings. Tested on [1] with FFmpeg v4l2_request code taken from [2] with MPEG2, H.642 and VP8 samples with results [3]. [1] https://github.com/warpme/minimyth2 [2] https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/multimedia/ffmpeg/patches/v4l2-request/ffmpeg-001-v4l2-request.patch [3] https://github.com/warpme/minimyth2/blob/master/video-test-summary.txt Signed-off-by: Piotr Oniszczuk <piotr.oniszczuk@gmail.com> Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
97 lines
2.2 KiB
YAML
97 lines
2.2 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
|
|
%YAML 1.2
|
|
---
|
|
$id: "http://devicetree.org/schemas/media/rockchip-vpu.yaml#"
|
|
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
|
|
|
|
title: Hantro G1 VPU codecs implemented on Rockchip SoCs
|
|
|
|
maintainers:
|
|
- Ezequiel Garcia <ezequiel@collabora.com>
|
|
|
|
description:
|
|
Hantro G1 video encode and decode accelerators present on Rockchip SoCs.
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- enum:
|
|
- rockchip,rk3036-vpu
|
|
- rockchip,rk3066-vpu
|
|
- rockchip,rk3288-vpu
|
|
- rockchip,rk3328-vpu
|
|
- rockchip,rk3399-vpu
|
|
- rockchip,px30-vpu
|
|
- rockchip,rk3568-vpu
|
|
- items:
|
|
- const: rockchip,rk3188-vpu
|
|
- const: rockchip,rk3066-vpu
|
|
- items:
|
|
- const: rockchip,rk3228-vpu
|
|
- const: rockchip,rk3399-vpu
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
minItems: 1
|
|
maxItems: 2
|
|
|
|
interrupt-names:
|
|
oneOf:
|
|
- const: vdpu
|
|
- items:
|
|
- const: vepu
|
|
- const: vdpu
|
|
|
|
clocks:
|
|
oneOf:
|
|
- maxItems: 2
|
|
- maxItems: 4
|
|
|
|
clock-names:
|
|
oneOf:
|
|
- items:
|
|
- const: aclk
|
|
- const: hclk
|
|
- items:
|
|
- const: aclk_vdpu
|
|
- const: hclk_vdpu
|
|
- const: aclk_vepu
|
|
- const: hclk_vepu
|
|
|
|
power-domains:
|
|
maxItems: 1
|
|
|
|
iommus:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- interrupt-names
|
|
- clocks
|
|
- clock-names
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/rk3288-cru.h>
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/power/rk3288-power.h>
|
|
|
|
vpu: video-codec@ff9a0000 {
|
|
compatible = "rockchip,rk3288-vpu";
|
|
reg = <0xff9a0000 0x800>;
|
|
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-names = "vepu", "vdpu";
|
|
clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
|
|
clock-names = "aclk", "hclk";
|
|
power-domains = <&power RK3288_PD_VIDEO>;
|
|
iommus = <&vpu_mmu>;
|
|
};
|