xref: /freebsd/sys/contrib/device-tree/Bindings/media/rockchip-vpu.yaml (revision 1c4ee7dfb8affed302171232b0f612e6bcba3c10)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/media/rockchip-vpu.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Hantro G1 VPU codecs implemented on Rockchip SoCs
9
10maintainers:
11  - Ezequiel Garcia <ezequiel@collabora.com>
12
13description:
14  Hantro G1 video encode and decode accelerators present on Rockchip SoCs.
15
16properties:
17  compatible:
18    oneOf:
19      - enum:
20          - rockchip,rk3036-vpu
21          - rockchip,rk3066-vpu
22          - rockchip,rk3288-vpu
23          - rockchip,rk3328-vpu
24          - rockchip,rk3399-vpu
25          - rockchip,px30-vpu
26          - rockchip,rk3568-vpu
27          - rockchip,rk3588-av1-vpu
28      - items:
29          - const: rockchip,rk3188-vpu
30          - const: rockchip,rk3066-vpu
31      - items:
32          - const: rockchip,rk3228-vpu
33          - const: rockchip,rk3399-vpu
34
35  reg:
36    maxItems: 1
37
38  interrupts:
39    minItems: 1
40    maxItems: 2
41
42  interrupt-names:
43    oneOf:
44      - const: vdpu
45      - items:
46          - const: vepu
47          - const: vdpu
48
49  clocks:
50    oneOf:
51      - maxItems: 2
52      - maxItems: 4
53
54  clock-names:
55    oneOf:
56      - items:
57          - const: aclk
58          - const: hclk
59      - items:
60          - const: aclk_vdpu
61          - const: hclk_vdpu
62          - const: aclk_vepu
63          - const: hclk_vepu
64
65  power-domains:
66    maxItems: 1
67
68  iommus:
69    maxItems: 1
70
71required:
72  - compatible
73  - reg
74  - interrupts
75  - interrupt-names
76  - clocks
77  - clock-names
78
79additionalProperties: false
80
81examples:
82  - |
83        #include <dt-bindings/clock/rk3288-cru.h>
84        #include <dt-bindings/interrupt-controller/arm-gic.h>
85        #include <dt-bindings/power/rk3288-power.h>
86
87        vpu: video-codec@ff9a0000 {
88                compatible = "rockchip,rk3288-vpu";
89                reg = <0xff9a0000 0x800>;
90                interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
91                             <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
92                interrupt-names = "vepu", "vdpu";
93                clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
94                clock-names = "aclk", "hclk";
95                power-domains = <&power RK3288_PD_VIDEO>;
96                iommus = <&vpu_mmu>;
97        };
98