MediaTek JPEG Decoder

Schema identifier ($id): "http://devicetree.org/schemas/media/mediatek-jpeg-decoder.yaml#"

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

Maintainers (maintainers): "Xia Jiang <xia.jiang@mediatek.com>"

Mediatek JPEG Decoder is the JPEG decode hardware present in Mediatek SoCs

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt8173-jpgdec", "mediatek,mt2701-jpgdec"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7623-jpgdec", "mediatek,mt8188-jpgdec"

Item 2

Exact value (const): "mediatek,mt2701-jpgdec"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

Minimum number of items (minItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "jpgdec-smi"

Item 2

Exact value (const): "jpgdec"

power-domains — required here #

Maximum number of items (maxItems): 1

iommus — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 32

Points to the respective IOMMU block with master port as argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. Ports are according to the HW.

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt2701-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/memory/mt2701-larb-port.h>
#include <dt-bindings/power/mt2701-power.h>
jpegdec: jpegdec@15004000 {
  compatible = "mediatek,mt2701-jpgdec";
  reg = <0x15004000 0x1000>;
  interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_LOW>;
  clocks =  <&imgsys CLK_IMG_JPGDEC_SMI>,
            <&imgsys CLK_IMG_JPGDEC>;
  clock-names = "jpgdec-smi",
                "jpgdec";
  power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>;
  iommus = <&iommu MT2701_M4U_PORT_JPGDEC_WDMA>,
           <&iommu MT2701_M4U_PORT_JPGDEC_BSDMA>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page