Commit 71822646 authored by Mirela Rabulea's avatar Mirela Rabulea Committed by Shawn Guo
Browse files

dt-bindings: media: imx-jpeg: Add compatible for i.MX8QM JPEG codec



Add two more compatibles: "nxp,imx8qm-jpgdec" and " nxp,imx8qm-jpgenc".
Also update the compatible property to ensure mutually exclusive usage of
encoder and decoder compatibles.
Update examples.

Signed-off-by: default avatarMirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent ec1e7fc7
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -16,12 +16,17 @@ description: |-

properties:
  compatible:
    items:
      - enum:
            # JPEG decoder
    oneOf:
      - items:
          enum:
            - nxp,imx8qxp-jpgdec
            # JPEG encoder
            - nxp,imx8qxp-jpgenc
      - items:
          - const: nxp,imx8qm-jpgdec
          - const: nxp,imx8qxp-jpgdec
      - items:
          - const: nxp,imx8qm-jpgenc
          - const: nxp,imx8qxp-jpgenc

  reg:
    maxItems: 1
@@ -69,7 +74,7 @@ examples:
    };

    jpegenc: jpegenc@58450000 {
        compatible = "nxp,imx8qxp-jpgenc";
        compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc";
        reg = <0x58450000 0x00050000 >;
        interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>,