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:
27e01bc6cbSJohan Jonker    minItems: 1
28ba445b7fSEzequiel Garcia    maxItems: 2
29ba445b7fSEzequiel Garcia
30ba445b7fSEzequiel Garcia  interrupt-names:
31e01bc6cbSJohan Jonker    oneOf:
32e01bc6cbSJohan Jonker      - const: vdpu
33e01bc6cbSJohan Jonker      - items:
34ba445b7fSEzequiel Garcia        - const: vepu
35ba445b7fSEzequiel Garcia        - const: vdpu
36ba445b7fSEzequiel Garcia
37ba445b7fSEzequiel Garcia  clocks:
38ba445b7fSEzequiel Garcia    maxItems: 2
39ba445b7fSEzequiel Garcia
40ba445b7fSEzequiel Garcia  clock-names:
41ba445b7fSEzequiel Garcia    items:
42ba445b7fSEzequiel Garcia      - const: aclk
43ba445b7fSEzequiel Garcia      - const: hclk
44ba445b7fSEzequiel Garcia
45ba445b7fSEzequiel Garcia  power-domains:
46ba445b7fSEzequiel Garcia    maxItems: 1
47ba445b7fSEzequiel Garcia
48ba445b7fSEzequiel Garcia  iommus:
49ba445b7fSEzequiel Garcia    maxItems: 1
50ba445b7fSEzequiel Garcia
51ba445b7fSEzequiel Garciarequired:
52ba445b7fSEzequiel Garcia  - compatible
53ba445b7fSEzequiel Garcia  - reg
54ba445b7fSEzequiel Garcia  - interrupts
55ba445b7fSEzequiel Garcia  - interrupt-names
56ba445b7fSEzequiel Garcia  - clocks
57ba445b7fSEzequiel Garcia  - clock-names
58ba445b7fSEzequiel Garcia
59ba445b7fSEzequiel GarciaadditionalProperties: false
60ba445b7fSEzequiel Garcia
61ba445b7fSEzequiel Garciaexamples:
62ba445b7fSEzequiel Garcia  - |
63ba445b7fSEzequiel Garcia        #include <dt-bindings/clock/rk3288-cru.h>
64ba445b7fSEzequiel Garcia        #include <dt-bindings/interrupt-controller/arm-gic.h>
65ba445b7fSEzequiel Garcia        #include <dt-bindings/power/rk3288-power.h>
66ba445b7fSEzequiel Garcia
67ba445b7fSEzequiel Garcia        vpu: video-codec@ff9a0000 {
68ba445b7fSEzequiel Garcia                compatible = "rockchip,rk3288-vpu";
690db958b6SRob Herring                reg = <0xff9a0000 0x800>;
70ba445b7fSEzequiel Garcia                interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
71ba445b7fSEzequiel Garcia                             <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
72ba445b7fSEzequiel Garcia                interrupt-names = "vepu", "vdpu";
73ba445b7fSEzequiel Garcia                clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
74ba445b7fSEzequiel Garcia                clock-names = "aclk", "hclk";
75ba445b7fSEzequiel Garcia                power-domains = <&power RK3288_PD_VIDEO>;
76ba445b7fSEzequiel Garcia                iommus = <&vpu_mmu>;
77ba445b7fSEzequiel Garcia        };
78