xref: /freebsd/sys/contrib/device-tree/Bindings/media/nxp,imx8-jpeg.yaml (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
1*2eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*2eb4d8dcSEmmanuel Vadot%YAML 1.2
3*2eb4d8dcSEmmanuel Vadot---
4*2eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/media/nxp,imx8-jpeg.yaml#
5*2eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*2eb4d8dcSEmmanuel Vadot
7*2eb4d8dcSEmmanuel Vadottitle: i.MX8QXP/QM JPEG decoder/encoder Device Tree Bindings
8*2eb4d8dcSEmmanuel Vadot
9*2eb4d8dcSEmmanuel Vadotmaintainers:
10*2eb4d8dcSEmmanuel Vadot  - Mirela Rabulea <mirela.rabulea@nxp.com>
11*2eb4d8dcSEmmanuel Vadot
12*2eb4d8dcSEmmanuel Vadotdescription: |-
13*2eb4d8dcSEmmanuel Vadot  The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs is an
14*2eb4d8dcSEmmanuel Vadot  ISO/IEC 10918-1 JPEG standard compliant decoder/encoder, for Baseline
15*2eb4d8dcSEmmanuel Vadot  and Extended Sequential DCT modes.
16*2eb4d8dcSEmmanuel Vadot
17*2eb4d8dcSEmmanuel Vadotproperties:
18*2eb4d8dcSEmmanuel Vadot  compatible:
19*2eb4d8dcSEmmanuel Vadot    items:
20*2eb4d8dcSEmmanuel Vadot      - enum:
21*2eb4d8dcSEmmanuel Vadot            # JPEG decoder
22*2eb4d8dcSEmmanuel Vadot          - nxp,imx8qxp-jpgdec
23*2eb4d8dcSEmmanuel Vadot            # JPEG encoder
24*2eb4d8dcSEmmanuel Vadot          - nxp,imx8qxp-jpgenc
25*2eb4d8dcSEmmanuel Vadot
26*2eb4d8dcSEmmanuel Vadot  reg:
27*2eb4d8dcSEmmanuel Vadot    maxItems: 1
28*2eb4d8dcSEmmanuel Vadot
29*2eb4d8dcSEmmanuel Vadot  interrupts:
30*2eb4d8dcSEmmanuel Vadot    description: |
31*2eb4d8dcSEmmanuel Vadot      There are 4 slots available in the IP, which the driver may use
32*2eb4d8dcSEmmanuel Vadot      If a certain slot is used, it should have an associated interrupt
33*2eb4d8dcSEmmanuel Vadot      The interrupt with index i is assumed to be for slot i
34*2eb4d8dcSEmmanuel Vadot    minItems: 1               # At least one slot is needed by the driver
35*2eb4d8dcSEmmanuel Vadot    maxItems: 4               # The IP has 4 slots available for use
36*2eb4d8dcSEmmanuel Vadot
37*2eb4d8dcSEmmanuel Vadot  power-domains:
38*2eb4d8dcSEmmanuel Vadot    description:
39*2eb4d8dcSEmmanuel Vadot      List of phandle and PM domain specifier as documented in
40*2eb4d8dcSEmmanuel Vadot      Documentation/devicetree/bindings/power/power_domain.txt
41*2eb4d8dcSEmmanuel Vadot    minItems: 2               # Wrapper and 1 slot
42*2eb4d8dcSEmmanuel Vadot    maxItems: 5               # Wrapper and 4 slots
43*2eb4d8dcSEmmanuel Vadot
44*2eb4d8dcSEmmanuel Vadotrequired:
45*2eb4d8dcSEmmanuel Vadot  - compatible
46*2eb4d8dcSEmmanuel Vadot  - reg
47*2eb4d8dcSEmmanuel Vadot  - interrupts
48*2eb4d8dcSEmmanuel Vadot  - power-domains
49*2eb4d8dcSEmmanuel Vadot
50*2eb4d8dcSEmmanuel VadotadditionalProperties: false
51*2eb4d8dcSEmmanuel Vadot
52*2eb4d8dcSEmmanuel Vadotexamples:
53*2eb4d8dcSEmmanuel Vadot  - |
54*2eb4d8dcSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
55*2eb4d8dcSEmmanuel Vadot    #include <dt-bindings/firmware/imx/rsrc.h>
56*2eb4d8dcSEmmanuel Vadot
57*2eb4d8dcSEmmanuel Vadot    jpegdec: jpegdec@58400000 {
58*2eb4d8dcSEmmanuel Vadot        compatible = "nxp,imx8qxp-jpgdec";
59*2eb4d8dcSEmmanuel Vadot        reg = <0x58400000 0x00050000 >;
60*2eb4d8dcSEmmanuel Vadot        interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>,
61*2eb4d8dcSEmmanuel Vadot                     <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>,
62*2eb4d8dcSEmmanuel Vadot                     <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>,
63*2eb4d8dcSEmmanuel Vadot                     <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>;
64*2eb4d8dcSEmmanuel Vadot        power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>,
65*2eb4d8dcSEmmanuel Vadot                        <&pd IMX_SC_R_MJPEG_DEC_S0>,
66*2eb4d8dcSEmmanuel Vadot                        <&pd IMX_SC_R_MJPEG_DEC_S1>,
67*2eb4d8dcSEmmanuel Vadot                        <&pd IMX_SC_R_MJPEG_DEC_S2>,
68*2eb4d8dcSEmmanuel Vadot                        <&pd IMX_SC_R_MJPEG_DEC_S3>;
69*2eb4d8dcSEmmanuel Vadot    };
70*2eb4d8dcSEmmanuel Vadot
71*2eb4d8dcSEmmanuel Vadot    jpegenc: jpegenc@58450000 {
72*2eb4d8dcSEmmanuel Vadot        compatible = "nxp,imx8qxp-jpgenc";
73*2eb4d8dcSEmmanuel Vadot        reg = <0x58450000 0x00050000 >;
74*2eb4d8dcSEmmanuel Vadot        interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>,
75*2eb4d8dcSEmmanuel Vadot                     <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>,
76*2eb4d8dcSEmmanuel Vadot                     <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>,
77*2eb4d8dcSEmmanuel Vadot                     <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>;
78*2eb4d8dcSEmmanuel Vadot        power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>,
79*2eb4d8dcSEmmanuel Vadot                        <&pd IMX_SC_R_MJPEG_ENC_S0>,
80*2eb4d8dcSEmmanuel Vadot                        <&pd IMX_SC_R_MJPEG_ENC_S1>,
81*2eb4d8dcSEmmanuel Vadot                        <&pd IMX_SC_R_MJPEG_ENC_S2>,
82*2eb4d8dcSEmmanuel Vadot                        <&pd IMX_SC_R_MJPEG_ENC_S3>;
83*2eb4d8dcSEmmanuel Vadot    };
84*2eb4d8dcSEmmanuel Vadot...
85