xref: /openbmc/linux/Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
14e6ea667SPhilipp Zabel# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
24e6ea667SPhilipp Zabel
34e6ea667SPhilipp Zabel%YAML 1.2
44e6ea667SPhilipp Zabel---
5*ab190665SRob Herring$id: http://devicetree.org/schemas/media/nxp,imx8mq-vpu.yaml#
6*ab190665SRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
74e6ea667SPhilipp Zabel
8176f093cSAdam Fordtitle: Hantro G1/G2 VPU codecs implemented on i.MX8M SoCs
94e6ea667SPhilipp Zabel
104e6ea667SPhilipp Zabelmaintainers:
114e6ea667SPhilipp Zabel  - Philipp Zabel <p.zabel@pengutronix.de>
124e6ea667SPhilipp Zabel
134e6ea667SPhilipp Zabeldescription:
144e6ea667SPhilipp Zabel  Hantro G1/G2 video decode accelerators present on i.MX8MQ SoCs.
154e6ea667SPhilipp Zabel
164e6ea667SPhilipp Zabelproperties:
174e6ea667SPhilipp Zabel  compatible:
18f3116f2eSAdam Ford    oneOf:
19f3116f2eSAdam Ford      - const: nxp,imx8mq-vpu
20f3116f2eSAdam Ford        deprecated: true
21f3116f2eSAdam Ford      - const: nxp,imx8mq-vpu-g1
22f3116f2eSAdam Ford      - const: nxp,imx8mq-vpu-g2
23176f093cSAdam Ford      - const: nxp,imx8mm-vpu-g1
244e6ea667SPhilipp Zabel
254e6ea667SPhilipp Zabel  reg:
26f3116f2eSAdam Ford    maxItems: 1
274e6ea667SPhilipp Zabel
284e6ea667SPhilipp Zabel  interrupts:
29f3116f2eSAdam Ford    maxItems: 1
304e6ea667SPhilipp Zabel
314e6ea667SPhilipp Zabel  clocks:
32f3116f2eSAdam Ford    maxItems: 1
334e6ea667SPhilipp Zabel
344e6ea667SPhilipp Zabel  power-domains:
354e6ea667SPhilipp Zabel    maxItems: 1
364e6ea667SPhilipp Zabel
374e6ea667SPhilipp Zabelrequired:
384e6ea667SPhilipp Zabel  - compatible
394e6ea667SPhilipp Zabel  - reg
404e6ea667SPhilipp Zabel  - interrupts
414e6ea667SPhilipp Zabel  - clocks
424e6ea667SPhilipp Zabel
435be478f9SRob HerringadditionalProperties: false
445be478f9SRob Herring
454e6ea667SPhilipp Zabelexamples:
464e6ea667SPhilipp Zabel  - |
474e6ea667SPhilipp Zabel        #include <dt-bindings/clock/imx8mq-clock.h>
48f3116f2eSAdam Ford        #include <dt-bindings/power/imx8mq-power.h>
494e6ea667SPhilipp Zabel        #include <dt-bindings/interrupt-controller/arm-gic.h>
504e6ea667SPhilipp Zabel
51f3116f2eSAdam Ford        vpu_g1: video-codec@38300000 {
52f3116f2eSAdam Ford                compatible = "nxp,imx8mq-vpu-g1";
53f3116f2eSAdam Ford                reg = <0x38300000 0x10000>;
54f3116f2eSAdam Ford                interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
55f3116f2eSAdam Ford                clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>;
56f3116f2eSAdam Ford                power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G1>;
57f3116f2eSAdam Ford        };
58f3116f2eSAdam Ford  - |
59f3116f2eSAdam Ford        #include <dt-bindings/clock/imx8mq-clock.h>
60f3116f2eSAdam Ford        #include <dt-bindings/power/imx8mq-power.h>
61f3116f2eSAdam Ford        #include <dt-bindings/interrupt-controller/arm-gic.h>
62f3116f2eSAdam Ford
63f3116f2eSAdam Ford        vpu_g2: video-codec@38300000 {
64f3116f2eSAdam Ford                compatible = "nxp,imx8mq-vpu-g2";
65f3116f2eSAdam Ford                reg = <0x38310000 0x10000>;
66f3116f2eSAdam Ford                interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
67f3116f2eSAdam Ford                clocks = <&clk IMX8MQ_CLK_VPU_G2_ROOT>;
68f3116f2eSAdam Ford                power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G2>;
694e6ea667SPhilipp Zabel        };
70