i.MX8QXP/QM JPEG decoder/encoder

Schema identifier ($id): "http://devicetree.org/schemas/media/nxp,imx8-jpeg.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Mirela Rabulea <mirela.rabulea@nxp.com>"

The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs is an ISO/IEC 10918-1 JPEG standard compliant decoder/encoder, for Baseline and Extended Sequential DCT modes.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Allowed values (enum): "nxp,imx8qxp-jpgdec", "nxp,imx8qxp-jpgenc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nxp,imx8qm-jpgdec", "nxp,imx95-jpgdec"

Item 2

Exact value (const): "nxp,imx8qxp-jpgdec"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "nxp,imx8qm-jpgenc", "nxp,imx95-jpgenc"

Item 2

Exact value (const): "nxp,imx8qxp-jpgenc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

AXI DMA engine clock for fetching JPEG bitstream from memory (per)

Item 2

IP bus clock for register access (ipg)

interrupts — required here #

There are 4 slots available in the IP, which the driver may use If a certain slot is used, it should have an associated interrupt The interrupt with index i is assumed to be for slot i

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

power-domains — required here #

List of phandle and PM domain specifier as documented in Documentation/devicetree/bindings/power/power_domain.txt

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

sram — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Optional phandle to a reserved on-chip SRAM regions. The SRAM can be used for descriptor storage, which may improve bus utilization.

Required in this object (required): "compatible", "reg", "clocks", "interrupts", "power-domains"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nxp,imx95-jpgenc", "nxp,imx95-jpgdec"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — not listed as required here

Maximum number of items (maxItems): 1

When the condition does not match (else) #

Properties and child nodes (properties)

power-domains — not listed as required here

Minimum number of items (minItems): 2

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx8-lpcg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/firmware/imx/rsrc.h>

jpegdec: jpegdec@58400000 {
    compatible = "nxp,imx8qxp-jpgdec";
    reg = <0x58400000 0x00050000 >;
    clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>,
             <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>;
    interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>;
    power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>,
                    <&pd IMX_SC_R_MJPEG_DEC_S0>,
                    <&pd IMX_SC_R_MJPEG_DEC_S1>,
                    <&pd IMX_SC_R_MJPEG_DEC_S2>,
                    <&pd IMX_SC_R_MJPEG_DEC_S3>;
};

jpegenc: jpegenc@58450000 {
    compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc";
    reg = <0x58450000 0x00050000 >;
    clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>,
             <&img_jpeg__lpcg IMX_LPCG_CLK_4>;
    interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>;
    power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>,
                    <&pd IMX_SC_R_MJPEG_ENC_S0>,
                    <&pd IMX_SC_R_MJPEG_ENC_S1>,
                    <&pd IMX_SC_R_MJPEG_ENC_S2>,
                    <&pd IMX_SC_R_MJPEG_ENC_S3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 48: At least one slot is needed by the driver

Line 49: The IP has 4 slots available for use

Line 55: Wrapper and all slots

Line 56: Wrapper and 4 slots

Line 86: Wrapper and 1 slot

Edit this page