1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel Vadot%YAML 1.2
4c66ec88fSEmmanuel Vadot---
5*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/media/nxp,imx8mq-vpu.yaml#
6*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7c66ec88fSEmmanuel Vadot
8c9ccf3a3SEmmanuel Vadottitle: Hantro G1/G2 VPU codecs implemented on i.MX8M SoCs
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadotmaintainers:
11c66ec88fSEmmanuel Vadot  - Philipp Zabel <p.zabel@pengutronix.de>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotdescription:
14c66ec88fSEmmanuel Vadot  Hantro G1/G2 video decode accelerators present on i.MX8MQ SoCs.
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotproperties:
17c66ec88fSEmmanuel Vadot  compatible:
18c9ccf3a3SEmmanuel Vadot    oneOf:
19c9ccf3a3SEmmanuel Vadot      - const: nxp,imx8mq-vpu
20c9ccf3a3SEmmanuel Vadot        deprecated: true
21c9ccf3a3SEmmanuel Vadot      - const: nxp,imx8mq-vpu-g1
22c9ccf3a3SEmmanuel Vadot      - const: nxp,imx8mq-vpu-g2
23c9ccf3a3SEmmanuel Vadot      - const: nxp,imx8mm-vpu-g1
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  reg:
26c9ccf3a3SEmmanuel Vadot    maxItems: 1
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot  interrupts:
29c9ccf3a3SEmmanuel Vadot    maxItems: 1
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot  clocks:
32c9ccf3a3SEmmanuel Vadot    maxItems: 1
33c66ec88fSEmmanuel Vadot
34c66ec88fSEmmanuel Vadot  power-domains:
35c66ec88fSEmmanuel Vadot    maxItems: 1
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadotrequired:
38c66ec88fSEmmanuel Vadot  - compatible
39c66ec88fSEmmanuel Vadot  - reg
40c66ec88fSEmmanuel Vadot  - interrupts
41c66ec88fSEmmanuel Vadot  - clocks
42c66ec88fSEmmanuel Vadot
436be33864SEmmanuel VadotadditionalProperties: false
446be33864SEmmanuel Vadot
45c66ec88fSEmmanuel Vadotexamples:
46c66ec88fSEmmanuel Vadot  - |
47c66ec88fSEmmanuel Vadot        #include <dt-bindings/clock/imx8mq-clock.h>
48c9ccf3a3SEmmanuel Vadot        #include <dt-bindings/power/imx8mq-power.h>
49c66ec88fSEmmanuel Vadot        #include <dt-bindings/interrupt-controller/arm-gic.h>
50c66ec88fSEmmanuel Vadot
51c9ccf3a3SEmmanuel Vadot        vpu_g1: video-codec@38300000 {
52c9ccf3a3SEmmanuel Vadot                compatible = "nxp,imx8mq-vpu-g1";
53c9ccf3a3SEmmanuel Vadot                reg = <0x38300000 0x10000>;
54c9ccf3a3SEmmanuel Vadot                interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
55c9ccf3a3SEmmanuel Vadot                clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>;
56c9ccf3a3SEmmanuel Vadot                power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G1>;
57c9ccf3a3SEmmanuel Vadot        };
58c9ccf3a3SEmmanuel Vadot  - |
59c9ccf3a3SEmmanuel Vadot        #include <dt-bindings/clock/imx8mq-clock.h>
60c9ccf3a3SEmmanuel Vadot        #include <dt-bindings/power/imx8mq-power.h>
61c9ccf3a3SEmmanuel Vadot        #include <dt-bindings/interrupt-controller/arm-gic.h>
62c9ccf3a3SEmmanuel Vadot
63c9ccf3a3SEmmanuel Vadot        vpu_g2: video-codec@38300000 {
64c9ccf3a3SEmmanuel Vadot                compatible = "nxp,imx8mq-vpu-g2";
65c9ccf3a3SEmmanuel Vadot                reg = <0x38310000 0x10000>;
66c9ccf3a3SEmmanuel Vadot                interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
67c9ccf3a3SEmmanuel Vadot                clocks = <&clk IMX8MQ_CLK_VPU_G2_ROOT>;
68c9ccf3a3SEmmanuel Vadot                power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G2>;
69c66ec88fSEmmanuel Vadot        };
70