xref: /freebsd/sys/contrib/device-tree/Bindings/media/allwinner,sun50i-h6-vpu-g2.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2e67e8565SEmmanuel Vadot
3e67e8565SEmmanuel Vadot%YAML 1.2
4e67e8565SEmmanuel Vadot---
5e67e8565SEmmanuel Vadot$id: "http://devicetree.org/schemas/media/allwinner,sun50i-h6-vpu-g2.yaml#"
6e67e8565SEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7e67e8565SEmmanuel Vadot
8e67e8565SEmmanuel Vadottitle: Hantro G2 VPU codec implemented on Allwinner H6 SoC
9e67e8565SEmmanuel Vadot
10e67e8565SEmmanuel Vadotmaintainers:
11e67e8565SEmmanuel Vadot  - Jernej Skrabec <jernej.skrabec@gmail.com>
12e67e8565SEmmanuel Vadot
13e67e8565SEmmanuel Vadotdescription:
14e67e8565SEmmanuel Vadot  Hantro G2 video decode accelerator present on Allwinner H6 SoC.
15e67e8565SEmmanuel Vadot
16e67e8565SEmmanuel Vadotproperties:
17e67e8565SEmmanuel Vadot  compatible:
18e67e8565SEmmanuel Vadot    const: allwinner,sun50i-h6-vpu-g2
19e67e8565SEmmanuel Vadot
20e67e8565SEmmanuel Vadot  reg:
21e67e8565SEmmanuel Vadot    maxItems: 1
22e67e8565SEmmanuel Vadot
23e67e8565SEmmanuel Vadot  interrupts:
24e67e8565SEmmanuel Vadot    maxItems: 1
25e67e8565SEmmanuel Vadot
26e67e8565SEmmanuel Vadot  clocks:
27e67e8565SEmmanuel Vadot    items:
28e67e8565SEmmanuel Vadot      - description: Bus Clock
29e67e8565SEmmanuel Vadot      - description: Module Clock
30e67e8565SEmmanuel Vadot
31e67e8565SEmmanuel Vadot  clock-names:
32e67e8565SEmmanuel Vadot    items:
33e67e8565SEmmanuel Vadot      - const: bus
34e67e8565SEmmanuel Vadot      - const: mod
35e67e8565SEmmanuel Vadot
36e67e8565SEmmanuel Vadot  resets:
37e67e8565SEmmanuel Vadot    maxItems: 1
38e67e8565SEmmanuel Vadot
39*7ef62cebSEmmanuel Vadot  iommus:
40*7ef62cebSEmmanuel Vadot    maxItems: 1
41*7ef62cebSEmmanuel Vadot
42e67e8565SEmmanuel Vadotrequired:
43e67e8565SEmmanuel Vadot  - compatible
44e67e8565SEmmanuel Vadot  - reg
45e67e8565SEmmanuel Vadot  - interrupts
46e67e8565SEmmanuel Vadot  - clocks
47e67e8565SEmmanuel Vadot  - clock-names
48e67e8565SEmmanuel Vadot  - resets
49*7ef62cebSEmmanuel Vadot  - iommus
50e67e8565SEmmanuel Vadot
51e67e8565SEmmanuel VadotadditionalProperties: false
52e67e8565SEmmanuel Vadot
53e67e8565SEmmanuel Vadotexamples:
54e67e8565SEmmanuel Vadot  - |
55e67e8565SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
56e67e8565SEmmanuel Vadot    #include <dt-bindings/clock/sun50i-h6-ccu.h>
57e67e8565SEmmanuel Vadot    #include <dt-bindings/reset/sun50i-h6-ccu.h>
58e67e8565SEmmanuel Vadot
59e67e8565SEmmanuel Vadot    video-codec-g2@1c00000 {
60e67e8565SEmmanuel Vadot        compatible = "allwinner,sun50i-h6-vpu-g2";
61e67e8565SEmmanuel Vadot        reg = <0x01c00000 0x1000>;
62e67e8565SEmmanuel Vadot        interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
63e67e8565SEmmanuel Vadot        clocks = <&ccu CLK_BUS_VP9>, <&ccu CLK_VP9>;
64e67e8565SEmmanuel Vadot        clock-names = "bus", "mod";
65e67e8565SEmmanuel Vadot        resets = <&ccu RST_BUS_VP9>;
66*7ef62cebSEmmanuel Vadot        iommus = <&iommu 5>;
67e67e8565SEmmanuel Vadot    };
68e67e8565SEmmanuel Vadot
69e67e8565SEmmanuel Vadot...
70