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