Skip to content

Commit fd6be12

Browse files
jernejskmchehab
authored andcommitted
media: dt-bindings: allwinner: document H6 Hantro G2 binding
Allwinner H6 contains older Hantro G2 core, primarly used for VP9 video decoding. It's unclear for now if HEVC is also supported. Describe its binding. Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent 3385c51 commit fd6be12

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
3+
%YAML 1.2
4+
---
5+
$id: "http://devicetree.org/schemas/media/allwinner,sun50i-h6-vpu-g2.yaml#"
6+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7+
8+
title: Hantro G2 VPU codec implemented on Allwinner H6 SoC
9+
10+
maintainers:
11+
- Jernej Skrabec <jernej.skrabec@gmail.com>
12+
13+
description:
14+
Hantro G2 video decode accelerator present on Allwinner H6 SoC.
15+
16+
properties:
17+
compatible:
18+
const: allwinner,sun50i-h6-vpu-g2
19+
20+
reg:
21+
maxItems: 1
22+
23+
interrupts:
24+
maxItems: 1
25+
26+
clocks:
27+
items:
28+
- description: Bus Clock
29+
- description: Module Clock
30+
31+
clock-names:
32+
items:
33+
- const: bus
34+
- const: mod
35+
36+
resets:
37+
maxItems: 1
38+
39+
required:
40+
- compatible
41+
- reg
42+
- interrupts
43+
- clocks
44+
- clock-names
45+
- resets
46+
47+
additionalProperties: false
48+
49+
examples:
50+
- |
51+
#include <dt-bindings/interrupt-controller/arm-gic.h>
52+
#include <dt-bindings/clock/sun50i-h6-ccu.h>
53+
#include <dt-bindings/reset/sun50i-h6-ccu.h>
54+
55+
video-codec-g2@1c00000 {
56+
compatible = "allwinner,sun50i-h6-vpu-g2";
57+
reg = <0x01c00000 0x1000>;
58+
interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
59+
clocks = <&ccu CLK_BUS_VP9>, <&ccu CLK_VP9>;
60+
clock-names = "bus", "mod";
61+
resets = <&ccu RST_BUS_VP9>;
62+
};
63+
64+
...

0 commit comments

Comments
 (0)