Skip to content

Commit c6ffb7e

Browse files
cazouhverkuil
authored andcommitted
media: dt-bindings: rockchip: Document RK3588 Video Decoder bindings
Document the Rockchip RK3588 Video Decoder bindings. Signed-off-by: Detlev Casanova <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Nicolas Dufresne <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 77ce8e4 commit c6ffb7e

File tree

1 file changed

+74
-3
lines changed

1 file changed

+74
-3
lines changed

Documentation/devicetree/bindings/media/rockchip,vdec.yaml

Lines changed: 74 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,87 @@ maintainers:
1010
- Heiko Stuebner <[email protected]>
1111

1212
description: |-
13-
The Rockchip rk3399 has a stateless Video Decoder that can decodes H.264,
14-
HEVC an VP9 streams.
13+
Rockchip SoCs have variants of the same stateless Video Decoder that can
14+
decodes H.264, HEVC, VP9 and AV1 streams, depending on the variant.
1515
1616
properties:
1717
compatible:
1818
oneOf:
1919
- const: rockchip,rk3399-vdec
20+
- const: rockchip,rk3588-vdec
2021
- items:
2122
- enum:
2223
- rockchip,rk3228-vdec
2324
- rockchip,rk3328-vdec
2425
- const: rockchip,rk3399-vdec
2526

2627
reg:
27-
maxItems: 1
28+
minItems: 1
29+
items:
30+
- description: The function configuration registers base
31+
- description: The link table configuration registers base
32+
- description: The cache configuration registers base
33+
34+
reg-names:
35+
items:
36+
- const: function
37+
- const: link
38+
- const: cache
2839

2940
interrupts:
3041
maxItems: 1
3142

3243
clocks:
44+
minItems: 4
3345
items:
3446
- description: The Video Decoder AXI interface clock
3547
- description: The Video Decoder AHB interface clock
3648
- description: The Video Decoded CABAC clock
3749
- description: The Video Decoder core clock
50+
- description: The Video decoder HEVC CABAC clock
3851

3952
clock-names:
53+
minItems: 4
4054
items:
4155
- const: axi
4256
- const: ahb
4357
- const: cabac
4458
- const: core
59+
- const: hevc_cabac
4560

4661
assigned-clocks: true
4762

4863
assigned-clock-rates: true
4964

65+
resets:
66+
items:
67+
- description: The Video Decoder AXI interface reset
68+
- description: The Video Decoder AHB interface reset
69+
- description: The Video Decoded CABAC reset
70+
- description: The Video Decoder core reset
71+
- description: The Video decoder HEVC CABAC reset
72+
73+
reset-names:
74+
items:
75+
- const: axi
76+
- const: ahb
77+
- const: cabac
78+
- const: core
79+
- const: hevc_cabac
80+
5081
power-domains:
5182
maxItems: 1
5283

5384
iommus:
5485
maxItems: 1
5586

87+
sram:
88+
$ref: /schemas/types.yaml#/definitions/phandle
89+
description: |
90+
phandle to a reserved on-chip SRAM regions.
91+
Some SoCs, like rk3588 provide on-chip SRAM to store temporary
92+
buffers during decoding.
93+
5694
required:
5795
- compatible
5896
- reg
@@ -61,6 +99,39 @@ required:
6199
- clock-names
62100
- power-domains
63101

102+
allOf:
103+
- if:
104+
properties:
105+
compatible:
106+
contains:
107+
const: rockchip,rk3588-vdec
108+
then:
109+
properties:
110+
reg:
111+
minItems: 3
112+
reg-names:
113+
minItems: 3
114+
clocks:
115+
minItems: 5
116+
clock-names:
117+
minItems: 5
118+
resets:
119+
minItems: 5
120+
reset-names:
121+
minItems: 5
122+
else:
123+
properties:
124+
reg:
125+
maxItems: 1
126+
reg-names: false
127+
clocks:
128+
maxItems: 4
129+
clock-names:
130+
maxItems: 4
131+
resets: false
132+
reset-names: false
133+
sram: false
134+
64135
additionalProperties: false
65136

66137
examples:

0 commit comments

Comments
 (0)