1ba445b7fSEzequiel Garcia# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2ba445b7fSEzequiel Garcia
3ba445b7fSEzequiel Garcia%YAML 1.2
4ba445b7fSEzequiel Garcia---
5ba445b7fSEzequiel Garcia$id: "http://devicetree.org/schemas/media/rockchip-vpu.yaml#"
6ba445b7fSEzequiel Garcia$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7ba445b7fSEzequiel Garcia
8ba445b7fSEzequiel Garciatitle: Hantro G1 VPU codecs implemented on Rockchip SoCs
9ba445b7fSEzequiel Garcia
10ba445b7fSEzequiel Garciamaintainers:
11ba445b7fSEzequiel Garcia  - Ezequiel Garcia <ezequiel@collabora.com>
12ba445b7fSEzequiel Garcia
13ba445b7fSEzequiel Garciadescription:
14ba445b7fSEzequiel Garcia  Hantro G1 video encode and decode accelerators present on Rockchip SoCs.
15ba445b7fSEzequiel Garcia
16ba445b7fSEzequiel Garciaproperties:
17ba445b7fSEzequiel Garcia  compatible:
18ba445b7fSEzequiel Garcia    enum:
19ba445b7fSEzequiel Garcia      - rockchip,rk3288-vpu
20ba445b7fSEzequiel Garcia      - rockchip,rk3328-vpu
21ba445b7fSEzequiel Garcia      - rockchip,rk3399-vpu
22ba445b7fSEzequiel Garcia
23ba445b7fSEzequiel Garcia  reg:
24ba445b7fSEzequiel Garcia    maxItems: 1
25ba445b7fSEzequiel Garcia
26ba445b7fSEzequiel Garcia  interrupts:
27ba445b7fSEzequiel Garcia    maxItems: 2
28ba445b7fSEzequiel Garcia
29ba445b7fSEzequiel Garcia  interrupt-names:
30ba445b7fSEzequiel Garcia    items:
31ba445b7fSEzequiel Garcia      - const: vepu
32ba445b7fSEzequiel Garcia      - const: vdpu
33ba445b7fSEzequiel Garcia
34ba445b7fSEzequiel Garcia  clocks:
35ba445b7fSEzequiel Garcia    maxItems: 2
36ba445b7fSEzequiel Garcia
37ba445b7fSEzequiel Garcia  clock-names:
38ba445b7fSEzequiel Garcia    items:
39ba445b7fSEzequiel Garcia      - const: aclk
40ba445b7fSEzequiel Garcia      - const: hclk
41ba445b7fSEzequiel Garcia
42ba445b7fSEzequiel Garcia  power-domains:
43ba445b7fSEzequiel Garcia    maxItems: 1
44ba445b7fSEzequiel Garcia
45ba445b7fSEzequiel Garcia  iommus:
46ba445b7fSEzequiel Garcia    maxItems: 1
47ba445b7fSEzequiel Garcia
48ba445b7fSEzequiel Garciarequired:
49ba445b7fSEzequiel Garcia  - compatible
50ba445b7fSEzequiel Garcia  - reg
51ba445b7fSEzequiel Garcia  - interrupts
52ba445b7fSEzequiel Garcia  - interrupt-names
53ba445b7fSEzequiel Garcia  - clocks
54ba445b7fSEzequiel Garcia  - clock-names
55ba445b7fSEzequiel Garcia
56ba445b7fSEzequiel GarciaadditionalProperties: false
57ba445b7fSEzequiel Garcia
58ba445b7fSEzequiel Garciaexamples:
59ba445b7fSEzequiel Garcia  - |
60ba445b7fSEzequiel Garcia        #include <dt-bindings/clock/rk3288-cru.h>
61ba445b7fSEzequiel Garcia        #include <dt-bindings/interrupt-controller/arm-gic.h>
62ba445b7fSEzequiel Garcia        #include <dt-bindings/power/rk3288-power.h>
63ba445b7fSEzequiel Garcia
64ba445b7fSEzequiel Garcia        vpu: video-codec@ff9a0000 {
65ba445b7fSEzequiel Garcia                compatible = "rockchip,rk3288-vpu";
66ba445b7fSEzequiel Garcia                reg = <0x0 0xff9a0000 0x0 0x800>;
67ba445b7fSEzequiel Garcia                interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
68ba445b7fSEzequiel Garcia                             <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
69ba445b7fSEzequiel Garcia                interrupt-names = "vepu", "vdpu";
70ba445b7fSEzequiel Garcia                clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
71ba445b7fSEzequiel Garcia                clock-names = "aclk", "hclk";
72ba445b7fSEzequiel Garcia                power-domains = <&power RK3288_PD_VIDEO>;
73ba445b7fSEzequiel Garcia                iommus = <&vpu_mmu>;
74ba445b7fSEzequiel Garcia        };
75